eqcorrscan / EQcorrscan

Earthquake detection and analysis in Python.
https://eqcorrscan.readthedocs.io/en/latest/
Other
165 stars 86 forks source link

template creation issue from_meta_file #69

Closed TraziBatine closed 7 years ago

TraziBatine commented 7 years ago

Hi!

I am trying to create a templates from a quakeml file using from_meta_file script. I am getting error

pick.phase_hint, str(pick.time)])) TypeError: sequence item 1: expected string or Unicode, NoneType found

On the link, you can get one day data of the stations, script and quakeml file. quakeml file is generated with obspy from a nonlinloc event file.

https://drive.google.com/open?id=0BzMcKedS7yadSXJCY2o5TDhqVU0

Thanks!

blaz

calum-chamberlain commented 7 years ago

Looks like your picks are not associated with any channels - while that is valid quakeML, I wouldn't recommend it here - I haven't ever seen that happen to be honest. I will add an error message to eqcorrscan, because we need the channel code. I would recommend assigning each pick to the channel it was made on.

calum-chamberlain commented 7 years ago

This issue is now a pull request #70