-
Notifications
You must be signed in to change notification settings - Fork 10
Noise Toolkit PDF PSD bundle V.1
- request/read waveforms for given network/station/location/channels using the obspy FDSN client
- compute and populate an hourly “PSD database”
- extract PSDs and PDFs from the “PSD database”
- install Python on your computer
- additional required Python modules are:
. matplotlib
. numpy
. scipy
. obspy - download the package under the installation directory.
- under the root directory of the Noise Toolkit (IRIS_NTK) execute the following command to plot PSD of NM.SLM.00.BHZ for the first hour of 2015-01-01:
python bin/ntk_computePSD.py param=computePSD net=NM sta=SLM chan=BHZ loc=00 start=2015-01-01T00:00:00 end=2015-01-01T00:30:00 type=period mode=plot
- review all parameter files to get familiar with the script capabilities
- use examples given below to run/test the scripts and become familiar with them
- edit the parameter files under IRIS_NTK/param to change parameters based on your needs
- for more information visit the IRIS DMC Noise Toolkit Data Product web page at:
ds.iris.edu/ds/products/noise-toolkit
- the “DeprecationWarning: Development and maintenance efforts will focus on the new obspy.fdsn client…..” message
that you receive from the script is caused by script loading the IRIS module, as described below for the infrasound stations, and should not
affect the run
- examples below may turn on the verbose mode. Once you have configured the script, you can turn it off
- We welcome patches and enhancements to this software. When developing patches, please pay particular attention to ease of use and maintenance and also keep dependencies to a minimum.
- for issues, file a ticket under Issues
- R 0.8.0 2015-04-07 added check for all parameter values to inform user if they are not defined. Corrected the instrument correction for SAC files that would apply
sensitivity in addition to instrument correction - R 0.8.0 2015-04-06 addressed the variable maximum period issue that was changing based on the smoothing window length
- R 0.8.0 2015-04-02 based on feedback from Robert Anthony, in addition to nan values other non-numeric values may exist. The write that contains a flot() conversion
is placed in a try block so we can catch any non-numeric conversion issue and report it as user-defined NAN - R 0.7.2 2015-03-30 added a check to number of samples to aviod log of zero (reported by Rob Anthony)
- R 0.7.1 2015-03-17 added the “waterLevel” parameter to provide user with more control on how the ObsPy module shrinks values under water-level of max spec amplitude
when removing the instrument response. - R 0.7.0 2015-02-24 introduced two new parameters (performInstrumentCorrection, applyScale) to allow user avoid instrument correction also now user can turn od decon. filter
- R 0.6.0 2014-10-22 supports Windows installation and moved data, param and bin directory from IRIS_NTK/PSD to IRIS_NTK in preparation for Microseism Energy bundle release
- R 0.5.0 2014-10-17 Beta release
Use below examples to run/test the scripts and become familiar with them and edit the parameter files under IRIS_NTK/param to change parameters based on your needs.
compute hourly PSDs using command arguments and the associated parameters in the configuration filesconfiguration file name net sta loc startDateTime endDateTime x-axis type =plot run in plot mode; =time run in timing mode; =verboserun in verbose mode | | | | | | | | python bin/ntk_computePSD.py param=computePSD net=NM sta=SLM loc=DASH start=2009-01-01T00:00:00 end=2009-01-05T12:00:00 type=period mode=0 python bin/ntk_computePSD.py param=computePSD net=TA sta=959A loc=EP start=2013-10-01T11:00:00 end=2013-10-01T12:00:00 type=period mode=0IN ALL EXAMPLES IT IS ASSUMED THAT THE COMMAND IS ISSUED UNDER THE IRIS_NTK/ DIRECTORY
Please note that the “DeprecationWarning: Development and maintenance efforts will focus on the new obspy.fdsn client…..” message that you receive from the script is caused by script loading the IRIS module, as described below for the infrasound stations, and should not affect the run Use the run in plot or verbose mode to tune the parameters before a production run (mode=0):
python bin/ntk_computePSD.py param=computePSD net=NM sta=SLM loc=DASH start=2009-01-01T00:00:00 end=2009-01-05T12:00:00 type=period mode=plot
python bin/ntk_computePSD.py param=computePSD net=NM sta=SLM loc=DASH start=2009-11-01T11:00:00 end=2009-11-01T12:00:00 type=frequency mode=0
At this time the FDSN services is not able to remove instrument response from infrasound data if the response is a polynomial
to process infrasound data, in the configuration file change the channel to BDF and the requestClient to IRIS
python bin/ntk_computePSD.py param=computePSD net=TA sta=959A loc=EP chan=BDF start=2013-10-01T11:00:00 end=2013-10-01T12:00:00 type=frequency mode=0
set requestClient = “FILES” to flag the script that the waveform data are coming from file and fileTag = “{IRIS_NTK_PSD}/data/TEST/SAC/W*.SAC” to tell it which files to look at
python bin/ntk_computePSD.py param=computePSD net=TA sta=W5 loc=DASH start=2014-03-17T04:30:00 end=2014-03-17T05:30:00 type=period mode=0
python bin/ntk_computePSD.py param=computePSD net=TA sta=O6 loc=DASH start=2013-10-01T11:00:00 end=2013-10-01T12:00:00 type=period mode=0
python bin/ntk_computePSD.py param=computePSD net=TA sta=25 loc=DASH start=2013-10-01T11:00:00 end=2013-10-01T12:00:00 type=period mode=0
nohup python bin/ntk_computePSD.py param=computePSD net=NM sta=SLM loc=DASH start=2010-01-01T00:00:00 end=2011-01-01T00:00:00 type=period mode=0 >& /tmp/psdSLM_2010 &
http://www.fdsn.org/webservices/FDSN-WS-Specifications-1.1.pdf
a Python script to extract PSDs for a given channel and bounding parameters.configuration file name net sta loc chan start date-time end date-time x-axis type verbose on/off | | | | | | | | | python bin/ntk_extractPsdHour.py param=extractPsdHour net=NM sta=SLM loc=DASH chan=BHZ start=2009-01-01T10:00:00 end=2009-01-05T12:00:00 type=period mode=0The ntk_computePSD.py output files The output is similar to PQLX’s exPSDhour script and will provide the output path/file at the end of the run
python bin/ntk_extractPsdHour.py param=extractPsdHour net=NM sta=SLM loc=DASH chan=BHZ start=2009-01-01T10:00:00 end=2009-01-05T12:00:00 type=period mode=0
configuration file name net sta loc chan start day end day[inclusive] x-axis type verbose on/off | | | | | | | | | python ntk_binPsdDay.py param=binPsdDay net=NM sta=SLM loc=DASH chan=BHZ start=2009-01-01 end=2009-01-06 type=period mode=0The ntk_computePSD.py output files
python bin/ntk_binPsdDay.py param=binPsdDay net=NM sta=SLM loc=DASH chan=BHZ start=2009-01-01 end=2009-01-06 type=period mode=0
Previous release (V.1) docs: