Changeset 1626 in lmdz_wrf
- Timestamp:
- Sep 10, 2017, 6:46:15 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r1625 r1626 18564 18564 Tunits = values.split(':')[3] 18565 18565 18566 ncf = NetCDFFile(ncfile, 'r') 18566 18567 # CFing lon,lat 18567 if not ncf.variables.has_key('time'): 18568 if not ncf.variables.has_key('lon'): 18569 ncf.close() 18568 18570 WRF_CFlonlat_creation('lon,lat,true', ncfile, wrfvl+','+wrfvL) 18569 18571 else: 18570 18572 print warnmsg 18571 18573 print ' ' + fname + ": file already with variable 'lon,lat' skipping them!!" 18574 ncf.close() 18572 18575 18573 18576 ncf = NetCDFFile(ncfile,'a') … … 18587 18590 18588 18591 # CFing time 18592 ncf = NetCDFFile(ncfile, 'r') 18589 18593 if not ncf.variables.has_key('time'): 18594 ncf.close() 18590 18595 WRF_CFtime_creation(refDateTime+','+Tunits, ncfile, 'time') 18591 18596 else: 18592 18597 print warnmsg 18593 print ' ' + fname + ": file already with variable 'lon,lat' skipping them!!" 18598 print ' ' + fname + ": file already with variable 'time' skipping them!!" 18599 ncf.close() 18594 18600 18595 18601 ncf = NetCDFFile(ncfile,'a')
Note: See TracChangeset
for help on using the changeset viewer.