Changeset 312 in lmdz_wrf
- Timestamp:
- Feb 26, 2015, 11:56:22 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r311 r312 10829 10829 # box values 10830 10830 slicev.append(slice(0,dimz)) 10831 slicev.append(slice(yrangeslice[it 0][0],yrangeslice[it][1]))10832 slicev.append(slice(xrangeslice[it 0][0],xrangeslice[it][1]))10831 slicev.append(slice(yrangeslice[it][0],yrangeslice[it][1])) 10832 slicev.append(slice(xrangeslice[it][0],xrangeslice[it][1])) 10833 10833 10834 10834 slicevnoT.append(slice(0,dimz)) … … 10914 10914 rvarvalst[tuple(cslice2D)] = varobj[tuple(cslicev)] 10915 10915 for iz in range(dimz): 10916 tslice = [slice(it)]+cslice2Dhor 10917 rvarvalst[iz,:,:] = np.where(circdist[tuple(tslice)] > \ 10918 np.float(Nrad), fillValue, rvarvalst[iz,:,:]) 10916 tslice = [slice(it,it)]+cslice2Dhor 10917 zslice = [slice(iz,iz)]+cslice2Dhor 10918 rvarvalst[tuple(zslice)] = np.where(circdist[tuple(tslice)] > \ 10919 np.float(Nrad), fillValue, rvarvalst[tuple(zslice)]) 10919 10920 10920 10921 rvarvals[it,:,:,:] = rvarvalst … … 10924 10925 maskedvals2 = maskedvals*maskedvals 10925 10926 for iz in range(dimz): 10926 r tatvarvals[it,iz,0] = varvalst[iz,box2,box2]10927 r tatvarvals[it,iz,1] = np.min(varvalst[iz,:,:])10928 r tatvarvals[it,iz,2] = np.max(varvalst[iz,:,:])10929 r tatvarvals[it,iz,3] = np.mean(varvalst[iz,:,:])10930 r tatvarvals[it,iz,4] = maskedvals2[iz,:,:].mean()10931 r tatvarvals[it,iz,5] = np.sqrt(rstatvarvals[it,iz,4] -\10932 r statvarvals[it,iz,3]*rstatvarvals[it,iz,3])10927 rvarvals[it,iz,0] = varvalst[iz,box2,box2] 10928 rvarvals[it,iz,1] = np.min(varvalst[iz,:,:]) 10929 rvarvals[it,iz,2] = np.max(varvalst[iz,:,:]) 10930 rvarvals[it,iz,3] = np.mean(varvalst[iz,:,:]) 10931 rvarvals[it,iz,4] = maskedvals2[iz,:,:].mean() 10932 rvarvals[it,iz,5] = np.sqrt(rvarvals[it,iz,4] - \ 10933 rvarvals[it,iz,3]*rvarvals[it,iz,3]) 10933 10934 10934 10935 else:
Note: See TracChangeset
for help on using the changeset viewer.