Installation¶
RGSM software package¶
Obtain the gsm script from gempa and use it to install the RGSM package:
Add the RGSM packages to the list of packages:
$ ./gsm setup
Update the package repository list and install the added package. RGSM is provided by the report-generators package:
$ ./gsm update $ ./gsm install report-generators
Software dependencies¶
RGSM may require installing additional software packages. The packages
and their installation depends on the installed Linux distribution.
The install script install-report-generators.sh
is provided for various
Linux flavors in $SEISCOMP_ROOT/share/deps/[flavor]
.
It can be used for installing the software requirements in the same way as
the SeisComP software requirements.
Use the seiscomp script to install the required software dependencies:
$ seiscomp install-deps report-generators
Setup¶
RGSM configuration¶
The module configuration parameters are stored in the configuration file
rgsm.cfg
located either in the directory @SYSTEMCONFIGDIR@ or in
@CONFIGDIR@.
Configure the parameter smModule
to set the application.
For shard:
smModule = shard
For sigma/autosigma:
smModule = sigma
Note
At the moment, either SHARD or SIGMA/AUTOSIGMA can use RGSM. To use it eventually for both modules you need to create an alias, for details see Alias documentation.
SHARD and SIGMA/AUTOSIGMA templates are placed in their respective directories:
$SEISCOMP_ROOT/share/rgsm/[shard|sigma]/templates
. Only templates within
this directory are used by RGSM. The output report name is same as the
template name just ending with ‘.pdf’. To set the templates use
templateFiles
, e.g., for a single template:
templateFiles = template.tex
RGSM allows to create multiple reports simultaneously by providing multiple templates, e.g., for generating multiple reports in different languages. Thus, just add additional templates separated by comma without any space character:
templateFiles = template_lang1.tex,template_lang2.tex,template_lang3.tex
Note
Currently SHARD only support exactly one template file as value for
templateFiles
. The name of the output report is fixed to
incident.pdf
.
For archiving created reports and all related files, set an archive directory
via archiveDir
.
This will copy the content of the configured report directory
(defined in the module config of SHARD or SIGMA/AUTOSIGMA) to the given path:
archiveDir = path/to/ArchiveDir