Changeset 304 in lmdz_wrf


Ignore:
Timestamp:
Feb 25, 2015, 7:37:53 PM (10 years ago)
Author:
lfita
Message:

Fixing the right number of time steps check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r303 r304  
    1046910469        dimt = objfile.variables[timn].shape
    1047010470
    10471     if Ttraj > dimt:
     10471    print 'Lluis Ttraj:',Ttraj+Tbeg,'dimt:',dimt
     10472
     10473    if Tbeg + Ttraj > dimt:
    1047210474        print errormsg
    10473         print '  ' + fname + ': trajectory has ', Ttraj, ' time steps and data',    \
    10474           varobj.shape[0], '" !!!!!'
     10475        print '  ' + fname + ': trajectory has ', Ttraj, ' time steps and starts ' + \
     10476        ' at',Tbeg,' and data',varobj.shape[0], '" !!!!!'
    1047510477        quit(-1)
    1047610478
Note: See TracChangeset for help on using the changeset viewer.