pysat / pysatSpaceWeather

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

New Instrument: LASP MgII #108

Closed aburrell closed 1 year ago

aburrell commented 1 year ago

Description

Addresses pysat/pysatModels#124 by adding the LASP MgII data sets. Other Instruments in this issue should be moved to pysatModels.

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

import datetime as dt
import pysat
import pysatSpaceWeather as py_sw

stime = dt.datetime(1981, 11, 6)
mgii = pysat.Instrument(inst_module=py_sw.instruments.sw_mgii, tag='composite')
mgii.download(date=stime)
mgii.load(date=stime)
print(mgii.data)

Yields:

                     mg_index
1981-11-06 12:00:00   0.28537

Test Configuration

Checklist:

If 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