Changeset 1385 in lmdz_wrf


Ignore:
Timestamp:
Dec 14, 2016, 10:23:25 AM (8 years ago)
Author:
lfita
Message:

Adding:

`fillValueD': Fill value for double-precision floats
error capture for zero-interval in `pretty_int'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/generic_tools.py

    r1383 r1385  
    2424fillValue = 1.e20
    2525fillValueF = 1.e20
     26fillValueD = 1.e20
    2627fillValueC = '-'
    2728fillValueI = -99999
     
    98519852    interval = np.abs(maxv - minv)
    98529853
    9853     if interval < 0.:
     9854    if interval <= 0.:
    98549855        print errormsg
    98559856        print '  ' + fname + ': wrong interval',interval,'!!'
    9856         print '    it can not be negative'
     9857        print '    it can not be negative or zero'
    98579858        quit(-1)
    98589859
Note: See TracChangeset for help on using the changeset viewer.