Changeset 1818 in lmdz_wrf for trunk/tools/nc_var_tools.py


Ignore:
Timestamp:
Mar 19, 2018, 8:07:02 PM (7 years ago)
Author:
lfita
Message:

Adding when a file has less than the tsplit time-steps in `pinterp'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r1817 r1818  
    1852018520            # There is a memroy issue, thus is necessary to split the matrix...
    1852118521            if np.prod(list(varin.shape)) > 150*150*39:
    18522                 dimtfrac = 5
     18522                dimtfrac = np.min([5,dimt])
    1852318523                varinterp = np.zeros(tuple([dimx,dimy,len(interplevs),dimtfrac]), dtype=np.float)
    1852418524                if not tsaid:
Note: See TracChangeset for help on using the changeset viewer.