Changeset 1526 in lmdz_wrf for trunk


Ignore:
Timestamp:
Apr 13, 2017, 1:04:18 AM (8 years ago)
Author:
lfita
Message:

Fixing more issues in `maskvar'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r1525 r1526  
    40704070
    40714071    # Check if there are some coincident dimensional names between both variables
    4072     vdimns = varinf.dimns
     4072    vdimns = list(varinf.dimns)
    40734073    mdimns = maskdims
    40744074
    4075     for dimn in vdimns:
    4076         if gen.searchInlist(maskdims,dimn): mdimns.remove(dimn)
     4075    for dimn in mdimns:
     4076        if gen.searchInlist(vdimns,dimn): vdimns.remove(dimn)
    40774077
    40784078    #slices = gen.provide_slices(varinf.dimns, varinf.dims, list(varmaskinf.dimns))
    4079     slices = gen.provide_slices(varinf.dimns, varinf.dims, list(maskdims))
     4079    slices = gen.provide_slices(varinf.dimns, varinf.dims, vdimns)
    40804080
    40814081    if maskvalue != 'mask':
Note: See TracChangeset for help on using the changeset viewer.