You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we use inst.download somewhat inconsistently across the ecosystem. The question is whether the end date should be taken to be inclusive or exclusive. For example, if I want to download all of Jan 1982, should I invoke
Right now the download docstring says stop is inclusive. This differentiates it from end_date, which is exclusive.
However, it is "standard" in pysat that if you only specify a starting time, you'll end up with one day of data. The way that time is handled within download and the way that stop is defined there, it will usually give you two days. This is not what I would expect, and is not great for nowcast/forecast files.
I think the way forward might be:
Keep stop inclusive to avoid confusion
Change the way time is handled in Instrument.download such that Instrument.download(start=stime) will only download one day of data
It has been awhile but I believe that stop is by default set to tomorrow due to UTC/local time issues and nowcast type data. Yeah, something like pysat tests would pass early in the day but not later when UTC was tomorrow and locally we were still on today.
Adding an end_date input would enable the functionality you want without breaking existing programs.
Currently, we use
inst.download
somewhat inconsistently across the ecosystem. The question is whether the end date should be taken to be inclusive or exclusive. For example, if I want to download all of Jan 1982, should I invokeor
This should be clarified in the docs before the next release.
The text was updated successfully, but these errors were encountered: