nasa-jpl / its_live_production

A NASA MEaSUREs project to provide automated, low latency, global glacier flow and elevation change datasets
MIT License
17 stars 6 forks source link

itslive_ui._get_temporal_coverage #1

Closed whyjz closed 2 years ago

whyjz commented 3 years ago

Hi,

At line 116-117 of itslive.py:

start_date = datetime.strptime(file_components[3], "%Y%m%d").date()
end_date = datetime.strptime(file_components[4], "%Y%m%d").date()

Here is a sample file name from the query URL: LC08_L1TP_082233_20180627_20180704_01_T1_X_LC08_L1TP_082233_20180611_20180615_01_T1_G0240V01_P094.nc. Maybe I am wrong, but it looks that the start_date should be file_components[11] and the end_date should be file_components[3]?

betolink commented 3 years ago

You're right, this is a bug.

There is a new repo coming out this week that will fix this bug and enhance how we build data cubes on the fly.

whyjz commented 3 years ago

Great thanks a lot!