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

[metadata.extract.calc_enl] raise error when array is empty #221

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

johntruckenbrodt
Copy link
Member

@johntruckenbrodt johntruckenbrodt commented Oct 8, 2024

The reason this could happen was because of issues with the valid data mask. This mask used to be created in ard.get_datasets. The functionality was recently moved to a new function ancillary.datamask in #226. The PR also made changes to the mask creation so that it is now no longer possible that all-nan products are created. So the error raised through this PR should no longer appear.
Another PR #228 covered the case where the input array does contain valid data but not enough to compute the ENL.

@johntruckenbrodt johntruckenbrodt merged commit 52de39a into main Oct 24, 2024
1 check passed
@johntruckenbrodt johntruckenbrodt deleted the bugfix/enl_nan branch October 24, 2024 21:02
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.

1 participant