Changeset 758 in lmdz_wrf


Ignore:
Timestamp:
May 6, 2016, 12:07:01 PM (9 years ago)
Author:
lfita
Message:

Inserting some `gen' staff...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r757 r758  
    44import re
    55import numpy.ma as ma
     6# Importing generic tools file 'generic_tools.py'
    67import generic_tools as gen
    78
     
    1361013611    arguments = '[lonmame],[latname],[fillVal],[resolution],[kind],' +               \
    1361113612      '[lonlatProjfile],[ipoint],[fracd],[fracs],[mindiff]'
    13612     check_arguments(fname, values, arguments, ',')
     13613    gen.check_arguments(fname, values, arguments, ',')
    1361313614
    1361413615    ofile = 'EntireGlobalMap.nc'
     
    1376813769    varunits = ovar.units
    1376913770
    13770     fval = fillvalue_kind(type(ovar[0]), fval0)
     13771    fval = gen.fillvalue_kind(type(ovar[0]), fval0)
    1377113772
    1377213773# Final map creation
     
    1384713848
    1384813849# Reducing the searching points
    13849     Ninpts=np.mini([499999, Ninpts-ipoint])
     13850    Nsearchpt = 499999
     13851    Ninpts=np.min([Nsearchpt, Ninpts-ipoint])
    1385013852    newvarinvals = newvarinpt[ipoint:ipoint+Ninpts]
    1385113853    maskpt = np.where(newvarinvals.mask == True, False, True)
Note: See TracChangeset for help on using the changeset viewer.