Changeset 1836 in lmdz_wrf for trunk/tools/nc_var_tools.py
- Timestamp:
- Mar 21, 2018, 2:24:47 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r1835 r1836 18497 18497 newvarattr['units'] = varattrs[5] 18498 18498 elif vn == 'WRFt': 18499 varin = temp[t lsc]18499 varin = temp[tslc] 18500 18500 isgeop = False 18501 18501 varattrs = gen.variables_values('WRFt') … … 18550 18550 ovarin2[it,:,yini+1:yend+1,:]) 18551 18551 for iz in range(dimz): 18552 varin[:,iz,:,:] = varin0[tini:tend,iz,yini:yend,:]* \ 18553 ocosa[tini:tend,yini:yend,:] - \ 18554 varin02[tini:tend,iz,yini:yend,:]* \ 18552 varin[:,iz,:,:] = varin0[:,iz,:,:]* \ 18553 ocosa[tini:tend,yini:yend,:] - varin02[:,iz,:,:]* \ 18555 18554 osina[tini:tend,yini:yend,:] 18556 18555 isgeop = False … … 18604 18603 ovarin2[it,:,yini+1:yend+1,:]) 18605 18604 for iz in range(dimz): 18606 varin[:,iz,:,:] = varin0[tini:tend,iz,yini:yend,:]* \ 18607 osina[tini:tend,yini:yend,:] + \ 18608 varin02[tini:tend,iz,yini:yend,:]* \ 18605 varin[:,iz,:,:] = varin0[:,iz,:,:]* \ 18606 osina[tini:tend,yini:yend,:] + varin02[:,iz,:,:]* \ 18609 18607 ocosa[tini:tend,yini:yend,:] 18610 18608 isgeop = False … … 18758 18756 varin0[it-tend,:,:,:]=0.5*(ovarin[it,:,yini:yend,0:dimx]+\ 18759 18757 ovarin[it,:,yini:yend,1:dimx+1]) 18760 varin02[it,:,yini:yend,:] = \ 18761 0.5*(ovarin2[it,:,yini:yend,:] + \ 18758 varin02[it-tend,:,:,:] = 0.5*(ovarin2[it,:,yini:yend,:]+ \ 18762 18759 ovarin2[it,:,yini+1:yend+1,:]) 18763 18760 for iz in range(dimz): 18764 varin[:,iz,:,:] = varin0[tini:tend,iz,yini:yend,:]* \ 18765 ocosa[tini:tend,yini:yend,:] - \ 18766 varin02[tini:tend,iz,yini:yend,:]* \ 18761 varin[:,iz,:,:] = varin0[:,iz,:,:]* \ 18762 ocosa[tini:tend,yini:yend,:] - varin02[:,iz,:,:]* \ 18767 18763 osina[tini:tend,yini:yend,:] 18768 18764 isgeop = False … … 18816 18812 ovarin2[it,:,yini+1:yend+1,:]) 18817 18813 for iz in range(dimz): 18818 varin[:,iz,:,:] = varin0[tini:tend,iz,yini:yend,:]* \ 18819 osina[tini:tend,yini:yend,:] + \ 18820 varin02[tini:tend,iz,yini:yend,:]* \ 18814 varin[:,iz,:,:] = varin0[:,iz,:,:]* \ 18815 osina[tini:tend,yini:yend,:] + varin02[:,iz,:,:]* \ 18821 18816 ocosa[tini:tend,yini:yend,:] 18822 18817 isgeop = False … … 18974 18969 ovarin2[it,:,yini+1:yend+1,:]) 18975 18970 for iz in range(dimz): 18976 varin[:,iz,:,:] = varin0[tini:tend,iz,yini:yend,:]* \ 18977 ocosa[tini:tend,yini:yend,:] - \ 18978 varin02[tini:tend,iz,yini:yend,:]* \ 18971 varin[:,iz,:,:] = varin0[:,iz,:,:]* \ 18972 ocosa[tini:tend,yini:yend,:] - varin02[:,iz,:,:]* \ 18979 18973 osina[tini:tend,yini:yend,:] 18980 18974 isgeop = False … … 19028 19022 ovarin2[it,:,yini+1:yend+1,:]) 19029 19023 for iz in range(dimz): 19030 varin[:,iz,:,:] = varin0[tini:tend,iz,yini:yend,:]* \ 19031 osina[tini:tend,yini:yend,:] + \ 19032 varin02[tini:tend,iz,yini:yend,:]* \ 19024 varin[:,iz,:,:] = varin0[:,iz,:,:]* \ 19025 osina[tini:tend,yini:yend,:] + varin02[:,iz,:,:]* \ 19033 19026 ocosa[tini:tend,yini:yend,:] 19034 19027 isgeop = False … … 19182 19175 ovarin2[it,:,yini+1:yend+1,:]) 19183 19176 for iz in range(dimz): 19184 varin[:,iz,:,:] = varin0[tini:tend,iz,yini:yend,:]* \ 19185 ocosa[tini:tend,yini:yend,:] - \ 19186 varin02[tini:tend,iz,yini:yend,:]* \ 19177 varin[:,iz,:,:] = varin0[:,iz,:,:]* \ 19178 ocosa[tini:tend,yini:yend,:] - varin02[:,iz,:,:]* \ 19187 19179 osina[tini:tend,yini:yend,:] 19188 19180 isgeop = False … … 19203 19195 # Not pro, but less memory problems! 19204 19196 for it in range(tini,tend): 19205 varin[it ,:,:,:] = 0.5*(ovarin[it,:,yini:yend,:] +\19197 varin[it-tini,:,:,:] = 0.5*(ovarin[it,:,yini:yend,:] + \ 19206 19198 ovarin[it,:,yini+1:yend+1,:]) 19207 19199 isgeop = False … … 19236 19228 ovarin2[it,:,yini+1:yend+1,:]) 19237 19229 for iz in range(dimz): 19238 varin[:,iz,:,:] = varin0[tini:tend,iz,yini:yend,:]* \ 19239 osina[tini:tend,yini:yend,:] + \ 19240 varin02[tini:tend,iz,yini:yend,:]* \ 19230 varin[:,iz,:,:] = varin0[:,iz,:,:]* \ 19231 osina[tini:tend,yini:yend,:] + varin02[:,iz,:,:]* \ 19241 19232 ocosa[tini:tend,yini:yend,:] 19242 19233 isgeop = False
Note: See TracChangeset
for help on using the changeset viewer.