Difference between revisions of "GoF Map Plotter"

From SCECpedia
Jump to navigationJump to search
Line 18: Line 18:
  
 
<pre>
 
<pre>
usage: dopvm.py [inputfile] <zone> <ncol> <s_col> <s_label> <o_col> <o_label> <gof> <clabel> <units> <cmult>
+
usage: dopvm.py [inputfile] <zone> <ncol> <s_col> <s_label> <o_col> <o_label> <gof> <clabel> <units> <cmult> <display>
 
 
 
         [inputfile]    is a single input file that needs to be processed. (Required)
 
         [inputfile]    is a single input file that needs to be processed. (Required)
Line 33: Line 33:
 
<units> Color bar units.
 
<units> Color bar units.
 
<cmult> Color bar multiplier.
 
<cmult> Color bar multiplier.
 +
<display> Display plots on screen T/F. (Default False)
 
</pre>
 
</pre>
 
[[File:3869069_syn_map.png|256px|thumb|right|GoF Map Plotter PGV map.]]
 
[[File:3869069_syn_map.png|256px|thumb|right|GoF Map Plotter PGV map.]]
Line 38: Line 39:
  
 
<pre>
 
<pre>
  dopvm.py pgv_gof.txt 11 2 7 2 "syn" 3 "obs" "false" "Vel" "m/s" 10000
+
  dopvm.py pgv_gof.txt 11 2 7 2 "syn" 3 "obs" "false" "Vel" "m/s" 10000 "true"
 
</pre>
 
</pre>
  

Revision as of 06:54, 26 May 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> <display>
	
        [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.
	<display>	Display plots on screen T/F. (Default False)
GoF Map Plotter PGV map.

Example:

 dopvm.py pgv_gof.txt 11 2 7 2 "syn" 3 "obs" "false" "Vel" "m/s" 10000 "true"
 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
 ...
 ...