pysat / pysatNASA

pysat support for NASA Instruments
BSD 3-Clause "New" or "Revised" License
21 stars 7 forks source link

BUG: data uniqueness for GOLD #158

Closed jklenzing closed 1 year ago

jklenzing commented 1 year ago

Description

Addresses #139

GOLD nmax includes 2 independent channels, which occasionally have the same start time for a given sweep. This leads to approximately 0.3% of daily files not having a unique index.

This adds one microsecond to the Channel B data to maintain uniqueness.

Type of change

How Has This Been Tested?

import datetime as dt
import pysat

date = dt.datetime(2019, 4, 17)

inst = pysat.Instrument('ses14', 'gold', tag='nmax', use_header=True)
inst.download(date, date)
inst.load(date=date)

In develop, this day returns ValueError: Loaded data is not unique. It loads correctly in this branch.

Test Configuration

Checklist: