[yam]Metadata

Tom Eulenfeld tom.eulenfeld at uni-jena.de
Tue Aug 14 12:36:58 CEST 2018


Hi Blaz,

if the metadata in the miniseed is correct, maybe it is a problem with 
the inventory information? There could be a gap inside the inventory 
when the station was moved or maintained? Could also be a bug in obspy.

I will add some code to catch the exception and display a more 
meaningful log message.

Cheers,
Tom



On 14.08.2018 07:30, Blaž Vičič wrote:
> Hello again.
> Another day, another problem.
> 
> I am trying to process few years of data for a set of stations. I 
> already removed the instrumental response and downsampled the data. The 
> error I get is this one:
> 
> (obspy) pb-vicic:proc_2 bvicic$ yam correlate 1
> 
> 78%|██████████████████████████████████████████████████████████████████████████████████████████▊ 
> | 2572/3287 [5:37:02<1:33:41,7.86s/it]multiprocessing.pool.RemoteTraceback:
> 
> """
> 
> Traceback (most recent call last):
> 
> File 
> "/Users/bvicic/anaconda3/envs/obspy/lib/python3.6/multiprocessing/pool.py", 
> line 119, in worker
> 
> result = (True, func(*args, **kwds))
> 
> File 
> "/Users/bvicic/anaconda3/envs/obspy/lib/python3.6/site-packages/yam/correlate.py", 
> line 569, in correlate
> 
> stream2[0].id, datetime=stream2[0].stats.endtime)
> 
> File 
> "/Users/bvicic/anaconda3/envs/obspy/lib/python3.6/site-packages/obspy/core/inventory/inventory.py", 
> line 430, in get_coordinates
> 
> metadata = self.get_channel_metadata(seed_id, datetime)
> 
> File 
> "/Users/bvicic/anaconda3/envs/obspy/lib/python3.6/site-packages/obspy/core/inventory/inventory.py", 
> line 406, in get_channel_metadata
> 
> raise Exception(msg)
> 
> Exception: No matching channel metadata found.
> 
> """
> 
> 
> The above exception was the direct cause of the following exception:
> 
> 
> Traceback (most recent call last):
> 
> File "/Users/bvicic/anaconda3/envs/obspy/bin/yam", line 11, in <module>
> 
> sys.exit(run_cmdline())
> 
> File 
> "/Users/bvicic/anaconda3/envs/obspy/lib/python3.6/site-packages/yam/main.py", 
> line 388, in run_cmdline
> 
> run(**args)
> 
> File 
> "/Users/bvicic/anaconda3/envs/obspy/lib/python3.6/site-packages/yam/main.py", 
> line 147, in run
> 
> run2(command, **args)
> 
> File 
> "/Users/bvicic/anaconda3/envs/obspy/lib/python3.6/site-packages/yam/main.py", 
> line 211, in run2
> 
> yam.commands.start_correlate(io, **args)
> 
> File 
> "/Users/bvicic/anaconda3/envs/obspy/lib/python3.6/site-packages/yam/commands.py", 
> line 101, in start_correlate
> 
> total=len(tasks)):
> 
> File 
> "/Users/bvicic/anaconda3/envs/obspy/lib/python3.6/site-packages/tqdm/_tqdm.py", 
> line 930, in __iter__
> 
> for obj in iterable:
> 
> File 
> "/Users/bvicic/anaconda3/envs/obspy/lib/python3.6/multiprocessing/pool.py", 
> line 735, in next
> 
> raise value
> 
> Exception: No matching channel metadata found.
> 
> 
> In the first run I did, the error happened somewhere at the beginning 
> (iteration 200/3000+) so I checked if maybe my miniseeds have wrong 
> sta/chan inside. But they are all what they should be. I even forced the 
> tr.stats.station/chan to be exactly what I wanted. But the error 
> happened again. So I removed the first year of data, but now the error 
> happened again somewhere later in the dataset. Any idea what could be 
> wrong or how to go past this? It would be useful if I would know in 
> which miniseeds to look for the problem.
> 
> Cheers
> Blaz
> 
> 
> _______________________________________________
> seistools mailing list
> seistools at listserv.uni-jena.de
> https://lserv.uni-jena.de/mailman/listinfo/seistools
> 


More information about the seistools mailing list