Changeset 1601 in lmdz_wrf


Ignore:
Timestamp:
Aug 4, 2017, 7:29:22 PM (8 years ago)
Author:
lfita
Message:

Adding masking of values at the end of `Nomasked' with the original fill_value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/generic_tools.py

    r1600 r1601  
    1235012350
    1235112351    varshape = vals.shape
     12352    fillvalue = vals.fill_value
     12353
    1235212354    dimns = []
    1235312355    for id in range(len(varshape)):
     
    1238112383            imask = imask + 1
    1238212384
    12383     newarray = ma.array(newarray)
     12385    newarray = ma.masked_equal(newarray, fillvalue)
    1238412386
    1238512387    return newarray, allmasked
Note: See TracChangeset for help on using the changeset viewer.