Changeset 1692 in lmdz_wrf
- Timestamp:
- Dec 6, 2017, 3:52:49 PM (7 years ago)
- Location:
- trunk/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/config_get_stations.WRF.py
r1688 r1692 44 44 'T': ['WRFtime']} 45 45 46 # dim Variables 46 # dim Variables ('H' to determine station height from file) 47 47 dimvariables = {'west_east': 'XLONG', 'south_north': 'XLAT', 'bottom_top': 'ZNU', \ 48 48 'Time': 'WRFtime', 'west_east_stag': 'XLONG_U', 'south_north_stag': 'XLAT_U', \ 49 'bottom_top_stag': 'ZNW' }49 'bottom_top_stag': 'ZNW', 'H': 'HGT'} 50 50 51 51 # SFC Variables 52 sfcvariables = {'tas':'T2', 'uas':'WRFuas', 'vas':'WRFvas', 'huss':'Q2', 'ps':'PSFC',\ 53 'zhgt':'HGT'} 52 sfcvariables = {'tas':'T2', 'uas':'WRFuas', 'vas':'WRFvas', 'huss':'Q2', 'ps':'PSFC'} 54 53 sfcrefvar = 'tas' 55 54 -
trunk/tools/get_stations.py
r1691 r1692 280 280 281 281 # surface stations 282 if s tcstatfile != 'None':282 if sfcstatfile != 'None': 283 283 osfcstatf = open(sfcstatfile, 'r') 284 284 … … 315 315 316 316 # sounding stations 317 if s tcstatfile != 'None':317 if sndstatfile != 'None': 318 318 osndstatf = open(sndstatfile, 'r') 319 319 … … 479 479 ojvar = onewnc.variables['ipoint'] 480 480 ojvar[:] = minji[1] 481 ohvar = onewnc.variables['fheight'] 482 ohvar[:] = dimvarvalues[dimvariables['H']][minji[0],minji[1]] 481 483 onewnc.sync() 482 484 … … 616 618 ojvar = onewnc.variables['ipoint'] 617 619 ojvar[:] = minji[1] 620 ohvar = onewnc.variables['fheight'] 621 ohvar[:] = dimvarvalues[dimvariables['H']][minji[0],minji[1]] 618 622 onewnc.sync() 619 623
Note: See TracChangeset
for help on using the changeset viewer.