Changeset 1014 in lmdz_wrf


Ignore:
Timestamp:
Aug 12, 2016, 6:10:20 PM (8 years ago)
Author:
lfita
Message:

Fixing some errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r1013 r1014  
    91769176                  tuple(finaldims))
    91779177                newNvar = newNvar + 1
    9178             newvar[:] = finalvarvals[:]
     9178            if len(finaldims) > 0:
     9179                newvar[:] = finalvarvals[:]
     9180            else:
     9181                newvar[:] = finalvarvals
    91799182
    91809183# new variable
     
    1658116584            newvar[:] = oldov[:]
    1658216585            for attrn in vinf.attributes:
    16583                 if vinf.FillValue is not None and attrn != '_FillValue':
     16586                if attrn != '_FillValue':
    1658416587                    attrv = oldov.getncattr(attrn)
    1658516588                    newattr = set_attribute(newvar,attrn,attrv)
Note: See TracChangeset for help on using the changeset viewer.