Changeset 1702 in lmdz_wrf
- Timestamp:
- Dec 8, 2017, 6:24:45 PM (7 years ago)
- Location:
- trunk/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/diag_tools.py
r1700 r1702 1334 1334 1335 1335 if len(ta.shape) != len(p.shape): 1336 p = fill_Narray(p, ta*0., filldim=[0,2,3])1336 p = gen.fill_Narray(p, ta*0., filldim=[0,2,3]) 1337 1337 1338 1338 self.values = var_td(ta, p, hur) -
trunk/tools/get_stations.py
r1701 r1702 393 393 if len(Xvarvals.shape) == 1: 394 394 newXvarvals, newYvarvals = np.meshgrid(Xvarvals, Yvarvals) 395 dimvarvalues[dimvariables[dimvariables[xn]] = newXvarvals 395 dimvarvalues[dimvariables[xn]] = newXvarvals 396 if len(Yvarvals.shape) == 1: 397 dimvarvalues[dimvariables['lat']] = newYvarvals 398 396 399 for yn in axesvars['Y']: 397 400 Xvarvals = dimvarvalues[CFdims['lon']] … … 399 402 if len(Yvarvals.shape) == 1: 400 403 newXvarvals, newYvarvals = np.meshgrid(Xvarvals, Yvarvals) 401 dimvarvalues[dimvariables[ dimvariables[yn]] = newYvarvals404 dimvarvalues[dimvariables[yn]] = newYvarvals 402 405 403 406 # Retrieving surface data
Note: See TracChangeset
for help on using the changeset viewer.