Changeset 572 for trunk/UTIL/PYTHON/myplot.py
- Timestamp:
- Mar 7, 2012, 7:56:37 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/myplot.py
r571 r572 93 93 94 94 ## Author: AC 95 def windamplitude (nc) 95 def windamplitude (nc): 96 96 varinfile = nc.variables.keys() 97 97 if "U" in varinfile: zu=getfield(nc,'U') … … 1041 1041 ## Read sparse data 1042 1042 from numpy import empty 1043 if datatype is'txt':1043 if datatype == 'txt': 1044 1044 if len(data[coord1].shape) == 1: 1045 1045 return data[coord1][:] … … 1048 1048 else: 1049 1049 errormess('error in readdata') 1050 elif datatype is'sav':1050 elif datatype == 'sav': 1051 1051 return data[coord1][coord2] 1052 1052 else:
Note: See TracChangeset
for help on using the changeset viewer.