Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add mask to transient variable #142

Merged
merged 6 commits into from Jun 6, 2017
Merged

Conversation

dnadeau4
Copy link
Contributor

@dnadeau4 dnadeau4 commented Jun 1, 2017

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
Copy link
Contributor Author

dnadeau4 commented Jun 1, 2017

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.

None yet

2 participants