Changeset 306 in lmdz_wrf
- Timestamp:
- Feb 25, 2015, 8:01:31 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r305 r306 10976 10976 cslice2D = [] 10977 10977 cslicevnoT = [] 10978 cslicevC = [] 10978 10979 10979 10980 slicev.append(gtrajvals[it,0]) … … 11087 11088 cslice2D.append(slice(gtrajvals[it,1]-Nrad,gtrajvals[it,1]+Nrad+1)) 11088 11089 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 11089 11094 rvarvalst = varobj[tuple(cslicev)] 11090 cdist = circdist[tuple(cslicev )]11095 cdist = circdist[tuple(cslicevC)] 11091 11096 # circle values 11092 11097 rvarvalst = np.where(cdist > np.float(Nrad),fillValue,rvarvalst)
Note: See TracChangeset
for help on using the changeset viewer.