Ignore:
Timestamp:
Nov 30, 2011, 11:59:14 AM (13 years ago)
Author:
aslmd
Message:

GRAPHICS: previous commit by acolmd is actually useful for all idealized mesoscale simulations. corrected pp.py so that vert interp with those files is possible. some purely cosmetic changes. changed typefile='les' to 'mesoideal'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/PYTHON/planetoplot.py

    r428 r429  
    115115      ### ... TYPEFILE
    116116      typefile = whatkindfile(nc)                                 
    117       if typefile in ['les']:
    118           mapmode=0
    119           winds=False
     117      if typefile in ['mesoideal']:   mapmode=0;winds=False
    120118      if firstfile: print "********** MAPMODE: ", mapmode
    121119      if firstfile:                 typefile0 = typefile
     
    133131      [lon2d,lat2d] = getcoorddef(nc)
    134132      ### ... PROJECTION
    135       if ((proj == None) and (typefile not in ['les'])):   proj = getproj(nc)                 
     133      if ((proj == None) and (typefile not in ['mesoideal'])):   proj = getproj(nc)                 
    136134
    137135##########################################################
     
    142140          else:                           errormess("no time axis found.")
    143141          vert = nc.variables["altitude"][:]
    144       elif typefile in ['meso','mesoapi','geo','les']:
     142      elif typefile in ['meso','mesoapi','geo','mesoideal']:
    145143          if vlon is not None or vlat is not None:   indices = bidimfind(lon2d,lat2d,vlon,vlat) ; print '********** INDICES: ', indices
    146144          if slon is not None: slon[0][0] = indices[0] ; slon[0][1] = indices[0]
Note: See TracChangeset for help on using the changeset viewer.