Changeset 718
- Timestamp:
- Jul 4, 2012, 6:10:38 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/planetoplot.py
r717 r718 143 143 if firstfile: typefile0 = typefile 144 144 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 146 147 if "longitude" in nc.dimensions and "latitude" in nc.dimensions: is1d = len(nc.variables["longitude"][:])*len(nc.variables["latitude"][:]) 147 148 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.