GeoscienceAustralia / uncover-ml

Machine Learning system for Geoscience Australia uncover project
Apache License 2.0
30 stars 20 forks source link

Add metadata to prediction geotifs #51

Closed basaks closed 4 years ago

basaks commented 5 years ago

Attach the following meta data to the model prediction -

  1. the list of covariates
  2. yaml configuration
  3. performance measures
  4. git hash from the uncoverml codebase
  5. name of the output predictions mode names?
basaks commented 5 years ago

Best place to do this is probably where the output rasters are initialised in the ImageWriter class.

basaks commented 5 years ago

Actually rasterio has a functionality update_tag, which can do the job quite well it seems.

https://rasterio.readthedocs.io/en/stable/topics/tags.html#writing-tags

brenmous commented 4 years ago

Fei has written code that writes metadata to a text file. If it's desired to be embedded in the geotiffs this can be done later.