Hello,
Since August 28th, 2024, I have been unable to download data for the following collections:
* EMIT L2B Estimated Methane Plume Complexes 60 m V001
* EMIT L2B Methane Enhancement Data 60 m V001
I am encountering the following error message: {"message":"Forbidden"}
This error occurs both when attempting to download the data directly from the EarthData Search website (https://search.earthdata.nasa.gov/search?q=C2748097305-LPCLOUD) and when making an HTTPS request via code.
Here is the code I am using to download the files:
def download_files(concept_id, polygon, temporal, count, local_dir):
try:
print("Attempting Earthdata login...")
earthaccess.login(persist=False)
print("Login successful!")
except Exception as e:
print(f"Authentication failed: {e}")
return
fs = earthaccess.get_requests_https_session()
# Earthaccess Search Example using polygon coordinates tuples
granules = earthaccess.search_data(
concept_id=concept_id,
polygon=polygon,
temporal=temporal,
count=count
)
# Create a list with all the granules' download data URLs
urls = [granule['umm']['RelatedUrls'][0]['URL'] for granule in granules]
print("Number of granules:", len(urls))
# Download files with a progress bar
for url in tqdm(urls, desc="Downloading files", unit="file"):
granule_asset_id = url.split('/')[-1]
fp = os.path.join(local_dir, granule_asset_id)
if not os.path.isfile(fp):
with fs.get(url, stream=True) as src:
with open(fp, 'wb') as dst:
for chunk in src.iter_content(chunk_size=64*1024*1024):
dst.write(chunk)
The authentication process completes successfully, but the data is not being downloaded properly.
Could you please provide guidance on this issue?
Thank you.
Unable to download EMIT L2B Methane Enhancement and Plume Complexes
-
- Posts: 2
- Joined: Thu Aug 29, 2024 8:12 am America/New_York
-
- User Services
- Posts: 422
- Joined: Mon Sep 30, 2019 10:00 am America/New_York
- Has thanked: 31 times
- Been thanked: 8 times
- Contact:
Re: Unable to download EMIT L2B Methane Enhancement and Plume Complexes
Hello @mprodriguezn15 We were just able to resolve this issue. Could you please try again?
Subscribe to the LP DAAC listserv by sending a blank email to lpdaac-join@lists.nasa.gov.
Sign up for the Landsat listserv to receive the most up to date information about Landsat data: https://public.govdelivery.com/accounts/USDOIGS/subscriber/new#tab1.
Sign up for the Landsat listserv to receive the most up to date information about Landsat data: https://public.govdelivery.com/accounts/USDOIGS/subscriber/new#tab1.
-
- Posts: 2
- Joined: Thu Aug 29, 2024 8:12 am America/New_York
Re: Unable to download EMIT L2B Methane Enhancement and Plume Complexes
Yes, it is working now. Thank you :)