-
Notifications
You must be signed in to change notification settings - Fork 295
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
Mcd12q1 draft #2905
Mcd12q1 draft #2905
Conversation
proj_param is now set to World_Sinusoidal
PS: in principle, I could add it to the MODIS L3 reader but it supported only the CMG grid so far, so I don't know if it is better to extend support in the existing |
Pull Request Test Coverage Report for Build 10940136250Details
💛 - Coveralls |
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.
Looks good overall, I see the CI failing though :)
And just an nitpick comment inline
satpy/readers/hdfeos_base.py
Outdated
if len(date) == 19: | ||
return dt.datetime.strptime(date, "%Y-%m-%d %H:%M:%S") | ||
else: | ||
return dt.datetime.strptime(date, "%Y-%m-%d %H:%M:%S.%f") |
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.
This could be a function to avoid duplicating it a few lines below
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.
Done :-)
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2905 +/- ##
========================================
Coverage 96.05% 96.06%
========================================
Files 370 373 +3
Lines 54320 54465 +145
========================================
+ Hits 52177 52321 +144
- Misses 2143 2144 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Only a low score for codecov remaining. I find it hard to add another test for which the type of grid attribute would differ just for the sake of coverage. Is this ok? I could remove the lines here: https://app.codecov.io/gh/pytroll/satpy/pull/2905/blob/satpy/readers/mcd12q1.py#L84 that don't seem necessary given that I put all of the variables in the YAML file. |
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
Coverage is good enough, thanks for adding this reader! |
Thanks for reviewing! I prefer to have the code in the main branch of course :-) |
Add a reader for MODIS L3 data on the 500 sinusoidal grid. Data supported now is MCD12Q1.
The reader has a test using the
create_hdfeos_test_file
fixture as other MODIS tests do.For information, I used this to create a resampled land cover type at a coarser resolution. I can provide an example program if there is interest. The MODIS grid is described here: https://modis-land.gsfc.nasa.gov/MODLAND_grid.html