Changeset 2096 in lmdz_wrf


Ignore:
Timestamp:
Aug 24, 2018, 10:31:54 PM (6 years ago)
Author:
lfita
Message:

Adding fake units on 'urefvals' when variable does not have units in `netcdf_fold_concatenation_HMT'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r2094 r2096  
    1151311513# Dimension variable for the concatenation
    1151411514   
     11515    urefvals = '-'
    1151511516    if vardimname != 'WRFtime':
    1151611517        odimvar = ncobjs[0].variables[vardimname]
     
    1154411545        newvar.setncattr('_CoordinateAxisType', 'Time')
    1154511546        set_attribute(newvar, 'calendar', 'standard')
     11547    if urefvals == '-': urefvals = '- -'
    1154611548
    1154711549    # Checking units of condimvar
Note: See TracChangeset for help on using the changeset viewer.