Changeset 1268 in lmdz_wrf
- Timestamp:
- Nov 3, 2016, 7:57:27 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/model_graphics.py
r1266 r1268 2871 2871 CFdimS = CFd + '|' + CFd + '|-1' 2872 2872 else: 2873 CFdimS = CFdim s+ ';' + CFd + '|' + CFd + '|-1'2873 CFdimS = CFdimS + ';' + CFd + '|' + CFd + '|-1' 2874 2874 2875 2875 # Attributes of the variable 2876 varattrs = ncvar.ivattrs(file2,vninF) 2877 varvals = vninF + ',' + varattrs['long_name'] + ',' + varattrs['units'] 2878 2879 values = CFdims + '@' + 'add|' + file2 + '|' + vninF + '%' + CFdims + \ 2880 '@' + 'sub|' + file2 + '|' + vninF 2876 varattrs = ncvar.ivattrs(ifile2,vninF) 2877 varvals = vninF + ',' + varattrs['long_name'][0] + ',' + \ 2878 varattrs['units'][0] 2879 2880 values = CFdimS + '@' + 'add|' + ifile2 + '|' + vninF + '%' + CFdimS + \ 2881 '@' + 'sub|' + ifile1 + '|' + vninF 2881 2882 pyins = 'python ' + pyH + "/nc_var.py -o compute_opersvarsfiles -S '" + \ 2882 2883 values + "' -v " + varvals … … 3430 3431 CFdimS = CFd + '|' + CFd + '|-1' 3431 3432 else: 3432 CFdimS = CFdim s+ ';' + CFd + '|' + CFd + '|-1'3433 CFdimS = CFdimS + ';' + CFd + '|' + CFd + '|-1' 3433 3434 3434 3435 # Attributes of the variable 3435 varattrs = ncvar.ivattrs(file2,vninF) 3436 varvals = vninF + ',' + varattrs['long_name'] + ',' + varattrs['units'] 3437 3438 values = CFdims + '@' + 'add|' + file2 + '|' + vninF + '%' + CFdims + \ 3439 '@' + 'sub|' + file2 + '|' + vninF 3436 varattrs = ncvar.ivattrs(ifile2,vninF) 3437 varvals = vninF + ',' + varattrs['long_name'][0] + ',' + \ 3438 varattrs['units'][0] 3439 3440 values = CFdimS + '@' + 'add|' + ifile2 + '|' + vninF + '%' + CFdimS + \ 3441 '@' + 'sub|' + ifile1 + '|' + vninF 3440 3442 pyins = 'python ' + pyH + "/nc_var.py -o compute_opersvarsfiles -S '" + \ 3441 3443 values + "' -v " + varvals
Note: See TracChangeset
for help on using the changeset viewer.