Changeset 490 in lmdz_wrf for trunk/tools
- Timestamp:
- Jun 12, 2015, 6:15:46 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r487 r490 7423 7423 ofile = 'remapnn_' + varname + '.nc' 7424 7424 else: 7425 ofile = 'remapnn_ ' + filename7425 ofile = 'remapnn_allvars.nc' 7426 7426 7427 7427 filexist(filename, errormsg, 'old file') … … 7439 7439 7440 7440 newncfile = NetCDFFile(newprojectionfile,'r') 7441 varinfile(newncfile, newprojectionfile, errormsg, 'old', newlon) 7442 varinfile(newncfile, newprojectionfile, errormsg, 'old', newlat) 7443 7444 oldlon2d, oldlat2d = lonlat2D(oldncfile, oldlon, oldlat) 7445 newlon2d, newlat2d = lonlat2D(newncfile, newlon, newlat) 7441 varinfile(newncfile, newprojectionfile, errormsg, 'new', newlon) 7442 varinfile(newncfile, newprojectionfile, errormsg, 'new', newlat) 7443 7444 oldlon2d, oldlat2d = lonlat2D(oldncfile.variables[oldlon], \ 7445 oldncfile.variables[oldlat]) 7446 newlon2d, newlat2d = lonlat2D(newncfile.variables[newlon], \ 7447 newncfile.variables[newlat]) 7446 7448 7447 7449 newdimx = newlon2d.shape[1]
Note: See TracChangeset
for help on using the changeset viewer.