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 sensor-name property to NWCSAF readers #1113
Add sensor-name property to NWCSAF readers #1113
Conversation
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
Codecov Report
@@ Coverage Diff @@
## master #1113 +/- ##
==========================================
- Coverage 89.33% 89.33% -0.01%
==========================================
Files 195 195
Lines 28796 28827 +31
==========================================
+ Hits 25726 25753 +27
- Misses 3070 3074 +4
Continue to review full report at Codecov.
|
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
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.
Thanks for making the code more modular! Just a few details to fix imo
It appears to still load |
The ABI file is available from s3://noaa-goes16/ABI-L1b-RadF/2017/073/20/OR_ABI-L1b-RadF-M3C15_G16_s20170732006100_e20170732016473_c20170732016531.nc The NWCSAF file: |
@gerritholl I will have a look at it thanks! |
This should probably be turned into a unit test or so, it should pass and currently fails: import satpy
from satpy.utils import debug_on
debug_on()
sc = satpy.Scene(
{"abi_l1b": ['import/Sat_data/OR_ABI-L1b-RadF-M3C02_G16_s20170732006100_e20170732016467_c20170732016504.nc'],
"nwcsaf-geo": ['export/CMIC/S_NWC_CMIC_GOES16_NEW-ENGLAND-NR_20170314T200610Z.nc']})
assert "seviri" not in sc.attrs["sensor"] |
@gerritholl I tested the code snippet above. Works for me!? |
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
Congratulations 🍻. DeepCode analyzed your code in 0.226 seconds and we found no issues. Enjoy a moment of no bugs ☀️. 💬 This comment has been generated by the DeepCode bot, installed by the owner of the repository. The DeepCode bot protects your repository by detecting and commenting on security vulnerabilities or other critical issues. |
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
Ok, so now your ABI code above should work @gerritholl
And it works. Using your area-def I got on slack. I suppose we should move the NWCSAF product recipes into |
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
Implement recommendations from reviewer Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
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.
Thanks for the PR.
…eaving such a move to another PR Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
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.
LGTM, but I still see a blank line ?
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
This is to make this PR replace pytroll#1111
Add the sensor name as a property to the NWCSAF/Geo&PPS readers
flake8 satpy
AUTHORS.md
if not there already