pysat / pysatNASA

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

BUG: SSUSI SDR-Disk overlapping files #233

Open aburrell opened 2 months ago

aburrell commented 2 months ago

Description

DMSP SSUSI SDR-Disk data for F18 has a file issue that results in the duplicate time error.

To Reproduce this bug:

Steps to reproduce the behavior:

import datetime as dt
import pysat

stime = dt.datetime(2014, 1, 29)
ssusi = pysat.Instrument('dmsp', 'ssusi', tag='sdr-disk', inst_id='f18')
ssusi.download(start=stime)
ssusi.load(date=stime)

Test configuration

Additional context

Going through the DMSP SSUSI data I found that this issue is caused by having files were there are duplicated times. This isn’t great, obviously, and is something that CDAWeb needs to resolve.

The culprits:

dmspf18_ssusi_sdr-disk_2014029T230313-2014030T004504-REV22086_vA8.2.0r000.nc2019-02-11 14:0621M dmspf18_ssusi_sdr-disk_2014029T231055-2014029T235808-REV22086_vA8.2.0r000.nc2019-02-11 13:5411M

In directory: https://cdaweb.gsfc.nasa.gov/data/dmsp/dmspf18/ssusi/data/sdr-disk/2014/029/

Pysat is only finding ONE unique time in the two files: 2014-01-29 23:40:27.824444

However, the top file’s global info states starting stopping times of:

:STARTING_TIME = "2014029230313" ; :STOPPING_TIME = "2014030004504" ;

And the bottom file’s global info says:

:STARTING_TIME = "2014029231055" ; :STOPPING_TIME = "2014029235808" ;

So, nominally, the second file shouldn’t exist. Does CDAWeb has a place that this can be reported?

aburrell commented 2 months ago

Similar to #221