- Timestamp:
- Oct 21, 2016, 12:43:27 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/model_graphics.py
r1226 r1227 373 373 class VariableInf(object): 374 374 """ Class which holds all information of a given variable 375 name= CF name of the variab le375 name= CF name of the variabgle 376 376 header= header of the file from which it can be computed 377 377 model= file-header variable from which it can be directly computed … … 3807 3807 op = vnop.split('_')[1] 3808 3808 values = allcompvar[vnop] 3809 print fname + ': Lluis first values:', values 3809 3810 VnOpS = varnoper(vn, op, opersurnames) 3810 3811 … … 3908 3909 reprjvn = VnOpS 3909 3910 3910 values = 'lon,lat,' + config['RefProjfile'] + ',lon,lat,' +\3911 reprojvalues = 'lon,lat,' + config['RefProjfile'] + ',lon,lat,'+ \ 3911 3912 reprjop + ',' + ':'.join(CFvardims) 3912 ins= 'ncvar.reproject('+values + ', ' + ifile + ', '+ reprjvn + ')' 3913 ins= 'ncvar.reproject('+reprojvalues + ', ' + ifile + ', '+ \ 3914 reprjvn + ')' 3913 3915 try: 3914 3916 with gen.Capturing() as output: 3915 sout=ncvar.reproject( values, ifile, reprjvn)3917 sout=ncvar.reproject(reprojvalues, ifile, reprjvn) 3916 3918 except: 3917 3919 print errmsg
Note: See TracChangeset
for help on using the changeset viewer.