Ignore:
Timestamp:
Mar 10, 2013, 10:44:32 PM (12 years ago)
Author:
aslmd
Message:

UTIL PYTHON. cosmetic changes. improved treatment of ticks in 1D plots.

File:
1 edited

Legend:

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

    r886 r896  
    9898    ## this allows to get much faster and use much less memory esp. with large datasets
    9999    print "   Opening variable",var," with", dimension, "dimensions ..."
     100    print indextime, indexlon, indexlat, indexvert
    100101    if dimension == 2:   
    101102        field = nc.variables[var][indextime,indexlon]
     
    16101611    idx=idxsub[0]+np.min(idxs) ; idy=idysub[0]+np.min(idys)
    16111612    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.
     1616def 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.