Changeset 490 in lmdz_wrf for trunk/tools


Ignore:
Timestamp:
Jun 12, 2015, 6:15:46 PM (10 years ago)
Author:
lfita
Message:

Using properly the function `lonlat2D' in 'remapnn'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r487 r490  
    74237423        ofile = 'remapnn_' + varname + '.nc'
    74247424    else:
    7425         ofile = 'remapnn_' + filename
     7425        ofile = 'remapnn_allvars.nc'
    74267426
    74277427    filexist(filename, errormsg, 'old file')
     
    74397439
    74407440    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])
    74467448
    74477449    newdimx = newlon2d.shape[1]
Note: See TracChangeset for help on using the changeset viewer.