RT2MS will ingest a parfile with non-standard (>5 char) station names w/o a warning.
Station names should be 5 characters or less (maybe 3-5, maybe 1-5, there's disagreement there). RT2MS will process station names of up to 11 characters without error or warning. Station names of 12 characters or longer cause the program to crash with a python error after creating an output directory, leaving a 0-byte miniseed file.
Below are outputs for successful processing of long names, and a failure with a 12-character name.
Long station names:
(passoft3) sveitch@dhcp-10-10-10-243 SVC1 % rt2ms -D dir.list -p parfile.txt
2023-05-10 08:22:18 - INFO - rt2ms program starting
2023-05-10 08:22:18 - INFO - Version: 2022.3.0.0
2023-05-10 08:22:18 - INFO - Parsing parameter file 'parfile.txt'
2023-05-10 08:22:18 - INFO - Parameter file:
das; refchan; refstrm; netcode; station; location; channel; samplerate; gain; implement_time
9237; 1; 1; 25; KARLSRUHE; ; BHZ; 40; 1; 2017-05-29T17:19:37.000000Z
9237; 2; 1; 25; KARLSRUHE; ; BH1; 40; 1; 2017-05-29T17:19:37.000000Z
9237; 3; 1; 25; KARLSRUHE; ; BH2; 40; 1; 2017-05-29T17:19:37.000000Z
9237; 1; 2; 25; KARLSRUHE; ; LHZ; 1; 1; 2017-05-29T17:19:37.000000Z
9237; 2; 2; 25; KARLSRUHE; ; LH1; 1; 1; 2017-05-29T17:19:37.000000Z
9237; 3; 2; 25; KARLSRUHE; ; LH2; 1; 1; 2017-05-29T17:19:37.000000Z
9237; 1; 9; 25; KARLSRUHE; ; VM1; 0.1; 1; 2017-05-29T17:19:37.000000Z
9237; 2; 9; 25; KARLSRUHE; ; VM2; 0.1; 1; 2017-05-29T17:19:37.000000Z
9237; 3; 9; 25; KARLSRUHE; ; VM3; 0.1; 1; 2017-05-29T17:19:37.000000Z
92EB; 1; 1; 25; PFORZHEIM; ; BHZ; 40; 1; 2017-05-29T18:07:20.000000Z
92EB; 2; 1; 25; PFORZHEIM; ; BH1; 40; 1; 2017-05-29T18:07:20.000000Z
92EB; 3; 1; 25; PFORZHEIM; ; BH2; 40; 1; 2017-05-29T18:07:20.000000Z
92EB; 1; 2; 25; PFORZHEIM; ; LHZ; 1; 1; 2017-05-29T18:07:20.000000Z
92EB; 2; 2; 25; PFORZHEIM; ; LH1; 1; 1; 2017-05-29T18:07:20.000000Z
92EB; 3; 2; 25; PFORZHEIM; ; LH2; 1; 1; 2017-05-29T18:07:20.000000Z
92EB; 1; 9; 25; PFORZHEIM; ; VM1; 0.1; 1; 2017-05-29T18:07:20.000000Z
92EB; 2; 9; 25; PFORZHEIM; ; VM2; 0.1; 1; 2017-05-29T18:07:20.000000Z
92EB; 3; 9; 25; PFORZHEIM; ; VM3; 0.1; 1; 2017-05-29T18:07:20.000000Z
9471; 1; 1; 25; KNIELINGEN; ; BHZ; 40; 1; 2017-05-29T17:14:33.000000Z
9471; 2; 1; 25; KNIELINGEN; ; BH1; 40; 1; 2017-05-29T17:14:33.000000Z
9471; 3; 1; 25; KNIELINGEN; ; BH2; 40; 1; 2017-05-29T17:14:33.000000Z
9471; 1; 2; 25; KNIELINGEN; ; LHZ; 1; 1; 2017-05-29T17:14:33.000000Z
9471; 2; 2; 25; KNIELINGEN; ; LH1; 1; 1; 2017-05-29T17:14:33.000000Z
9471; 3; 2; 25; KNIELINGEN; ; LH2; 1; 1; 2017-05-29T17:14:33.000000Z
9471; 1; 9; 25; KNIELINGEN; ; VM1; 0.1; 1; 2017-05-29T17:14:33.000000Z
9471; 2; 9; 25; KNIELINGEN; ; VM2; 0.1; 1; 2017-05-29T17:14:33.000000Z
9471; 3; 9; 25; KNIELINGEN; ; VM3; 0.1; 1; 2017-05-29T17:14:33.000000Z
2023-05-10 08:22:18 - INFO - Working on CF card directory: /Users/sveitch/Documents/Projects/other/RT130_Practice/iris-intern-2017/SVC1/RAW/RT130-9237-1.cf
2023-05-10 08:22:18 - INFO - Parsing and writing state of health information for datalogger number: 9237
2023-05-10 08:22:19 - INFO - Parsing and writing state of health information for rt130 files: 100/108
2023-05-10 08:22:19 - INFO - Parsing data packets and writing day-long mseed files for datalogger number: 9237
2023-05-10 08:22:19 - INFO - Processing datastream number: 1
2023-05-10 08:22:19 - INFO - Processing data recorded in year 2017 and day 149
2023-05-10 08:22:19 - INFO - Processing data recorded in year 2017 and day 150
2023-05-10 08:22:20 - INFO - Processing data recorded in year 2017 and day 151
2023-05-10 08:22:20 - INFO - Processing datastream number: 2
2023-05-10 08:22:20 - INFO - Processing data recorded in year 2017 and day 149
2023-05-10 08:22:21 - INFO - Processing data recorded in year 2017 and day 150
2023-05-10 08:22:21 - INFO - Processing data recorded in year 2017 and day 151
2023-05-10 08:22:21 - INFO - Processing datastream number: 9
2023-05-10 08:22:21 - INFO - Processing data recorded in year 2017 and day 149
2023-05-10 08:22:21 - INFO - Processing data recorded in year 2017 and day 150
2023-05-10 08:22:21 - INFO - Processing data recorded in year 2017 and day 151
2023-05-10 08:22:21 - INFO - Working on CF card directory: /Users/sveitch/Documents/Projects/other/RT130_Practice/iris-intern-2017/SVC1/RAW/RT130-92EB-1.cf
2023-05-10 08:22:21 - INFO - Parsing and writing state of health information for datalogger number: 92EB
2023-05-10 08:22:21 - INFO - Parsing data packets and writing day-long mseed files for datalogger number: 92EB
2023-05-10 08:22:21 - INFO - Processing datastream number: 1
2023-05-10 08:22:21 - INFO - Processing data recorded in year 2017 and day 149
2023-05-10 08:22:22 - INFO - Processing data recorded in year 2017 and day 150
2023-05-10 08:22:23 - INFO - Processing data recorded in year 2017 and day 151
2023-05-10 08:22:23 - INFO - Processing datastream number: 2
2023-05-10 08:22:23 - INFO - Processing data recorded in year 2017 and day 149
2023-05-10 08:22:23 - INFO - Processing data recorded in year 2017 and day 150
2023-05-10 08:22:23 - INFO - Processing data recorded in year 2017 and day 151
2023-05-10 08:22:23 - INFO - Processing datastream number: 9
2023-05-10 08:22:23 - INFO - Processing data recorded in year 2017 and day 149
2023-05-10 08:22:23 - INFO - Processing data recorded in year 2017 and day 150
2023-05-10 08:22:24 - INFO - Processing data recorded in year 2017 and day 151
2023-05-10 08:22:24 - INFO - Working on CF card directory: /Users/sveitch/Documents/Projects/other/RT130_Practice/iris-intern-2017/SVC1/RAW/RT130-9471-1.cf
2023-05-10 08:22:24 - INFO - Parsing and writing state of health information for datalogger number: 9471
2023-05-10 08:22:24 - INFO - Parsing data packets and writing day-long mseed files for datalogger number: 9471
2023-05-10 08:22:24 - INFO - Processing datastream number: 1
2023-05-10 08:22:24 - INFO - Processing data recorded in year 2017 and day 149
2023-05-10 08:22:24 - INFO - Processing data recorded in year 2017 and day 150
2023-05-10 08:22:25 - INFO - Processing data recorded in year 2017 and day 151
2023-05-10 08:22:26 - INFO - Processing datastream number: 2
2023-05-10 08:22:26 - INFO - Processing data recorded in year 2017 and day 149
2023-05-10 08:22:26 - INFO - Processing data recorded in year 2017 and day 150
2023-05-10 08:22:26 - INFO - Processing data recorded in year 2017 and day 151
2023-05-10 08:22:26 - INFO - Processing datastream number: 9
2023-05-10 08:22:26 - INFO - Processing data recorded in year 2017 and day 149
2023-05-10 08:22:26 - INFO - Processing data recorded in year 2017 and day 150
2023-05-10 08:22:26 - INFO - Processing data recorded in year 2017 and day 151
2023-05-10 08:22:26 - INFO - rt2ms ran for 8.00305724143982 s
Failure at 12+:
2023-05-10 08:24:41 - INFO - Working on CF card directory: /Users/sveitch/Documents/Projects/other/RT130_Practice/iris-intern-2017/SVC1/RAW/RT130-9471-1.cf
2023-05-10 08:24:41 - INFO - Parsing and writing state of health information for datalogger number: 9471
2023-05-10 08:24:41 - INFO - Parsing data packets and writing day-long mseed files for datalogger number: 9471
2023-05-10 08:24:41 - INFO - Processing datastream number: 1
2023-05-10 08:24:41 - INFO - Processing data recorded in year 2017 and day 149
Traceback (most recent call last):
File "/Users/sveitch/anaconda3/envs/passoft3/bin/rt2ms", line 8, in <module>
sys.exit(main())
File "/Users/sveitch/anaconda3/envs/passoft3/lib/python3.8/site-packages/rt2ms_py3/rt2ms_py3.py", line 239, in main
rt130s.write_mseed(output_dir, unit_id, datastream,
File "/Users/sveitch/anaconda3/envs/passoft3/lib/python3.8/site-packages/rt2ms_py3/rt130_files.py", line 273, in write_mseed
st_nextday = daylong_mseed(st_events, output_dir)
File "/Users/sveitch/anaconda3/envs/passoft3/lib/python3.8/site-packages/rt2ms_py3/trace_utils.py", line 44, in daylong_mseed
st_day_cha_cp.write(mseed_filename, format='MSEED')
File "/Users/sveitch/anaconda3/envs/passoft3/lib/python3.8/site-packages/obspy/core/stream.py", line 1456, in write
write_format(self, filename, **kwargs)
File "/Users/sveitch/anaconda3/envs/passoft3/lib/python3.8/site-packages/obspy/io/mseed/core.py", line 840, in _write_mseed
mst = MST(trace, data, dataquality=trace_attr['dataquality'])
File "/Users/sveitch/anaconda3/envs/passoft3/lib/python3.8/site-packages/obspy/io/mseed/core.py", line 971, in __init__
self.mst.contents.station = trace.stats.station.\
ValueError: bytes too long (16, maximum length 11)
2023-05-10 08:24:42 - WARNING - ResourceWarning: unclosed file <_io.BufferedWriter name='MSEED/BADENWURTTEMBERG/BADENWURTTEMBERG.25..BH1.2017.149'>