Hi all,
When I try to write an MSEED file with the filename as its starting time it gave me the following error, But it is working when i give filename in words
[eg:
tr.write(‘test’, format=‘MSEED’)
]
error:
>> st=read(“LSA.IC.mseed”)
>>tr=st[0]
>> tr.write(str(tr.stats.starttime), format=‘MSEED’)
Traceback (most recent call last):
File “”, line 1, in
tr_hourly.write(str(tr.stats.starttime), format=‘MSEED’)
File “C:\ProgramData\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py”, line 990, in write
Stream([self]).write(filename, format, **kwargs)
File “C:\ProgramData\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py”, line 1462, in write
write_format(self, filename, **kwargs)
File “C:\ProgramData\Anaconda3\envs\obspy\lib\site-packages\obspy\io\mseed\core.py”, line 846, in _write_mseed
f = open(filename, ‘wb’)
OSError: [Errno 22] Invalid argument: ‘2020-03-01T00:00:00.019500Z’
How could I write MSEED files with a timestamp as the filenames?