Changeset 180 for trunk/MESOSCALE/PLOT/PYTHON
- Timestamp:
- Jun 29, 2011, 5:44:33 PM (14 years ago)
- Location:
- trunk/MESOSCALE/PLOT/PYTHON
- Files:
-
- 7 added
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/MESOSCALE/PLOT/PYTHON/map_ecmwf.py
r177 r180 11 11 ########################################################################## 12 12 proj = "cyl" #"moll" "ortho" "lcc" 13 proj = "ortho"13 #proj = "ortho" 14 14 area = "Europe" 15 area = "Central_America"16 area = "Southern_Hemisphere"17 area = "Northern_Hemisphere"15 #area = "Central_America" 16 #area = "Southern_Hemisphere" 17 #area = "Northern_Hemisphere" 18 18 ########################################################################## 19 19 -
trunk/MESOSCALE/PLOT/PYTHON/scripts/domain.py
r178 r180 8 8 print 'Example: domain.py /tmp7/aslmd/HELLAS/wrfout_d02_2024-10-03_06:00:00' 9 9 10 def domain (namefile ):10 def domain (namefile,proj="ortho",back="molabw"): #vishires 11 11 from netCDF4 import Dataset 12 12 from myplot import getcoord2d,define_proj,makeplotpng,simplinterv … … 15 15 [lon2d,lat2d] = getcoord2d(nc) 16 16 [wlon,wlat] = simplinterv(lon2d,lat2d) 17 m = define_proj( "ortho",wlon,wlat,back="vishires")17 m = define_proj(proj,wlon,wlat,back=back) 18 18 x, y = m(lon2d, lat2d) 19 contourf(x, y, nc.variables['HGT'][0,:,:] / 1000., 50)20 makeplotpng(namefile+".domain",pad_inches_value=0. 15)19 contourf(x, y, nc.variables['HGT'][0,:,:] / 1000., 50) 20 makeplotpng(namefile+".domain",pad_inches_value=0.05) 21 21 22 22 if __name__ == "__main__":
Note: See TracChangeset
for help on using the changeset viewer.