Changeset 896 for trunk/UTIL/PYTHON/myplot.py
- Timestamp:
- Mar 10, 2013, 10:44:32 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/myplot.py
r886 r896 98 98 ## this allows to get much faster and use much less memory esp. with large datasets 99 99 print " Opening variable",var," with", dimension, "dimensions ..." 100 print indextime, indexlon, indexlat, indexvert 100 101 if dimension == 2: 101 102 field = nc.variables[var][indextime,indexlon] … … 1610 1611 idx=idxsub[0]+np.min(idxs) ; idy=idysub[0]+np.min(idys) 1611 1612 return np.int(idx),np.int(idy) 1613 1614 # Author : A.S. 1615 # This is temporary. An object formulation would solve this kind of inelegant approach. 1616 def alltransfer(zeto,zefrom,all_varname,all_time,all_vert,all_lat,all_lon,all_namefile,all_var2,all_colorb,all_var): 1617 all_varname[zeto] = all_varname[zefrom] 1618 all_time[zeto] = all_time[zefrom] 1619 all_vert[zeto] = all_vert[zefrom] 1620 all_lat[zeto] = all_lat[zefrom] 1621 all_lon[zeto] = all_lon[zefrom] 1622 all_namefile[zeto] = all_namefile[zefrom] 1623 all_var2[zeto] = all_var2[zefrom] 1624 all_colorb[zeto] = all_colorb[zefrom] 1625 all_var[zeto] = all_var[zefrom]
Note: See TracChangeset
for help on using the changeset viewer.