Skip to content

add mask to transient variable - #142

Merged
doutriaux1 merged 6 commits into
masterfrom
issu#138crossSectionRegrid
Jun 6, 2017
Merged

doutriaux1 merged 6 commits into
masterfrom
issu#138crossSectionRegrid

Conversation

@dnadeau4

@dnadeau4 dnadeau4 commented Jun 1, 2017

Copy link
Copy Markdown
Contributor

Fix issue #138

@dnadeau4 dnadeau4 added the bug label Jun 1, 2017
@dnadeau4 dnadeau4 added this to the 2.12 milestone Jun 1, 2017
@dnadeau4 dnadeau4 self-assigned this Jun 1, 2017
@dnadeau4
dnadeau4 requested a review from doutriaux1 June 1, 2017 00:38
@dnadeau4

dnadeau4 commented Jun 1, 2017

Copy link
Copy Markdown
Contributor Author

I made sure that values are masked for crossSectionRegrid, but this is not the default ways MV2 works.

MV2.count(masked, 1)
variable_157
masked_array(data = [ 0 10 10 10  0],
             mask = False,
       fill_value = -9223372036854775808)

To create a mask, you need to run this

            data = numpy.ma.masked_values( data, data.fill_value)

@doutriaux1
doutriaux1 merged commit 128216f into master Jun 6, 2017
@doutriaux1
doutriaux1 deleted the issu#138crossSectionRegrid branch June 6, 2017 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants