Changeset 219 in lmdz_wrf
- Timestamp:
- Jan 14, 2015, 6:02:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r218 r219 1345 1345 def ivars(ncfile): 1346 1346 """Give all the variable names of a file 1347 ncfile= netCDFfile name from which all variables will be given 1347 1348 """ 1349 fname = 'ivars' 1350 1348 1351 if not os.path.isfile(ncfile): 1349 1352 print errormsg 1350 print ' ivars: File "' + ncfile + '" does not exist !!'1353 print ' ' + fname + ': File "' + ncfile + '" does not exist !!' 1351 1354 print errormsg 1352 1355 quit(-1) 1353 1356 1354 ncf = NetCDFFile(ncfile,' a')1357 ncf = NetCDFFile(ncfile,'r') 1355 1358 ncvars = ncf.variables 1356 1359 allvars=''
Note: See TracChangeset
for help on using the changeset viewer.