Changeset 306 in lmdz_wrf


Ignore:
Timestamp:
Feb 25, 2015, 8:01:31 PM (10 years ago)
Author:
lfita
Message:

Wrong time slice for circdist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r305 r306  
    1097610976                cslice2D = []
    1097710977                cslicevnoT = []
     10978                cslicevC = []
    1097810979
    1097910980                slicev.append(gtrajvals[it,0])
     
    1108711088                    cslice2D.append(slice(gtrajvals[it,1]-Nrad,gtrajvals[it,1]+Nrad+1))
    1108811089
     11090                    cslicevC.append(it)
     11091                    cslicevC.append(slice(gtrajvals[it,2]-Nrad,gtrajvals[it,2]+Nrad+1))
     11092                    cslicevC.append(slice(gtrajvals[it,1]-Nrad,gtrajvals[it,1]+Nrad+1))
     11093
    1108911094                    rvarvalst = varobj[tuple(cslicev)]
    11090                     cdist = circdist[tuple(cslicev)]
     11095                    cdist = circdist[tuple(cslicevC)]
    1109111096# circle values
    1109211097                    rvarvalst = np.where(cdist > np.float(Nrad),fillValue,rvarvalst)
Note: See TracChangeset for help on using the changeset viewer.