Earthaccess 403

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
tfrankstone
Posts: 1
Joined: Fri Apr 04, 2025 11:07 am America/New_York
Answers: 0

Earthaccess 403

by tfrankstone » Fri Apr 04, 2025 11:12 am America/New_York

Hi all -- I'm trying to use earthaccess to grab some files and am running into a 403 error for a file in the middle of the search time period. Ideally, I'd like to just skip the files where there's an error and pull whatever's available. Is there a way to modify the earthaccess.open function to handle errors differently? Thanks!

results = earthaccess.search_data(
short_name = "PACE_OCI_L3M_CHL",
temporal = ("2024-08-01", "2024-10-01"),
bounding_box = bbox
)

paths = earthaccess.open(results)
paths

Filters:

OB.DAAC - amscott
User Services
User Services
Posts: 31
Joined: Thu Dec 12, 2024 8:45 am America/New_York
Answers: 0
Has thanked: 1 time
Been thanked: 4 times

Re: Earthaccess 403

by OB.DAAC - amscott » Tue Apr 08, 2025 10:04 am America/New_York

Actually, I am not sure! Here is the users guide for earthaccess: https://earthaccess.readthedocs.io/en/latest/user_guide/

Let's both take a look to see if a good solution is there.

OB.DAAC - itcarroll
Subject Matter Expert
Subject Matter Expert
Posts: 11
Joined: Thu Nov 18, 2021 10:29 am America/New_York
Answers: 1
Been thanked: 1 time

Re: Earthaccess 403

by OB.DAAC - itcarroll » Tue Apr 08, 2025 3:16 pm America/New_York

There is not a built-in way to handle errors from some items within a list of results. There is a relevant feature request, and the comments include a possibly helpful workaround:

https://github.com/nsidc/earthaccess/issues/600

Post Reply