schaefferaj/StDb

Fix location codes

Closed this issue · 2 comments

This issue was raised in SplitPy: paudetseis/SplitPy#8 and concerns the handling of location codes in the script query_fdsn_stdb.py.

The issue was partially fixed by adding an argument -L to specify the location code of interest. For example, query_fdsn_stdb.py -N IU -S ANMO -L 00 db. The code currently only handles one location code as argument (no comma-separated values). See commit f7d880d

In (partially) fixing this issue, a new one came up where the default chnrank option gets superseded by the sorting done in the inventory object. So even though the chnrank has first item 'LH' by default, the first channel available in the inventory object is 'BH'.

To do:

  • Fix code to use a list of location codes (will have to fix the station keys in that case to use a long form) as input
  • Fix the sorting of channels in inventory to use 'chnrank`

@schaefferaj does the new commit 8183b17 resolve the issue above? If so, we can probably close it