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


Ignore:
Timestamp:
Apr 17, 2020, 10:30:46 PM (5 years ago)
Author:
lfita
Message:

Fixing case with only 1 time-step

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r2809 r2814  
    436436                    tend = iit + dd0
    437437                    newvar[tini:tend,:] = varo[tini:tend,:]   
     438                # Wierd case...
     439                if dd0*int(dfill/dd0) == 0: tend = 0
    438440                if tend != dfill:
    439441                    tini = tend
Note: See TracChangeset for help on using the changeset viewer.