Ignore:
Timestamp:
Jun 29, 2011, 5:44:33 PM (14 years ago)
Author:
aslmd
Message:

MESOSCALE: PYTHON: ajouts librairies maison: myplot mymath myecmwf. ajouts scripts maison: domain winds

Location:
trunk/MESOSCALE/PLOT/PYTHON/scripts
Files:
2 added
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/MESOSCALE/PLOT/PYTHON/scripts/domain.py

    r178 r180  
    88    print 'Example:  domain.py /tmp7/aslmd/HELLAS/wrfout_d02_2024-10-03_06:00:00'
    99
    10 def domain (namefile):
     10def domain (namefile,proj="ortho",back="molabw"): #vishires
    1111    from netCDF4 import Dataset
    1212    from myplot import getcoord2d,define_proj,makeplotpng,simplinterv
     
    1515    [lon2d,lat2d] = getcoord2d(nc)
    1616    [wlon,wlat] = simplinterv(lon2d,lat2d)
    17     m = define_proj("ortho",wlon,wlat,back="vishires")
     17    m = define_proj(proj,wlon,wlat,back=back)
    1818    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)
    2121
    2222if __name__ == "__main__":
Note: See TracChangeset for help on using the changeset viewer.