Changeset 1885 in lmdz_wrf for trunk


Ignore:
Timestamp:
Apr 3, 2018, 11:44:21 PM (7 years ago)
Author:
lfita
Message:

Adding exclusion of '_FillValue' attribute if variable has it in 'splitfile_dim'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r1883 r1885  
    2415924159            ovattr = ovn.ncattrs()
    2416024160            for nattr in ovattr:
    24161                 attrv = ovn.getncattr(nattr)
    24162                 set_attribute(newvar,nattr,attrv)
     24161                if nattr != '_FillValue':
     24162                    attrv = ovn.getncattr(nattr)
     24163                    set_attribute(newvar,nattr,attrv)
    2416324164            onewnc.sync()
    2416424165
Note: See TracChangeset for help on using the changeset viewer.