asfadmin / Discovery-asf_search

BSD 3-Clause "New" or "Revised" License
122 stars 41 forks source link

[Feature] Dateline Wrapping #163

Open cmarshak opened 1 year ago

cmarshak commented 1 year ago

This is thanks to @mgovorcin working on ISCE2 Hyp3 Plugin for ACCESS.

Is your feature request related to a problem? Please describe.

import asf_search as asf

results = asf.granule_search([
    'S1B_IW_SLC__1SDV_20201215T054451_20201215T054521_024709_02F04A_6033',
    'S1B_IW_SLC__1SDV_20211222T054456_20211222T054526_030134_039920_9391'])

print(results[0].geojson()['geometry'])
# {'coordinates': [[[-177.710968, 52.575905], [-177.271973, 50.790607], [179.223694, 50.39941], [178.642044, 52.181805], [-177.710968, 52.575905]]], 'type': 'Polygon'}

Describe the solution you'd like I would like to see either a multipolygon or one that does not span the whole globe. Preferably the latter so I could easily map it. Obviously - this may be not synergistic for the great number of services ASF provides via this great library... but here's to hoping!

cmarshak commented 1 year ago

@glshort - is something that would be possible? undesirable?

@dbekaert was curious, too.