Also I think I have an Autoplot script which does this already. You point it at an existing pngwalk and it creates the labels.
The script is on the machines at the U. Iowa campus, at:
/home/jbf/project/voyager/svn/vgpws_lr_cdf/pds4/makeBrowseFileXML.jy (It creates the xml for one png file, so you use the "run batch" tool to run it for the entire mission.
This shows there's a lot of things to set for each image, such as the mission phase, but Java can certainly calculate md5sums and file sizes needed for each image.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Since autoplot has a built-in python interpreter, would it be easy to have templates where the whole template file was just a python string template with dictionary replacement? For example:
The main documentation requirement would be to state what dictionary keys Autoplot automatically provides by default so that these keys could be used in the template.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Also I think I have an Autoplot script which does this already. You point it at an existing pngwalk and it creates the labels.
The script is on the machines at the U. Iowa campus, at:
/home/jbf/project/voyager/svn/vgpws_lr_cdf/pds4/makeBrowseFileXML.jy (It creates the xml for one png file, so you use the "run batch" tool to run it for the entire mission.
This shows there's a lot of things to set for each image, such as the mission phase, but Java can certainly calculate md5sums and file sizes needed for each image.
Since autoplot has a built-in python interpreter, would it be easy to have templates where the whole template file was just a python string template with dictionary replacement? For example:
The main documentation requirement would be to state what dictionary keys Autoplot automatically provides by default so that these keys could be used in the template.
Have a look at the script, this is basically what it is doing. The script contains a template, and then it's just plugging things in with jython.
This script should be rewritten to be a script which doesn't change and a configuration file which populates the Identification_Area metadata.