GCF2MSD is a command line utility for converting GCF data to miniSEED format.
or GCF2MSD v1.5 for Linux i386 (230K .gz). This binary needs access to the Qt runtime library (2.4M .gz), either in your normal library path or in the current directory.
To get a list of the options, run the program without any parameters. The following text is displayed:
GCF2MSD (c) Guralp systems 2006 v1.5
Usage: GCF2MSD filespec [/o:output_dir] [/net:nn] [/sys]
where 'filespec' must be the first parameter.
specifies a GCF file or files to convert.
Wildcards are supported
'output_dir' specifies a directory for converted files.
if not specified, the directory of the input file is used
'nn' specifies a two-digit network code
to be included in the miniSEED header
'/sys' Specifies the GCF System ID field is used in the
MiniSeed Station-ID field instead of the serial number
'inifile' is an text file where additional miniSEED-specific
parameters are stored
You can use wildcards in the filename, so gcf2msd *.gcf will convert every gcf file in the current directory. The name of the converted file will be the same as the gcf file name, with the extension changed to .msd.
If the GCF file contains gaps, GCF2MSD will end the current miniSEED block and start a new one for the later data. The new block will be time stamped with the time of the first sample after the gap. GCF2MSD will print out a warning message if this occurs.
If the GCF file contains data out of time sequence, i.e. GCF2MSD encounters data with a timestamp earlier than the latest so far received, the data will be discarded.
Because of this, backfilling filing modes (such as the DM24's ADAPTIVE mode) will only work as expected if the data is put in order before being saved as a GCF file. This can be done in Scream! using a suitably large stream buffer.
You can configure Scream! to run GCF2MSD automatically on GCF files it produces, by setting it as a post-processor. Although Scream! can output miniSEED files, it will not output in multiple formats simultaneously, so using GCF2MSD as a post-processor will save you running two copies of Scream!.
To set a post-processor, open the Files tab of Scream!'s Setup window, and enter the full path of the GCF2MSD program file in the Post-Processor box. Click OK to save the setting.
Supplying a directory after /o will make GCF2MSD place all converted files in this directory.
By default, Scream! derives the MiniSEED header information from the System ID and Stream ID of the digitizer, together with information about the stream.
Options are provided which allow you to change this behaviour:
For more advanced options, prepare an INI file with the line [EXPORTINFO] followed by channel descriptions in the format
SYSTID-STREAM=sta:SSS chan:CCC net:NN loc:LL
or
SYSTID-SERN=sta:SSS net:NN loc:LL
or
SYSTID=net:NN loc:LL
where SYSTID is the System ID, STREAM is the Stream ID, SERN is the serial number, SSS is the desired station name, CCC the channel code, NN is the 2-character network code, and LL the location code.
If you use a SYSID-SERN line, Scream! will apply it to all streams from the digitizer with that serial number, filling in the channel code automatically.
If you use a SYSID line, Scream! will apply it to all streams from any digitizer with that System ID, filling in the channel code automatically and taking the Station Name from the digitizer's serial number.
If you miss out a specification, Scream! will fill in the default value. The loc: specifiation is optional.
When you are happy, run GCF2MSD with the option /i:ini-file where ini-file is the name of the file you have prepared.