TUW-GEO / ascat

Read and visualize data from the Advanced Scatterometer (ASCAT) on-board the series of Metop satellites
https://ascat.readthedocs.io/
MIT License
25 stars 16 forks source link

Add end_inclusive option to ChronFiles #56

Closed claytharrison closed 9 months ago

claytharrison commented 9 months ago

Currently ChronFiles.search_period includes files from the entirety of the end_dt which is passed to it, if dt_delta is 1 day, or from an hour of the final date if dt_delta is 1 hour. It's useful to be able to make this end date exclusive, so that an end date of 2021-04-03 includes files all the way through 2021-04-02, but none from 2021-04-03. The current behavior is still the default, but passing end_inclusive=False to search_period or read_period is now an option.