Changeset 457 for trunk/UTIL
- Timestamp:
- Dec 7, 2011, 11:56:29 AM (13 years ago)
- Location:
- trunk/UTIL/PYTHON
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/myplot.py
r453 r457 864 864 "South_Pole": [[-90.,-50.],[-180., 180.]],\ 865 865 "Close_South_Pole": [[-90.,-75.],[-180., 180.]],\ 866 "Sirenum_Crater_large": [[-46.,-34.],[-166., -151.]],\ 867 "Sirenum_Crater_small": [[-36.,-26.],[-168., -156.]],\ 868 866 869 } 867 870 if area not in list: area = "Whole" -
trunk/UTIL/PYTHON/myscript.py
r453 r457 31 31 parser.add_option('--res', action='store',dest='res', type="float", default=200., help='Resolution for png outputs. --save png needed. [200.]') 32 32 parser.add_option('--trans', action='store',dest='trans', type="float", default=1., help='shaded plots transparency, from 0 (transparent) to 1 (opaque) [1]') 33 parser.add_option('--area', action='store',dest='area', type="string", default=None, help='Area on the map to be plot [None]') 33 34 34 35 ### SPECIFIC FOR MAPPING [MAPMODE 1] -
trunk/UTIL/PYTHON/planetoplot.py
r453 r457 56 56 mrate=None,\ 57 57 mquality=False,\ 58 trans=1): 58 trans=1,\ 59 zarea=None): 59 60 60 61 … … 189 190 elif proj in ["lcc","laea"]: [wlon,wlat] = wrfinterv(lon2d,lat2d) 190 191 else: [wlon,wlat] = simplinterv(lon2d,lat2d) 191 if zoom: [wlon,wlat] = zoomset(wlon,wlat,zoom) 192 if zoom: [wlon,wlat] = zoomset(wlon,wlat,zoom) 193 elif zarea is not None: [wlon,wlat] = latinterv(area=zarea) 192 194 193 195 all_varname[k] = varname … … 216 218 if "var" not in ope: 217 219 if len(var) > 1: errormess("for this operation... please set only one var !") 218 if ope in ["-","+" ]:220 if ope in ["-","+","-%"]: 219 221 if fileref is not None: all_var[k] = getfield(Dataset(fileref),all_varname[k-1]) ; all_varname[k] = all_varname[k-1] ; all_time[k] = all_time[k-1] ; all_namefile[k] = all_namefile[k-1] 220 222 else: errormess("fileref is missing!") 221 223 if ope == "-": all_var[k+1]= all_var[k-1] - all_var[k] 222 224 elif ope == "+": all_var[k+1]= all_var[k-1] + all_var[k] 225 elif ope == "-%": all_var[k+1]= 100.*(all_var[k-1] + all_var[k])/all_var[k] 223 226 all_varname[k+1] = all_varname[k] ; all_time[k+1] = all_time[k] ; all_namefile[k+1] = all_namefile[k] ; numplot = numplot+2 224 227 elif ope in ["cat"]: … … 244 247 fig = figure() 245 248 subv,subh = definesubplot( numplot, fig ) 249 if ope in ['-','-%']: subv,subh = 2,2 246 250 247 251 ################################# -
trunk/UTIL/PYTHON/pp.py
r453 r457 141 141 invert_y=opt.inverty,xaxis=zexaxis,yaxis=zeyaxis,ylog=opt.logy,yintegral=opt.column,\ 142 142 blat=opt.blat,blon=opt.blon,tsat=opt.tsat,flagnolow=opt.nolow,\ 143 mrate=opt.rate,mquality=opt.quality,trans=opt.trans )143 mrate=opt.rate,mquality=opt.quality,trans=opt.trans,zarea=opt.area) 144 144 print 'DONE: '+name 145 145 system("rm -f to_be_erased")
Note: See TracChangeset
for help on using the changeset viewer.