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

Fix for netcdf4 returning masked array with no masked points. #3181

Closed
wants to merge 1 commit into from

Conversation

pp-mo
Copy link
Member

@pp-mo pp-mo commented Oct 1, 2018

Alternative solution to #3179

Hi @corinnebosley
Let's see how this fix works out ?

@pp-mo
Copy link
Member Author

pp-mo commented Oct 1, 2018

Let's see how this fix works out ?

It seems that some existing cases are managing to load masked data with empty masks.
I think we can just fix those tests ... will look into these tomorrow.

@corinnebosley
Copy link
Member

@pp-mo You've got a bunch of CMLs to regenerate (which I don't see a problem with), but that's all I can see as far as test failures are concerned.

@pp-mo
Copy link
Member Author

pp-mo commented Oct 2, 2018

a bunch of CMLs to regenerate (which I don't see a problem with)

I will also first check those out, as they don't fit my understanding of what netCDF "used to do".

@pp-mo
Copy link
Member Author

pp-mo commented Oct 2, 2018

a bunch of CMLs to regenerate ... check those out, as they don't fit my understanding of what netCDF "used to do".

Ok, I think I have grasped it now.
All these CDL files with mask_checksum="no-masked-elements" in them already changed before, when we upgraded for netcdf 1.4 : that occurred in #3031 just before we cut iris 2.1.0.
So the results of these operations (whether you get a masked array) already changed between v2.0 and v2.1.
And now we are proposing to change them all back.

Now I just need to form a view on whether that is a good idea (as some users have requested), or not ...

@pp-mo
Copy link
Member Author

pp-mo commented Oct 8, 2018

Discussed off-line with @dkillick @pelson @bjlittle.
Concluded : Probably a bad idea -- instead, let's follow netcdf behaviour + pursue performance improvements in other ways if+when required

Withdrawn !

@pp-mo pp-mo closed this Oct 8, 2018
@pp-mo pp-mo deleted the re_nc_mask branch January 8, 2019 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants