Changeset 758 in lmdz_wrf
- Timestamp:
- May 6, 2016, 12:07:01 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r757 r758 4 4 import re 5 5 import numpy.ma as ma 6 # Importing generic tools file 'generic_tools.py' 6 7 import generic_tools as gen 7 8 … … 13610 13611 arguments = '[lonmame],[latname],[fillVal],[resolution],[kind],' + \ 13611 13612 '[lonlatProjfile],[ipoint],[fracd],[fracs],[mindiff]' 13612 check_arguments(fname, values, arguments, ',')13613 gen.check_arguments(fname, values, arguments, ',') 13613 13614 13614 13615 ofile = 'EntireGlobalMap.nc' … … 13768 13769 varunits = ovar.units 13769 13770 13770 fval = fillvalue_kind(type(ovar[0]), fval0)13771 fval = gen.fillvalue_kind(type(ovar[0]), fval0) 13771 13772 13772 13773 # Final map creation … … 13847 13848 13848 13849 # Reducing the searching points 13849 Ninpts=np.mini([499999, Ninpts-ipoint]) 13850 Nsearchpt = 499999 13851 Ninpts=np.min([Nsearchpt, Ninpts-ipoint]) 13850 13852 newvarinvals = newvarinpt[ipoint:ipoint+Ninpts] 13851 13853 maskpt = np.where(newvarinvals.mask == True, False, True)
Note: See TracChangeset
for help on using the changeset viewer.