Changeset 852 in lmdz_wrf for trunk


Ignore:
Timestamp:
Jun 17, 2016, 1:17:29 PM (8 years ago)
Author:
lfita
Message:

Adding `singleline' output to 'computevar_model'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r850 r852  
    1513315133            break
    1513415134
    15135     print NOchk
    15136 
    1513715135# Variables from which CF variable might be computed
    1513815136    modelvars = gen.CFvar_MODvar(varname)
     
    1518315181    print '    model:', varmod
    1518415182    print '    diagnostics:', vardiag
    15185    
    15186     ncobj.close()
    15187 
    15188     return
     15183
     15184    if varmod is not None:
     15185        varmodsingle = gen.numVector_String(varmod,':')
     15186    else:
     15187        varmodsingle = 'None'
     15188    if vardiag is not None:
     15189        vardiagsingle = gen.numVector_String(vardiag,':')
     15190    else:
     15191        vardiagsingle = 'None'
     15192
     15193    print '    |singleline@model=' + varmodsingle + '@diag=' + vardiagsingle
     15194    ncobj.close()
     15195
     15196    return varmod, vardiag
    1518915197
    1519015198class ModelChar(object):
Note: See TracChangeset for help on using the changeset viewer.