Menu

#766 pngwalk could produce PDS4 xml labels for images

open
nobody
None
5
2021-12-14
2021-12-09
No

At U. Iowa we discussed having the create png walk tool create PDS4 XML labels describing the images.

Discussion

  • Jeremy Faden

    Jeremy Faden - 2021-12-09

    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.

     
  • Chris Piker

    Chris Piker - 2021-12-09

    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:

    <Identification_Area>
      <logical_identifier>
          urn:nasa:pds:voyager2.pws.wf:data:%(beg.year)s-%(beg.month)s-%(beg.day)st%(beg.hour)s
        </logical_identifier>
    </Identification_Area>
    
    <Observation_Area>
        <Time_Coordinates>
            <start_date_time>%(begin)s</start_date_time>
            <stop_date_time>%(end)s</stop_date_time>
            ...
    

    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.

     
  • Jeremy Faden

    Jeremy Faden - 2021-12-09

    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.

     
  • Jeremy Faden

    Jeremy Faden - 2021-12-14

    This script should be rewritten to be a script which doesn't change and a configuration file which populates the Identification_Area metadata.

     
MongoDB Logo MongoDB