Errors when reading RT130 data with (very) old firmware versions.
Tested on RT130 .cf-directories & .ref-files with firmware version 2.8.8S.
CF Directories
Produces the following message in processing logs (many times):
Line : Skip file /Users/sveitch/Documents/Projects/seed/200918_Shaanxi/rt130_data/legacy/cf/SVC1/RAW/2010145.995F.cf/2010163/995F/0/000000000_00000000 can't be read due to error: Traceback (most recent call last): File "/Users/sveitch/anaconda3/envs/sohstationviewer/lib/python3.11/site-packages/sohstationviewer/model/general_data/general_data.py", line 215, in read_folder self.read_file(path2file, file_name, count, total) File "/Users/sveitch/anaconda3/envs/sohstationviewer/lib/python3.11/site-packages/sohstationviewer/model/reftek_data/reftek.py", line 132, in read_file self.read_reftek_130(path2file) File "/Users/sveitch/anaconda3/envs/sohstationviewer/lib/python3.11/site-packages/sohstationviewer/model/reftek_data/reftek.py", line 184, in read_reftek_130 self.read_sh_packet(path2file) File "/Users/sveitch/anaconda3/envs/sohstationviewer/lib/python3.11/site-packages/sohstationviewer/model/reftek_data/reftek.py", line 203, in read_sh_packet logs = soh_packet.SOHPacket.from_data(d).
str
() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/sveitch/anaconda3/envs/sohstationviewer/lib/python3.11/site-packages/sohstationviewer/model/reftek_data/reftek_reader/soh_packet.py", line 844, in
str
.format(self.time_tag(self.time, implement_time=self.implement_time), # noqa: E501 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/sveitch/anaconda3/envs/sohstationviewer/lib/python3.11/site-packages/sohstationviewer/model/reftek_data/reftek_reader/soh_packet.py", line 306, in time_tag if implement_time is not None and time > UTCDateTime(ns=implement_time): # noqa: E501 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/sveitch/anaconda3/envs/sohstationviewer/lib/python3.11/site-packages/obspy/core/utcdatetime.py", line 286, in
init
self._ns = ns ^^^^^^^^ File "/Users/sveitch/anaconda3/envs/sohstationviewer/lib/python3.11/site-packages/obspy/core/utcdatetime.py", line 1259, in
setattr
super(UTCDateTime, self).
setattr
(key, value) File "/Users/sveitch/anaconda3/envs/sohstationviewer/lib/python3.11/site-packages/obspy/core/utcdatetime.py", line 524, in _set_ns raise TypeError('nanoseconds must be set as int/long type') TypeError: nanoseconds must be set as int/long type
Is able to read some but not all SOH information:
.REF Files
Produces the following log error (twice):
Line : Skip file /Users/sveitch/Documents/Projects/seed/200918_Shaanxi/data_from_drive/shanxi_third/WOP17/2010_332_08_16_995F.ref can't be read due to error: Traceback (most recent call last): File "/Users/sveitch/anaconda3/envs/sohstationviewer/lib/python3.11/site-packages/sohstationviewer/model/general_data/general_data.py", line 215, in read_folder self.read_file(path2file, file_name, count, total) File "/Users/sveitch/anaconda3/envs/sohstationviewer/lib/python3.11/site-packages/sohstationviewer/model/reftek_data/reftek.py", line 132, in read_file self.read_reftek_130(path2file) File "/Users/sveitch/anaconda3/envs/sohstationviewer/lib/python3.11/site-packages/sohstationviewer/model/reftek_data/reftek.py", line 184, in read_reftek_130 self.read_sh_packet(path2file) File "/Users/sveitch/anaconda3/envs/sohstationviewer/lib/python3.11/site-packages/sohstationviewer/model/reftek_data/reftek.py", line 203, in read_sh_packet logs = soh_packet.SOHPacket.from_data(d).__str__() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/sveitch/anaconda3/envs/sohstationviewer/lib/python3.11/site-packages/sohstationviewer/model/reftek_data/reftek_reader/soh_packet.py", line 302, in from_data raise NotImplementedError(msg.format(packet_type)) NotImplementedError: Can not create Reftek SOH packet for packet type 'EH'