Replies: 1 comment 1 reply
-
|
Approach
Details. # the step is a distance in degrees to move by to get random points within the bbox
step = 0.5
minx, miny, maxx, maxy = aoi.bounds
while x <= maxx:
y = miny
while y <= maxy:
mgrs_code = m.toMGRS(y, x, MGRSPrecision=0)
candidate_tiles.add(mgrs_code)
y += step
x += stepThis code will give us the codes of the MGRS grid that we have and that can be used to filter in pystac client using an approach like follows search = client.search(
collections=["sentinel-2-l1c"],
query={
"mgrs:utm_zone": {"eq": 32},
"eo:cloud_cover": {"lt": 1},
"mgrs:latitude_band": {"eq": "V"},
"mgrs:grid_square": {"eq": "KP"},
},
max_items=100,
datetime="2022-01-01/2022-03-28"
) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Context
The data source is described at:
https://github.com/Element84/earth-search?tab=readme-ov-file#sentinel-2-l1c-and-l2a-sentinel-2-l1c-and-sentinel-2-l2a
Within rapida, the goal is to quickly search for imagery that intersects a specific project polygon and then find the most suitable imagery (little clouds inn the specified date-time range).
While this sounds simple the practice has shown this to be a complex task that can be approached in several ways.
Approach
Find candidate S2 tiles
Identify the best candidate for each tile considering time window, cloud cover and nodata coverage
Beta Was this translation helpful? Give feedback.
All reactions