Changeset 1227 in lmdz_wrf for trunk


Ignore:
Timestamp:
Oct 21, 2016, 12:43:27 PM (8 years ago)
Author:
lfita
Message:

Creation of the `reprojvalues' in modexp in order to do not overwerite values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/model_graphics.py

    r1226 r1227  
    373373class VariableInf(object):
    374374    """ Class which holds all information of a given variable
    375       name= CF name of the variable
     375      name= CF name of the variabgle
    376376      header= header of the file from which it can be computed
    377377      model= file-header variable from which it can be directly computed
     
    38073807        op = vnop.split('_')[1]
    38083808        values = allcompvar[vnop]
     3809        print fname + ': Lluis first values:', values
    38093810        VnOpS = varnoper(vn, op, opersurnames)
    38103811
     
    39083909                        reprjvn = VnOpS
    39093910             
    3910                     values = 'lon,lat,' + config['RefProjfile'] + ',lon,lat,' +      \
     3911                    reprojvalues = 'lon,lat,' + config['RefProjfile'] + ',lon,lat,'+ \
    39113912                      reprjop + ',' + ':'.join(CFvardims)
    3912                     ins= 'ncvar.reproject('+values + ', ' + ifile + ', '+ reprjvn + ')'
     3913                    ins= 'ncvar.reproject('+reprojvalues + ', ' + ifile + ', '+      \
     3914                      reprjvn + ')'
    39133915                    try:
    39143916                        with gen.Capturing() as output:
    3915                             sout=ncvar.reproject(values, ifile, reprjvn)
     3917                            sout=ncvar.reproject(reprojvalues, ifile, reprjvn)
    39163918                    except:
    39173919                        print errmsg
Note: See TracChangeset for help on using the changeset viewer.