Changeset 1412 in lmdz_wrf for trunk/tools


Ignore:
Timestamp:
Jan 17, 2017, 4:48:14 PM (8 years ago)
Author:
lfita
Message:

Adding Removing the nonChecking variable-dimensions from the initial list in `WRFheight'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/diagnostics.py

    r1408 r1412  
    981981
    982982    # Attributes of the variable
    983     Vvals = gen.variables_values('WRFgreop')
     983    Vvals = gen.variables_values('WRFgeop')
    984984    dictcompvars['WRFgeop'] = {'name': Vvals[0], 'standard_name': Vvals[1],          \
    985985      'long_name': Vvals[4].replace('|',' '), 'units': Vvals[5]}
     
    16941694        diagout = WRFgeop/grav
    16951695
    1696         ncvar.insert_variable(ncobj, 'zhgt', diagout, dnames, dvnames, newnc)
     1696        # Removing the nonChecking variable-dimensions from the initial list
     1697        varsadd = []
     1698        diagoutvd = list(dvnames)
     1699        for nonvd in NONchkvardims:
     1700            if gen.searchInlist(dvnames,nonvd): diagoutvd.remove(nonvd)
     1701            varsadd.append(nonvd)
     1702
     1703        ncvar.insert_variable(ncobj, 'zhgt', diagout, dnames, diagoutvd, newnc)
    16971704
    16981705    else:
Note: See TracChangeset for help on using the changeset viewer.