Ignore:
Timestamp:
Mar 7, 2012, 7:56:37 PM (13 years ago)
Author:
aslmd
Message:

UTIL PYTHON: solved problem in previous commit for windamplitude. tested sparse.py and fixed minor problems: use == instead of is and implemented the use of ftype.

File:
1 edited

Legend:

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

    r571 r572  
    9393
    9494## Author: AC
    95 def windamplitude (nc)
     95def windamplitude (nc):
    9696    varinfile = nc.variables.keys()
    9797    if "U" in varinfile: zu=getfield(nc,'U')
     
    10411041## Read sparse data
    10421042  from numpy import empty
    1043   if datatype is 'txt':
     1043  if datatype == 'txt':
    10441044     if len(data[coord1].shape) == 1:
    10451045         return data[coord1][:]
     
    10481048     else:
    10491049         errormess('error in readdata')
    1050   elif datatype is 'sav':
     1050  elif datatype == 'sav':
    10511051     return data[coord1][coord2]
    10521052  else:
Note: See TracChangeset for help on using the changeset viewer.