MarsRaw / mars-raw-utils

Utilities for working with publicly available raw MSL & Mars2020 images
MIT License
45 stars 10 forks source link

Raw fetches should save metadata file for each image #4

Closed kmgill closed 3 years ago

kmgill commented 3 years ago

Each image should be accompanied by a json file containing the metadata retrieved from the raw image web service. The pointing, timing, and localization (if available) could be used for radiometric correction, photogrammetry, and mosaicking.

kmgill commented 3 years ago

Added util::save_image_json(image_url:&str, item:&JsonValue, only_new:bool) to save out the image metadata. Takes the image name, replaces the extension with -metadata.json and saves it out in prettyified JSON format. Respects only_new parameter.