Changeset 718


Ignore:
Timestamp:
Jul 4, 2012, 6:10:38 PM (12 years ago)
Author:
acolaitis
Message:

Python. Added initialisation for is1d variable to correct use of pp.py with mesoscale files

File:
1 edited

Legend:

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

    r717 r718  
    143143      if firstfile:                 typefile0 = typefile
    144144      elif typefile != typefile0:   errormess("Not the same kind of files !", [typefile0, typefile])
    145     ### we care for input file being 1D simulations
     145    ### we care for input file being 1D simulations
     146      is1d=999
    146147      if "longitude" in nc.dimensions and "latitude" in nc.dimensions: is1d = len(nc.variables["longitude"][:])*len(nc.variables["latitude"][:])
    147148      elif "lon" in nc.dimensions and "lat" in nc.dimensions: is1d = len(nc.variables["lon"][:])*len(nc.variables["lat"][:])
Note: See TracChangeset for help on using the changeset viewer.