Changeset 1625 in lmdz_wrf


Ignore:
Timestamp:
Sep 10, 2017, 4:36:38 PM (7 years ago)
Author:
lfita
Message:

Adding warning messages to 'WRFtoCF'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r1624 r1625  
    1856718567    if not ncf.variables.has_key('time'):
    1856818568        WRF_CFlonlat_creation('lon,lat,true', ncfile, wrfvl+','+wrfvL)
     18569    else:
     18570        print warnmsg
     18571        print '  ' + fname + ": file already with variable 'lon,lat' skipping them!!"
    1856918572
    1857018573    ncf = NetCDFFile(ncfile,'a')
     
    1858618589    if not ncf.variables.has_key('time'):
    1858718590        WRF_CFtime_creation(refDateTime+','+Tunits, ncfile, 'time')
     18591    else:
     18592        print warnmsg
     18593        print '  ' + fname + ": file already with variable 'lon,lat' skipping them!!"
    1858818594
    1858918595    ncf = NetCDFFile(ncfile,'a')
Note: See TracChangeset for help on using the changeset viewer.