Changeset 757 in lmdz_wrf
- Timestamp:
- May 4, 2016, 12:53:13 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r755 r757 8747 8747 8748 8748 # Variable 8749 varvalues = variables_values(varn)8749 varvalues = gen.variables_values(varn) 8750 8750 8751 8751 if onewnc.variables.has_key(varvalues[0]): … … 8821 8821 wrfnc = NetCDFFile(ncfile, 'a') 8822 8822 8823 if not searchInlist(wrfnc.variables.keys(),wlonn):8823 if not gen.searchInlist(wrfnc.variables.keys(),wlonn): 8824 8824 print errormsg 8825 8825 print ' ' + fname + ": file '" + ncfile + "' has not lon variable '" + \ … … 8827 8827 quit(-1) 8828 8828 8829 if not searchInlist(wrfnc.variables.keys(),wlatn):8829 if not gen.searchInlist(wrfnc.variables.keys(),wlatn): 8830 8830 print errormsg 8831 8831 print ' ' + fname + ": file '" + ncfile + "' has not lat variable '" + \ … … 8833 8833 quit(-1) 8834 8834 8835 if not searchInlist(wrfnc.dimensions.keys(),'west_east'):8835 if not gen.searchInlist(wrfnc.dimensions.keys(),'west_east'): 8836 8836 print errormsg 8837 8837 print ' ' + fname + ": file '" + ncfile + "' has not 'west_east' dimension !!!" 8838 8838 quit(-1) 8839 8839 8840 if not searchInlist(wrfnc.dimensions.keys(),'south_north'):8840 if not gen.searchInlist(wrfnc.dimensions.keys(),'south_north'): 8841 8841 print errormsg 8842 8842 print ' ' + fname + ": file '" + ncfile + "' has not 'south_north' dimension !!!"
Note: See TracChangeset
for help on using the changeset viewer.