Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Querying the API takes much longer than via the Vertex UI when using a geometry #318

Open
Jaapel opened this issue Dec 5, 2024 · 0 comments

Comments

@Jaapel
Copy link

Jaapel commented Dec 5, 2024

Describe the bug
Querying the API takes much longer than via the Vertex UI when using a geometry

To Reproduce
Steps to reproduce the behavior:

from datetime import datetime

import asf_search as asf
import shapely

# create bbox for area of interest
xmin, xmax, ymin, ymax = -17.60433161217344, -16.27852975917213, 64.853752187568, 65.32575046869238
box = shapely.box(xmin, xmax, ymin, ymax)

# time bounds
start = datetime(2021, 7, 1)
end = datetime(2023, 7, 1)

results = asf.geo_search(intersectsWith=shapely.to_wkt(box), start=start, end=end, dataset=asf.DATASET.SLC_BURST, beamMode=asf.BEAMMODE.IW)

Results in:

ERROR:asf_search:Connection Error (Timeout): CMR took too long to respond. Set asf constant "asf_search.constants.INTERNAL.CMR_TIMEOUT" to increase. (url='https://cmr.earthdata.nasa.gov/search/granules.umm_json', timeout=30)
ERROR:root:The asf-search module ecountered an error with CMR,and the following message was automatically reported to ASF:

Expected behavior
Search speeds matching the vertex speeds, instead of many many minutes.

Desktop (please complete the following information):

  • OS: MacOS Sequoia
  • Python Version python 3.12.7
  • Pip Environment (very long, please ask if you need it :) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant