#!/usr/bin/python # program displays CG strikes over Oklahoma. # written by K. Kuhlman modifying code originally written by B. Fiedler for # plotting and using vplot import cPickle, vplot, math, getopt, sys pickledboundaries='world_us_country.pickle' epsfilename='cgmap.eps' def reCoordList(a,maptrans,param): m=0 b=[] while m 10.0: a.color('red') else: a.color(1.0,0.7,0.75) lat = float(cg[n][2]) lon = float(cg[n][3]) a.circle(lon,lat,2,'F') # prints CG location n += 1 ### text for legend in upper corner of map ### a.color('black') a.text(lonmin+0.05,latmax,0,10,cg[n][0]) a.text(lonmin+0.05,latmax-0.15,0,10,cg[t][1][0:8]+ " - " +cg[n][1][0:8]+ " UTC") a.color('red') a.text(lonmin+0.05,latmax-0.3,0,10,"+ CG") a.color(1.0,0.7,0.75) a.text(lonmin+0.7,latmax-0.3,0,10,"(< 10 kA)") a.color('blue') a.text(lonmin+0.05,latmax-0.45,0,10,"- CG") a.color(0.64,0.83,0.93) a.text(lonmin+0.7,latmax-0.45,0,10,"(< 10 kA)") a.close()