Changeset 1408 in lmdz_wrf for trunk/tools


Ignore:
Timestamp:
Jan 12, 2017, 4:55:23 PM (8 years ago)
Author:
lfita
Message:

Removing non-found variables for `ws'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/diagnostics.py

    r1404 r1408  
    16681668        dvnamesvar = ncvar.var_dim_dimv(dnamesvar,dnames,dvnames)
    16691669
    1670         ncvar.insert_variable(ncobj, 'ws', diagout, dnamesvar, dvnamesvar, newnc)
     1670        # Removing the nonChecking variable-dimensions from the initial list
     1671        varsadd = []
     1672        diagoutvd = list(dvnamesvar)
     1673        for nonvd in NONchkvardims:
     1674            if gen.searchInlist(dvnamesvar,nonvd): diagoutvd.remove(nonvd)
     1675            varsadd.append(nonvd)
     1676        ncvar.insert_variable(ncobj, 'ws', diagout, dnamesvar, diagoutvd, newnc)
    16711677
    16721678# wss (u10, v10)
Note: See TracChangeset for help on using the changeset viewer.