GoF Map Plotter
From SCECpedia
Jump to navigationJump to search
Overview
GoF Map Plotter is a set of codes for producing map plot with GoF values as overlays. These plots are similar to the ones produced by Mayhew-Olsen in their Goodness-of-fit paper.
The tool makes use of standard software packages including:
- Python v2.6+
- Numpy
- Matplotlib
- Pyproj
Download
The tool can be downloaded from
Usage
usage: dopvm.py [inputfile] <zone> <ncol> <s_col> <s_label> <o_col> <o_label> <gof> <clabel> <units> <cmult> [inputfile] is a single input file that needs to be processed. (Required) <zone> is the UTM zone where stations are located. (Default zone 11) (only single UTM zone can be handled during a run) <ncols> Number of columns of data. (Default 1) <scode_col> Site code column number. <s_col> Synthetic data column number. (Default 2) <s_label> Label for Synthetic data. <o_col> Observed data column number. (Default 3, if ncols >1) <o_label> Observed data label <gof> Calculate GoF for s_col and o_col and plot map. T/F (Default False) <clabel> Color bar label. <units> Color bar units. <cmult> Color bar multiplier.
Example:
dopvm.py pgv_gof.txt 11 2 6 2 "syn" 3 "obs" "false" "Vel" "m/s" 10000