Skip to content

Commit

Permalink
Update hls_vi/generate_stac_items.py
Browse files Browse the repository at this point in the history
Co-authored-by: Chuck Daniels <[email protected]>
  • Loading branch information
SwordSaintLancelot and chuckwondo authored Jul 19, 2024
1 parent 7dcf202 commit a45c20c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions hls_vi/generate_stac_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,8 @@ def add_assets(item, granule, endpoint, version):
url = f"https://{endpoint}/lp-prod-protected/HLSL30.{version}/{item_id}/"
public_url = f"https://{endpoint}/lp-prod-public/HLSL30.{version}/{item_id}/"

url_template = url + "{}.{}.tif"

for band_id, band_info in band_info.items():
band_url = url_template.format(item_id, band_id)
band_url = f"{url}{item_id}.{band_id}.tif"
asset = pystac.Asset(
href=band_url, media_type=pystac.MediaType.COG, roles=["data"]
)
Expand Down

0 comments on commit a45c20c

Please sign in to comment.