-
Notifications
You must be signed in to change notification settings - Fork 4
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
Seasons #66
Seasons #66
Conversation
To further elaborate a bit: at the moment, Presto always expects a full year of data. That's why for now, regardless of season length we make sure that processing dates cover exactly a year. |
Nice work! Some comments from my side after quick checks:
|
@jdegerickx thanks! Some feedback already:
|
regarding the last point, ok, I didn't realize "tc" prefix indicated the mask. I'm fine with keeping the names as you proposed them! |
@jdegerickx I implemented something for the median DOY computer and added some tests to see if it works. Still have to be careful with the function because obviously computing a median date on a very large range also doesn't make particular sense. But for now I think it's fine. |
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 fine to me now, nice work!
Base functionality added and also tests added. Seasons have been renamed to what they are supposed to become, however the old seasons are still in place. The major entry point at the moment should be
worldcereal.seasons.get_processing_dates_for_extent(extent, year, season='tc-annual')
which allows to infer processing dates for a specific extent, year and season. The latter is optional and defaults totc-annual
which is supposed to become the year ending at the latest season end (s2
) and starting a year before.Note that for the moment, no AEZs are defined, all seasonality is inferred from pixel-based calendars. This is done by taking the median EOS_DOY of the calendar pixels in the extent.
Now it should be as simple as: