-
Notifications
You must be signed in to change notification settings - Fork 284
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
Outstanding - Integrate DataManager with cube #2516
Comments
I disagree with this.
That's equivalent to a merge. In this case, "-1" is not a suitable fill value for the result, as it has a valid -1 point in it. |
Cube merging now (once #2492 is merged) allows cubes to merge if one of them has a fill value and the other doesn't. But this causes problems given a list where one of the cubes has no fill value and the others have differing fill values: the first cube matched with the I'm not sure what the correct behaviour should be. If we want to keep fill value promotion, then it seems like we need logic along the lines of
In terms of fill values, that amounts to
The problem is that merging assumes the Actually, the more I think about it the more it seems the best approach is to not allow fill_value promotion, at least not at this point. I think allowing it requires a significant amount of work which we don't have time for. But that's just my opinion. |
Cubes with lazy integer masked data will keep their integer dtype when operations are performed on them which should result in a change of dtype (e.g. log). For example:
yields:
|
@djkirkham Can you create a separate issue for this or are you already addressing this somewhere? |
@djkirkham Let me check the perms ... or at least understand why. |
@djkirkham But you can at least create an issue on iris, right? And set the label and milestone to I can't see how to set permissions for a user specifically for a project, which is a shame 😖 |
Ref - #2492
The following outstanding issues still require to be investigated and/or addressed:
dask
cube does not merge anndarray
andmasked
array to generate amasked
resultfill_value
ofNone
matching a candidate cube with an existingfill_value
- although two candidate cubes with difference non-None
fill_values
should never match (obviously)cube.fill_value
through acube.data = masked_array
operation, see this comment for context, see Populate cube.fill_value thru cube.data setter. #2524cube.fill_value
toNone
when merging or concatenating a mixture of masked array and ndarray, see Dask merge concat fill value #2520Consider whether to issue a warning incube.data
getter when setting thefill_value
toNone
, as the returned masked array will contain a numpy defaultfill_value
The text was updated successfully, but these errors were encountered: