Page 1 of 1

Unable to download EMIT L2B Methane Enhancement and Plume Complexes

Posted: Thu Aug 29, 2024 8:26 am America/New_York
by mprodriguezn15
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.

Re: Unable to download EMIT L2B Methane Enhancement and Plume Complexes

Posted: Thu Aug 29, 2024 9:59 am America/New_York
by LP DAAC-EDL - dgolon
Hello @mprodriguezn15 We were just able to resolve this issue. Could you please try again?

Re: Unable to download EMIT L2B Methane Enhancement and Plume Complexes

Posted: Thu Aug 29, 2024 10:18 am America/New_York
by mprodriguezn15
Yes, it is working now. Thank you :)