Changeset 568
- Timestamp:
- Mar 7, 2012, 4:11:07 PM (13 years ago)
- Location:
- trunk/UTIL/PYTHON
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/myplot.py
r562 r568 223 223 subh = 99999 224 224 elif numplot == 1: 225 subv = 99999226 subh = 99999225 subv = 1 226 subh = 1 227 227 elif numplot == 2: 228 228 subv = 1 #2 … … 999 999 1000 1000 return zesaxis 1001 1002 ## Author: TN 1003 def readdata(data,datatype,coord1,coord2): 1004 ## Read sparse data 1005 from numpy import empty 1006 if datatype is 'txt': 1007 if len(data[coord1].shape) == 1: 1008 return data[coord1][:] 1009 elif len(data[coord1].shape) == 2: 1010 return data[coord1][:,int(coord2)-1] 1011 else: 1012 errormess('error in readdata') 1013 elif datatype is 'sav': 1014 return data[coord1][coord2] 1015 else: 1016 errormess(datatype+' type is not supported!') 1017 1001 1018 1002 1019 ## Author: AS
Note: See TracChangeset
for help on using the changeset viewer.