Changeset 1182 in lmdz_wrf


Ignore:
Timestamp:
Oct 12, 2016, 11:53:07 AM (8 years ago)
Author:
lfita
Message:

Adding no repetition of `Fill_Value' attribute assignment to the variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r1181 r1182  
    1116611166        for attrn in objfield.ncattrs():
    1116711167            attrv = objfield.getncattr(attrn)
    11168             newattr = set_attribute(newvar,attrn,attrv)
     11168            if attrn != '_FillValue':
     11169                newattr = set_attribute(newvar,attrn,attrv)
    1116911170        newattr = set_attribute(newvar,'running_stats',', '.join(runvdimns))
    1117011171        onewnc.sync()
Note: See TracChangeset for help on using the changeset viewer.