Changeset 2169 in lmdz_wrf
- Timestamp:
- Oct 5, 2018, 10:26:17 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r2168 r2169 25834 25834 olat = donc.variables[datavlatn] 25835 25835 lat0 = olat[:] 25836 oheight = donc.variables[datavheightn]25837 height0 = oheight[:]25838 25836 25839 25837 lon, lat = gen.lonlat2D(lon0, lat0) … … 25842 25840 25843 25841 if datavheightn != 'None': 25842 oheight = donc.variables[datavheightn] 25843 height0 = oheight[:] 25844 25844 if len(height0.shape) == 3: height = height0[0,:,:] 25845 25845 elif len(height0.shape) == 2: height = height0[:] … … 26100 26100 26101 26101 stgridvals[0] = ist 26102 if ist == 1:26103 print 'Lluis shapes ____'26104 print 'newvar:', newvar.shape26105 print 'vslice:', vslice26106 print 'vstslice:', vstslice26107 print 'stgridvals:', stgridvals26108 print 'varvalues:', varvalues.shape26109 print 'weights:', vwghts.shape26110 print 'stvarv:', stvarv.shape26111 vvv = varvalues*vwghts26112 print ' Lluis shape prod:', vvv.shape26113 26114 26102 newvar[tuple(stgridvals)] = stvarv[:] 26115 26103 onewnc.sync()
Note: See TracChangeset
for help on using the changeset viewer.