Changeset 2529 in lmdz_wrf
- Timestamp:
- May 11, 2019, 8:59:53 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r2525 r2529 30420 30420 30421 30421 varvt = varv.transpose() 30422 if Nvdims == 3 and len(sN.shape) == 4: 30422 if Nvdims == 4 and len(sN.shape) == 3: 30423 voutt=fsci.module_scientific.multi_spaceweightstats_in4drk3_4_slc3v3( \ 30424 varin=varvt, ngridsin=sNt, gridsin=sint, percentages=spt, \ 30425 di1=d3, di2=d2, di3=d1, di4=d0, ds1=ssh[2], ds2=ssh[1], ds3=ssh[0], \ 30426 maxngridsin=sin.shape[1]) 30427 elif Nvdims == 3 and len(sN.shape) == 4: 30423 30428 voutt=fsci.module_scientific.multi_spaceweightstats_in3drk3_slc3v4( \ 30424 30429 varin=varvt, ngridsin=sNt, gridsin=sint, percentages=spt, \ … … 31171 31176 31172 31177 varvt = varv.transpose() 31173 if Nvdims == 3 and len(sN.shape) == 4: 31178 if Nvdims == 4 and len(sN.shape) == 3: 31179 voutt=fsci.module_scientific.multi_spaceweightstats_in4drk3_4_slc3v3( \ 31180 varin=varvt, ngridsin=sNt, gridsin=sint, percentages=spt, \ 31181 di1=d3, di2=d2, di3=d1, di4=d0, ds1=ssh[2], ds2=ssh[1], ds3=ssh[0], \ 31182 maxngridsin=sin.shape[1]) 31183 elif Nvdims == 3 and len(sN.shape) == 4: 31174 31184 voutt=fsci.module_scientific.multi_spaceweightstats_in3drk3_slc3v4( \ 31175 31185 varin=varvt, ngridsin=sNt, gridsin=sint, percentages=spt, \ 31176 31186 di1=d2, di2=d1, di3=d0, ds1=ssh[3], ds2=ssh[2], ds3=ssh[1], \ 31177 31187 ds4=ssh[0], maxngridsin=sin.shape[1]) 31178 elif Nvdims == 4 and len(sN.shape) == 3:31179 voutt=fsci.module_scientific.multi_spaceweightstats_in4drk3_4_slc3v3( \31180 varin=varvt, ngridsin=sNt, gridsin=sint, percentages=spt, \31181 di1=d3, di2=d2, di3=d1, di4=d0, ds1=ssh[2], ds2=ssh[1], ds3=ssh[0], \31182 maxngridsin=sin.shape[1])31183 31188 elif Nvdims == 3 and len(sN.shape) == 3: 31184 31189 voutt=fsci.module_scientific.multi_spaceweightstats_in3drk3_slc3v3( \ … … 31186 31191 di1=d2, di2=d1, di3=d0, ds1=ssh[2], ds2=ssh[1], ds3=ssh[0], \ 31187 31192 maxngridsin=sin.shape[1]) 31193 elif Nvdims == 3 and len(sN.shape) == 2: 31194 voutt=fsci.module_scientific.multi_spaceweightstats_in3drk3_slc2v2( \ 31195 varin=varvt, ngridsin=sNt, gridsin=sint, percentages=spt, \ 31196 di1=d2, di2=d1, di3=d0, ds1=ssh[1], ds2=ssh[0], \ 31197 maxngridsin=sin.shape[1]) 31188 31198 elif Nvdims == 2 and len(sN.shape) == 3: 31189 31199 voutt=fsci.module_scientific.multi_spaceweightstats_in2drkno_slc3v3( \ 31190 31200 varin=varvt, ngridsin=sNt, gridsin=sint, percentages=spt, \ 31191 31201 di1=d1, di2=d0, ds1=ssh[2], ds2=ssh[1], ds3=ssh[0], \ 31202 maxngridsin=sin.shape[1]) 31203 elif Nvdims == 2 and len(sN.shape) == 2: 31204 voutt=fsci.module_scientific.multi_spaceweightstats_in2drkno_slc2v2( \ 31205 varin=varvt, ngridsin=sNt, gridsin=sint, percentages=spt, \ 31206 di1=d1, di2=d0, ds1=ssh[1], ds2=ssh[0], \ 31192 31207 maxngridsin=sin.shape[1]) 31193 31208 elif Nvdims == 1 and len(sN.shape) == 3: … … 31200 31215 ' slice rank:', len(sN.shape), 'not ready!!' 31201 31216 print ' available ones _______' 31217 print ' var_rank: 4 slice_rank: 3' 31202 31218 print ' var_rank: 3 slice_rank: 4' 31203 print ' var_rank: 4 slice_rank: 3'31204 31219 print ' var_rank: 3 slice_rank: 3' 31220 print ' var_rank: 3 slice_rank: 2' 31205 31221 print ' var_rank: 2 slice_rank: 3' 31222 print ' var_rank: 2 slice_rank: 2' 31206 31223 print ' var_rank: 1 slice_rank: 3' 31207 31224 quit(-1)
Note: See TracChangeset
for help on using the changeset viewer.