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

Conversation

Projects
None yet
2 participants
@dnadeau4
Contributor

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 Jun 1, 2017

dnadeau4 added some commits Jun 1, 2017

@dnadeau4

This comment has been minimized.

Contributor

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)

dnadeau4 and others added some commits Jun 1, 2017

@doutriaux1 doutriaux1 merged commit 128216f into master Jun 6, 2017

2 checks passed

ci/circleci Your tests passed on CircleCI!
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@doutriaux1 doutriaux1 deleted the issu#138crossSectionRegrid branch Jun 6, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment