ResonantGeoData / RD-WATCH

RD-WATCH Documentation
https://resonantgeodata.github.io/RD-WATCH/
Apache License 2.0
6 stars 5 forks source link

Server Animation Export #468

Closed BryonLewis closed 2 weeks ago

BryonLewis commented 1 month ago

Eventual PR to support exporting Animated Gifs for sites.

Process:

Done:

TODO:

Notes About Rescaling:

The Rescaling option will allow the system to export all of the images while centered with the same spatial view on the bounding box. This means that WV/S2/L8 images of different resolutions can all be used but the polygon remains a similar size on the screen.

This is done by taking the highest-resolution image in the list and using it as a basis. All S2/L8 or other low-resolution images are rescaled so that their polygons and pixels match the highest-resolution image. The polygon/geom is drawn after and not before to make sure it doesn't history too much.

There is a Rescale Border option that will add additional geospatial padding around the highest resolution image so that lower-resolution images have more context. This requires that the highest resolution image add blank NoData or gray data around it and that the lower resolution images now have more padding.

Rescaling Process:

  1. Using the filters for sources, cloud clover, nodata and any other items find the image with the highest resolution - HR.
  2. HR has some space around the geom (point/polygon) we have a mapping of the image bounds to geospatial bounds (geobbox).
  3. If we have a Rescale Border we increase the spatial area around the image by multiplying it by the geobbox and we get a BaseResolution. I.E a Rescale Border values of 2 makes the area 2x the existing image bbox.
  4. All images generate are now the BaseResolution. Images are cropped and draw into the BaseResolution image and need to be properly centered.
  5. Go through the existing satellite images, crop them based on the geospatial bounds and place them inside the Base Resolution in the appropriate location.