18.8 GET_ARC_CHANNELS, get a listing of all channels in an archive for SEISAN.DEF

In order to use continuous data form an archive, all the channels must be listed in SEISAN.DEF in a particular format. For a large archive, this can be a cumbersome job and we therefore have this program to automatically generate the lines needed in SEISAN.DEF using the information available in the archive (SeisComP type). The first step is to get a list of all the day files in the archive. In Linux this can be done with command (executed in archive top directory)

ls -R > archive.list

where all info is redirected to a file with any name, here archive.list. This can take some time for a large archive. The file can look like this

.:
2019
2020
2021
2022

./2019:
HA
HC
HI
HL
HP
HT

./2019/HA:
ATAL
ATHU
AXAR
FYLH
KALE
KARY
LAKA
LOUT
MAGU
MAKR
SNT5
STFN
VILL

./2019/HA/ATAL:
HHE.D
HHN.D
HHZ.D
MME.D
MMN.D
MMZ.D
SOH.L

./2019/HA/ATAL/HHE.D:
HA.ATAL..HHE.D.2019.225
HA.ATAL..HHE.D.2019.226
HA.ATAL..HHE.D.2019.227
HA.ATAL..HHE.D.2019.228
HA.ATAL..HHE.D.2019.229
.
.

GET_ARC_CHANNELS is now started and an example run is:


  Input file name
archive.list
 Output format, arc_chan (def=enter) or arc_chan2(=2)

 Which channels like HHE or **Z, enter for all, else one per line
 * is wild card
**Z

 Which networks, enter for all, else one per line

 Which stations, enter for all, else one per line

 ATAL  HHZ HA           2019         225        2019         363
 ATAL  MMZ HA           2019         225        2019         363
 ATHU  HHZ HA           2019           1        2019         365
 AXAR  HHZ HA           2019           1        2019         365
 AXAR  MMZ HA           2019         202        2019         365
 FYLH  HHZ HA           2019         202        2019         246
 FYLH  MMZ HA           2019         202        2019         246
 KALE  HHZ HA           2019           1        2019         365
 Number of channels            8
 Output file is get_arc_channels.out

The user can select two formats ARC or ARC2. There are also options for selecting out particular stations, channels or networks. If choosing ARC2, the ARC2 line archive identification will be given the name arc_loc, later to be associated in SEISAN.DEF with the location of the archive. The start and end time for each channel is determined from first and last channel found in the archive. Files with channel code LOG are ignored.