pysat / pysatNASA

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

BUG: GOLD #154

Closed jklenzing closed 1 year ago

jklenzing commented 1 year ago

Description

Partially Addresses #139

Updates GOLD NMAX to use sortby to guarantee the index is monotonic increasing. Scans from two separate instruments are combined into one xarray object. The long term goal is to separate these into separate instruments, but this is waiting on constellation updates in pysat.

Note: This does not guarantee that the index will be unique. Between 2018 day 278 and 2023 day 64, approximately 0.3% of files have a non-unique index. 51% of the files have a non-monotonic index.

Type of change

How Has This Been Tested?

import pysat
gold = pysat.Instrument('ses14', 'gold', tag='nmax')
gold.load(2020, 1)

In develop, this will fail due to non-monotonic increasing index.

Test Configuration

Checklist: