Changeset 739 in lmdz_wrf
- Timestamp:
- May 2, 2016, 8:26:14 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r738 r739 9309 9309 check_arguments(fname,values,arguments,',') 9310 9310 9311 ofile = 'sellonlatbox_' + varn + '.nc'9312 9311 9313 9312 lonn = values.split(',')[0] … … 9343 9342 if varn == 'all': 9344 9343 varns = objfile.variables 9344 filevarn = varn 9345 9345 elif varn.find(',') != -1: 9346 9346 varns = varn.split(',') 9347 filevarn = varn.replace(',','-') 9347 9348 else: 9348 9349 varns = [varn] 9350 filevarn = varn 9351 9352 ofile = 'sellonlatbox_' + filevarn + '.nc' 9349 9353 9350 9354 # Lon/lat box … … 9446 9450 newdim = newncobj.createDimension(lonn, newdimx) 9447 9451 newdim = newncobj.createDimension(latn, newdimy) 9452 9453 # Adding lonn/latn to the output file 9454 if not searchInlist(varns,lonn): varns.append(lonn) 9455 if not searchInlist(varns,latn): varns.append(latn) 9448 9456 9449 9457 for vn in varns:
Note: See TracChangeset
for help on using the changeset viewer.