Difference between revisions of "GoF Map Plotter"

From SCECpedia
Jump to navigationJump to search
Line 12: Line 12:
 
= Download =
 
= Download =
  
The tool can be downloaded from  
+
The tool can be downloaded from:
 +
http://earth.usc.edu/downloads/sandarsh/pub/gof_map_plot.tgz
  
 
= Usage =
 
= Usage =

Revision as of 17:21, 27 April 2011

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: http://earth.usc.edu/downloads/sandarsh/pub/gof_map_plot.tgz

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.
GoF Map Plotter PGV map.

Example:

 dopvm.py pgv_gof.txt 11 2 7 2 "syn" 3 "obs" "false" "Vel" "m/s" 10000
 Listing of pgv_gof.txt:
 
 33.57526 -116.22584 0.000145 0.000683 m/s 62.8 km CI:TOR:peak ground velocity smi://caltech.gps.edu/onsite/cinnabar/vs/18446744071631306795 CI 10931805
 34.15738 -115.14513 0.000031 0.000071 m/s 167.4 km CI:IRM:peak ground velocity smi://caltech.gps.edu/onsite/cinnabar/vs/18446744071631306719 CI 10931805
 ...
 ...