Changeset 203 for trunk/MESOSCALE/PLOT/PYTHON/scripts/domain.py
- Timestamp:
- Jul 11, 2011, 12:09:40 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MESOSCALE/PLOT/PYTHON/scripts/domain.py
r202 r203 5 5 def domain (namefile,proj="ortho",back="vishires",target=None,var='HGT'): 6 6 from netCDF4 import Dataset 7 from myplot import getcoord2d,define_proj,makeplotpng,simplinterv,getprefix 7 from myplot import getcoord2d,define_proj,makeplotpng,simplinterv,getprefix,dumpbdy 8 8 from matplotlib.pyplot import contourf,rcParams 9 9 from numpy.core.defchararray import find … … 12 12 ### 13 13 [lon2d,lat2d] = getcoord2d(nc) 14 lon2d = dumpbdy(lon2d) 15 lat2d = dumpbdy(lat2d) 14 16 [wlon,wlat] = simplinterv(lon2d,lat2d) 15 17 ### … … 17 19 x, y = m(lon2d, lat2d) 18 20 ### 19 contourf(x, y, nc.variables[var][0,:,:], 40) 21 what_I_plot = dumpbdy( nc.variables[var][0,:,:] ) 22 contourf(x, y, what_I_plot, 40) 20 23 ### 21 24 zeplot = getprefix(nc) + "domain"
Note: See TracChangeset
for help on using the changeset viewer.