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
Earthaccess 403
-
- Posts: 1
- Joined: Fri Apr 04, 2025 11:07 am America/New_York
-
- User Services
- Posts: 31
- Joined: Thu Dec 12, 2024 8:45 am America/New_York
- Has thanked: 1 time
- Been thanked: 4 times
Re: Earthaccess 403
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.
Let's both take a look to see if a good solution is there.
-
- Subject Matter Expert
- Posts: 11
- Joined: Thu Nov 18, 2021 10:29 am America/New_York
- Been thanked: 1 time
Re: Earthaccess 403
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
https://github.com/nsidc/earthaccess/issues/600