-
Notifications
You must be signed in to change notification settings - Fork 10
Noise Toolkit Microseism Energy (ME) bundle V.1
- calculate power of each PSD window (by default 1 hour) over selected bins (period bands)
- calculate median power from the PSD powers (by default hourly PSD power) using a sliding window of a given length (e.g., 12 hours)
- plot median powers computed from a series of PSD powers
- install Python on your computer
- additional required Python modules are:
. matplotlib
. numpy
. scipy - download the package under the installation directory.
- untar the bundle where you want to install (if you are also installing or have installed the PDF/PSD bundle of the Noise toolkit,
it is recommended to install them both under the same directory.)
WARNING: untaring this bundle over an existing installation will overwrite the files. Make sure to save any changes you have made to scripts or parameter files,
including param/common.py used also by PDF/PSD bundle.
The bundle includes an example script (run_Example.bat for the Windows users and run_Example.csh for others) under the top directory to get you started (requires the NTK PSD/PDF bundle). Script processes the BHZ channel of the CU.GTBY station with location code of 00 between 2012-10-24 00:00:00 UTC and 2012-10-27 00:00:00 UTC. This time window coincides with Hurricane Sandy . At each step pay attention to the COMMAND output line that tells you the command it is using for that step:
The steps are:
- compute PSD for the Z-component
- bin the hourly PSD’s
- compute power from the PSD values
- compute the median power using a sliding 6 hour window
- plot the secondary microseism energy for the Z-component (see image below)
with format similar to the output of either ntk_extractPsdHour.py script (see the NTK PSD/PDF bundle) or PQLX’s exPSDhour script, use examples provided in the following sections:
- compute power from the PSD values by running the bin/ntk_computePower.py script
- use the bin/ntk_medianPower.py script to obtain the median power over the desired window length from the computed PSD powers in the previous step
- plot the median power obtained in the previous step by running the bin/ntk_plotPower.py script
- 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.6.0 2015-04-30 Manoch: Beta release
- 2014-10-07 Manoch: compute power based on a combined PSD file
with format similar to output of the ntk_extractPsdHour.py script (see NTK PSD/PDF bundle) - 2013-10-07 Manoch: revision for production test
- 2013-03-14 Manoch: created
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.
All parameters are under the param directory. The “common.py” parameter file contains basic parameters shared by all parameter files. Please review ALL parameter to TO familiarize yourself with the script capabilities. For more information about this bundle, visit the IRIS DMC Noise Toolkit Data Product web page at:
http://ds.iris.edu/ds/products/noise-toolkit/ calculate power of each PSD window (by default 1 hour) over selected bin period bands as defined in the parameter fileconfiguration file name net sta loc chan PSD file type mode=0 run with minimum message output | | | | | | | = verbose run in verbose mode | | | | | | | | | | | | | | 'combined' PSD file to read | | | | | | | | python bin/ntk_computePower.py param=computePower net=NM sta=SLM loc=DASH chan=BHZ type=period mode=verbose file=NM.SLM.--.BHZ.2009-01-01T00:00:00.2010-01-01T00:00:00_period.txt
For more information visit:
ds.iris.edu/ds/products/noise-toolkit-pdf-psd- In all examples it is assumed that the command is issued under the IRIS_NTK/ directory
- The input PSD file should have the same format as the output of the ntk_extractPsdHour.py
script (see NTK PSD/PDF bundle) or PQLX’s exPSDhour script - Use the run in verbose mode to tune the parameters before a production run (mode=0):
- example below may turn the verbose mode one. Once you have configured the script, you can turn it off by setting mode=0
python bin/ntk_computePower.py param=computePower net=IU sta=GUMO loc=00 chan=BHZ type=period mode=verbose file=IU.GUMO.00.BHZ.2014-09-30T00:00:00.2014-10-21T00:00:00.period.txt
parameter file net sta loc chan start end smoothing window | | | | | | | (hours) | | | | | | | | verbose mode (0 or verbose) | | | | | | | | | | | | | | | | | | PSD power file name | | | | | | | | | | | | | | | | | | | | python ntk_medianPower.py param=medianPower net=NM sta=SLM loc=DASH chan=BHZ start=2009-02-27T00:00:00 end=2009-04-02T00:00:00 win=12 mode=verbose file=NM.SLM.--.BHZ.2009-02-27T00:00:00.2009-04-02T00:00:00.txt h5. Input: The *bin/ntk_computePower.py* output file is the input file for this script and is expected to be under the *POWER* directory. The *computePower* parameter file can be used as the input parameter file for this script. h5. output: The smoothed PDFs are stored in the 'POWER' directory under the corresponding window directory: Win(h) Dir 6 -> 6h 12 -> 12h 24 -> 1d 96 -> 4d 384 -> 16dThe output file name is printed at the end of the run and should be used when calling the plot script
python bin/ntk_medianPower.py param=medianPower net=IU sta=GUMO loc=00 chan=BHZ start=2014-10-01T00:00:00 end=2014-10-20T00:00:00 win=12 mode=0 file=IU.GUMO.00.BHZ.2014-10-01T00:00:00.2014-10-20T00:00:00.txt
configuration net station loc chan start date time end date time smoothing window (hours) file | | | | | | | bin to process(name as defined in the parameter file) | | | | | | | | | | | | | | | | | | maximum value for the y-axis | | | | | | | | input median PSD power file | | | | | | | | | | | | | verbose mode on/off (0 or verbose) python ntk_plotPower.py param=plotPower net=NET sta=STA loc=LOC chan=CHAN start=YYYY-MM-DDTHH:MI:SS end=YYYY-MM-DDTHH:MI:SS win=12 file=fileName bin=SM ymax=12 mode=0 h4. Input: The PSD median power file created by ntk_medianPower.py The output windowed PDFs are stored under the corresponding window directory as follows: Win(h) Dir 6 -> 6h 12 -> 12h 24 -> 1d 96 -> 4d 384 -> 16d period range index: Index Period range 1 1-5 local microseism 2 5-10 secondary microseism 3 11-30 primary microseism 4 50-200 Earth humThe output file is save under both “PNG” and “EPS” formats.
python bin/ntk_plotPower.py param=plotPower net=IU sta=GUMO loc=00 chan=BHZ start=2014-10-01T00:00:00 end=2014-10-20T00:00:00 win=12 file=IU.GUMO.00.BHZ.2014-10-01T00:00:00.2014-10-20T00:00:00.12h.txt bin=SM mode=0 ymax=20
Previous release (V.1) docs: