Agri-Hub / eoProcessors

GNU Affero General Public License v3.0
0 stars 1 forks source link

Postprocess: aggregate #33

Closed fbalaban closed 1 week ago

fbalaban commented 2 months ago

New post processing processor which receives a folder and calculates aggregations per tile (or for all in folder). We start by calculating the median as a PoC for Transition project

fbalaban commented 1 week ago

Branch to be merged and issue closed, but needs a follow-up:

  1. Due to an emergency EMS call, this branch also includes some custom ad-hoc methods which calculate: a. Histogram matching of an image against a reference. If a reference file is given as an input then it's against it, otherwise it calculates against all files under a folder which have the string "reference" in them.
    b. Difference vector: calculates a difference vector in a folder tree, where in each folder looks for a "reference" file and produces vectors for each other file in that folder. Then it calculates a total difference vector by calculating the product of all individual differences. c. Difference vector per month: same as above, but it traverses the whole path and produces folders per month to month differences. If a next month does not exist, it produces nothing
  2. Due to the emergency nature of these scripts, the code needs urgent refactoring, to minimize duplication and create a clean interface: user, through cli or config, should be able to choose functions, range, type of difference (TOTALS or not), etc.
  3. Cleaning, code practices.
  4. Testing
  5. Containerization