-
Notifications
You must be signed in to change notification settings - Fork 301
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 new mask datasets for olci l2 and refactor a bit #1767
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1767 +/- ##
==========================================
+ Coverage 93.89% 93.92% +0.02%
==========================================
Files 283 283
Lines 42589 42707 +118
==========================================
+ Hits 39991 40111 +120
+ Misses 2598 2596 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
satpy/readers/olci_nc.py
Outdated
data=solar_flux, dtype=solar_flux.dtype) | ||
|
||
@staticmethod | ||
def _take_indices(idx, data): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just putting this here to sanity check, dask distributed can handle static methods right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no clue. I'll make it a function just in case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides my NotImplementedError comment, this looks good to me.
@mraspaud You could also change the mask dataset to:
removing |
Beside the mask, I would also like to add new datasets:
|
@JohannesSMHI ok, about the mask: could you explain the thinking behind the change? |
DeepCode's analysis on #d60539 found:
Top issues
👉 View analysis in DeepCode’s Dashboard | Configure the bot👉 The DeepCode service and API will be deprecated in August, 2021. Here is the information how to migrate. Thank you for using DeepCode 🙏 ❤️ !If you are using our plugins, you might be interested in their successors: Snyk's JetBrains plugin and Snyk's VS Code plugin. |
@JohannesSMHI I added the datasets that you mentioned above. However, looking at the standard names, I realize they are not defined in the cf convention document: http://cfconventions.org/Data/cf-standard-names/77/build/cf-standard-name-table.html |
OCNN_FAIL seems to be over sensitive during summertime in the Baltic Sea. I now realize that it might be a bit too regional of a problem, and that we may not want to push this particular change to the main branch? When it comes to COASTLINE I would definitely add that to the main branch since the coastline almost always gives us bad data. |
Do we even need to specify the standard_name? I simply added it using the descripting of the product (unaware the cf convention document) |
Yes, standard names allows use to make sure we provide interoperable datasets |
Hi. This PR looks super close to being resolved and it would be a great addition, but is there any chance of also adding PAR to the list along with the other additions in above (#1767 (comment)). That would then complete the full list of olci_l2 measurements. |
I have a feeling this has been superseeded by #2504, so I'm thinking of closing this. Anyone against? |
This PR add the
cloud_mask
andocnn_mask
datasets to the olci l2 reader. This superseeds and closes #741.Some refactoring has been done, as well as passing the engine through to
xr.open_dataset
.