pysat / pysatSpaceWeather

pysat support for space weather indices and data sets
BSD 3-Clause "New" or "Revised" License
7 stars 5 forks source link

BUG: Dst load issues with pysat v3.x multi-day support #56

Closed rstoneback closed 3 years ago

rstoneback commented 3 years ago

Description

The Dst instrument loads all data requested (internally) and then drops a bunch of it.

To Reproduce this bug:

Steps to reproduce the behavior:

start_date = dt.datetime(2001, 1, 1)
end_date = dt.datetime(2001, 12, 31)
dst = pysat.Instrument('sw', 'dst')
dst.load(date=start_date, end_date=end_date)
dst['dst'].plot(title=dst.meta['dst', dst.meta.labels.name], 
                ylabel=dst.meta['dst', dst.meta.labels.units])

image

Note the full year is not present.

Test configuration

Additional context

Add any other context about the problem here.