[MSNoise] [EXTERNAL] Re: two channel types one station

Thomas Lecocq Thomas.Lecocq at seismology.be
Sat May 12 09:37:05 UTC 2018


Hi Ashton,

Using the web admin, you can just uncheck the "Used" checkbox for the 
already computed filters, then add new ones there. Then make sure to 
"msnoise reset CC --all" to recompute all jobs using your new filters.

Thomas


Le 11/05/2018 à 20:07, Flinders, Ashton a écrit :
> Thanks Thomas! On a related note, if I want to remove frequency bands (or
> implement new ones instead of old ones), do I need to delete the old bands
> directly from the sql tables?
>
> Does the "not used" flag in the band conf work?
>
> thanks!
>
>
> On Sun, May 6, 2018 at 11:26 PM, Thomas Lecocq <Thomas.Lecocq at seismology.be>
> wrote:
>
>> Hi Ashton,
>>
>> Aha, you've found a long-lasting "not implemented" item from my MSNoise
>> Wish List: be able to use different channel codes, not only different
>> components... So, no, this won't work with a mix between HHZ and HNZ.
>>
>> Sooooo... Hacky time now, if you are using MySQL and Workbench: open the
>> database and input in the SQL command box
>>
>>     delete * from data_availability where comp like "HN%"
>>
>> Please open an issue on github for this, we really need to implement the
>> different instrument thingy in the next version.
>>
>> Thomas
>>
>>
>>
>>
>> Le 07/05/2018 à 02:12, Flinders, Ashton a écrit :
>>
>>> I have scanned a database of three stations. One of those stations has two
>>> instrument types, HN* and HH*. I wanted to try and use both the
>>> seismometer
>>> data and the accelerometer data.
>>>
>>> In my station table I have that station twice, once with the instrument
>>> type "HN*" and again with the instrument type "HH*"
>>>
>>> When calculating the CC, I get an error related to to this section of
>>> api.py (1430-1441);
>>>
>>>       if len(st) == 2:
>>>           mask = np.logical_or(st[0].data.mask, st[1].data.mask)
>>>       elif len(st) == 3:
>>>           mask = np.logical_or(st[0].data.mask, st[1].data.mask,
>>> st[2].data.mask)
>>>
>>>       # apply the mask to all traces
>>>       for tr in st:
>>>           tr.data.mask = mask
>>>
>>>       # remove the masks from the stream
>>>       st = st.split()
>>>       return st
>>>
>>> The error is because st = 4, (HHN, HHE, HNN, HNE).
>>>
>>> To try and work around, it seems like I can not just tell it in the
>>> station
>>> conf to not use the HN* station - it still tries to and fails.
>>>
>>> (1) am I doing something wrong here in general
>>>
>>> (2) how do I reset the scan archive if I remove this instrument, or do I
>>> just have to delete the database and start over??
>>>
>>> -thanks
>>>
>>>
>>>
>>>
>> _______________________________________________
>> MSNoise mailing list
>> MSNoise at mailman-as.oma.be
>> http://mailman-as.oma.be/mailman/listinfo/msnoise
>>
>
>



More information about the MSNoise mailing list