EVI/NDVI Time Series Data from HLS 2.0
Posted: Tue Jun 27, 2023 2:26 am America/New_York
Dear LP DAAC Team,
I hope your day is going great.
I need vegetation index (EVI, NDVI) from Harmonized Landsat and Sentinel (HLS) time series data.
I have run this Python code.
stac_lp = [s for s in stac_response['links'] if 'LP' in s['title']] # Search for only LP-specific catalogs
# LPCLOUD is the STAC catalog we will be using and exploring today
lp_cloud = r.get([s for s in stac_lp if s['title'] == 'LPCLOUD'][0]['href']).json()
for l in lp_cloud: print(f"{l}: {lp_cloud[l]}")
lp_links = lp_cloud['links']
for l in lp_links:
try:
print(f"{l['href']} is the {l['title']}")
except:
print(f"{l['href']}")
lp_collections = [l['href'] for l in lp_links if l['rel'] == 'collections'][0] # Set collections endpoint to variable
collections_response = r.get(f"{lp_collections}").json() # Call collections endpoint
print(f"This collection contains {collections_response['description']} ({len(collections_response['collections'])} available)")
collections = collections_response['collections']
collections[1]
My Python output showed that the data referenced to 'ASTER Global Digital Elevation Model NetCDF V003'
How to fix my Python code to extract HLS NDVI/EVI time series data?
Thank you very much for your help.
Bayu
I hope your day is going great.
I need vegetation index (EVI, NDVI) from Harmonized Landsat and Sentinel (HLS) time series data.
I have run this Python code.
stac_lp = [s for s in stac_response['links'] if 'LP' in s['title']] # Search for only LP-specific catalogs
# LPCLOUD is the STAC catalog we will be using and exploring today
lp_cloud = r.get([s for s in stac_lp if s['title'] == 'LPCLOUD'][0]['href']).json()
for l in lp_cloud: print(f"{l}: {lp_cloud[l]}")
lp_links = lp_cloud['links']
for l in lp_links:
try:
print(f"{l['href']} is the {l['title']}")
except:
print(f"{l['href']}")
lp_collections = [l['href'] for l in lp_links if l['rel'] == 'collections'][0] # Set collections endpoint to variable
collections_response = r.get(f"{lp_collections}").json() # Call collections endpoint
print(f"This collection contains {collections_response['description']} ({len(collections_response['collections'])} available)")
collections = collections_response['collections']
collections[1]
My Python output showed that the data referenced to 'ASTER Global Digital Elevation Model NetCDF V003'
How to fix my Python code to extract HLS NDVI/EVI time series data?
Thank you very much for your help.
Bayu