Skip to content

[Bug] Opera static geo search returns results outside of AOI #374

Description

@ZachHoppinen

Describe the bug

When I search for opera RTC static products with an intersecting WKT value using geo_search I get results that don't seem to intersect and are not even close.

To Reproduce
Steps to reproduce the behavior:

Run the following search for opera static products:

import asf_search

# WKT from the asf_search readme
wkt = 'POLYGON((-135.7 58.2,-136.6 58.1,-135.8 56.9,-134.6 56.1,-134.9 58.0,-135.7 58.2))'
results = asf_search.search(dataset= ['OPERA-S1'], platform=[asf_search.PLATFORM.SENTINEL1], intersectsWith=wkt, maxResults=100, processingLevel = ['RTC-STATIC'])

# now plot up results with results from the correct hemisphere on the left
# and results from across the globe on the left
import numpy as np
import matplotlib.pyplot as plt
import shapely

fig, axes = plt.subplots(2, 1)
x, y = shapely.from_wkt(wkt).exterior.xy
for ax in axes: ax.plot(x,y, color = 'k', linewidth = 4)

for r in results:
    s = shape(r.geometry)
    x, y = s.exterior.xy
    # filter products that are in the right hemisphere
    if np.max(x) > 0: axes[1].plot(x, y) 
    else: axes[0].plot(x, y)

Expected behavior
Geosearch to return results only that interest with the WKT.

Screenshots

Plot produced by above code.

Image

Desktop (please complete the following information):

  • OS: Mac 15.6
  • Python Version Python 3.13.5
  • Pip Environment Can provide if helpful

Additional context
Tried with other WKT and got similar results.

wkt = 'POLYGON((-106.177 39.5809,-106.0987 39.5809,-106.0987 39.6403,-106.177 39.6403,-106.177 39.5809))'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions