Changeset 691 in lmdz_wrf for trunk


Ignore:
Timestamp:
Feb 11, 2016, 2:28:20 PM (9 years ago)
Author:
lfita
Message:

Changing method to rename missing_value' attribute name when it coincides with _FillValue' value in `VarVal_FillValue'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r690 r691  
    1770417704            print '  ' + fname + ': same missing and checking Value!'
    1770517705            print '   renaming missing_value'
    17706             varo.renameAttribute('missing_value','_FillValue')
     17706            print varo.ncattrs()
     17707            print dir(varo)
     17708            varo.delncattr('missing_value')
     17709            set_attribute(varo, '_FillValue', fval)
    1770717710        else:
    1770817711            set_attribute(varo, '_FillValue', fval)
Note: See TracChangeset for help on using the changeset viewer.