Closed aburrell closed 2 years ago
I was able to download, load, and plot some data.
In [5]: dst = pysat.Instrument('sw', 'dst', 'lasp')
In [8]: dst.download(pysat.utils.time.today())
In [9]: dst.load(date=pysat.utils.time.today())
In [21]: dst['dst'].plot(title='Dst', ylabel=dst.meta['dst'].units)
Out[21]: <AxesSubplot:title={'center':'Dst'}, ylabel='nT'>
I did notice a warning some metadata was set to default.
The issue is the 'time' meta. I notice the load is not providing meta for time so I think this may trace to your io.utils pull that adds metadata for the epoch variable.
In [22]: dst.meta.data
Out[22]:
units long_name notes desc value_min value_max fill
dst nT Dst Predicted Dst from real-time ACE or DSCOVR pro... Disturbance storm-time index -inf inf NaN
time time Metadata set to defaults, as they were missing... NaN NaN NaN
The issue is the 'time' meta. I notice the load is not providing meta for time so I think this may trace to your io.utils pull that adds metadata for the epoch variable.
I am not sure why it would. That just adds it if needed, it doesn't add it by default. pysat shouldn't care if time has metadata or not 😕
The issue is the 'time' meta. I notice the load is not providing meta for time so I think this may trace to your io.utils pull that adds metadata for the epoch variable.
I am not sure why it would. That just adds it if needed, it doesn't add it by default. pysat shouldn't care if time has metadata or not 😕
There was an additional 'time' column along with the pandas datetimeindex being passed back from the load_csv_data
. I pushed a small change to drop that column.
Re-requesting review because I poked a bit more and found that I was writing two time columns instead of one.
Description
Addresses #58 by adding the LASP predicted Dst.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Test Configuration
Checklist:
develop
(notmain
) branchCHANGELOG.md
, summarizing the changesIf this is a release PR, replace the first item of the above checklist with the release checklist on the pysat wiki: https://github.com/pysat/pysat/wiki/Checklist-for-Release