Changeset 1624 in lmdz_wrf


Ignore:
Timestamp:
Sep 10, 2017, 3:51:13 PM (7 years ago)
Author:
lfita
Message:

Introducing 'if' for creation of `lon,lat,time' dimension-variables in 'WRF_toCF'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r1598 r1624  
    1856518565 
    1856618566    # CFing lon,lat
    18567     WRF_CFlonlat_creation('lon,lat,true', ncfile, wrfvl+','+wrfvL)
     18567    if not ncf.variables.has_key('time'):
     18568        WRF_CFlonlat_creation('lon,lat,true', ncfile, wrfvl+','+wrfvL)
    1856818569
    1856918570    ncf = NetCDFFile(ncfile,'a')
     
    1858318584
    1858418585    # CFing time
    18585     WRF_CFtime_creation(refDateTime+','+Tunits, ncfile, 'time')
     18586    if not ncf.variables.has_key('time'):
     18587        WRF_CFtime_creation(refDateTime+','+Tunits, ncfile, 'time')
    1858618588
    1858718589    ncf = NetCDFFile(ncfile,'a')
Note: See TracChangeset for help on using the changeset viewer.