Home
About ISIS
Support
Download

ISIS

Documentation
Tutorials
Technical Documents

ISIS 2

Documentation
Tutorials
Technical Documents
USGS

ISIS Application Documentation


topds4

Printer Friendly View | TOC | Home

Convert from ISIS cube to PDS 4 format using template XML files

Overview Parameters

Description

Writes a PDS4 compatible label file and image file. The contents of the label file are generated useing the template file specified by the TEMPLATE parameter.

The image file is generated from the input ISIS cube specified by the FROM parameter. The output image file will be a copy of the input ISIS cube with the image data stored in Band Sequential format.

This application uses the Inja templating engine to render the template file. The input data from the cube and extra data sources is converted to JSON and then it is accessed via the Inja templating syntax. See the Inja documentation for the full template syntax. The data from the label of the input cube is accessible under "MainLabel", the data from the originally ingested PVL or XML label stored on the input cube is accessible under "OriginalLabel", and the extra data is accessible under "ExtraPvl", "ExtraXml", and "ExtraJson".


Categories


History

Stuart Sides2021-01-03 Original version

Parameter Groups

Files

Name Description
FROM Input cube
TEMPLATE Input template
TO Output PDS4 label

Data

Name Description
DATA Output JSON data
EXTRAPVL Extra PVL data
EXTRAXML Extra XML data
EXTRAJSON Extra JSON data
X

Files: FROM


Description

This is the input cube that will be converted to PDS4 format.

Type cube
File Mode input
Filter *.cub
Close Window
X

Files: TEMPLATE


Description

The file name of the input template. This file contains "inja" compatible template syntax inside of a PDS4 XML label. The data used to replace the template elements comes from the ISIS cube label, the original label (PDS3, FITS, PDS4), and other input PVL, XML, or JSON files.

Type filename
File Mode input
Close Window
X

Files: TO


Description

The output file name of the PDS4 label. The output image name will be derived from this parameter by removing the last extension and adding .cub.

Type filename
File Mode output
Close Window
X

Data: DATA


Description

The output file name to store the template data source. This is a dump of the JSON data used by the template engine to fill in the template elements. It is a combination of the ISIS main cube lable, the original lable, and any other data sources supplied. The purpose of this parameter is for debugging the templates.

Type filename
File Mode output
Internal Default None
Close Window
X

Data: EXTRAPVL


Description

The PVL data contained in the file(s) specified by this parameter will be added to the template data source under ExtraPvl. If multiple PVL files are specified, then they will be merged together.

Type filename
File Mode input
Internal Default None
Close Window
X

Data: EXTRAXML


Description

The XML data contained in the file(s) specified by this parameter will be added to the template data source under ExtraXml. If multiple XML files are specified, then they will be merged together.

Type filename
File Mode input
Internal Default None
Close Window
X

Data: EXTRAJSON


Description

The JSON data contained in the file(s) specified by this parameter will be added to the template data source under ExtraJson. If multiple JSON files are specified, then they will be merged together.

Type filename
File Mode input
Internal Default None
Close Window