Home

Quick Links

Software Manual
GitHub
API Reference

Documentation Versions

Public Release
8.3.0
8.2.0
8.1.0
8.0.0
7.2.0
7.1.0
7.0.0
6.0.0
3.9.0
3.5.0
USGS

ISIS Application Documentation


getsn

Standard View | TOC | Home

Prints Image Serial Number

Description
Categories
Groups
History


Description

This program will print the serial number for an image.

Categories


Parameter Groups

Files

Name Description
FROM Cube file to get the serial number for
TO The text to append result Pvl
APPENDAppends results on output file

Display File Name

Name Description
DEFAULTAllows serial number to default to the file name

Options

Name Description
FILE Get the Filename
SN Get the Serial Number
OBSERVATION Get the Observation Number

Output format

Name Description
FORMATOutput format

Files: FROM

Description

The cube file containing the label the serial number is to be created for.

Type cube
File Mode input
Filter *.cub

Files: TO

Description

The text file in which the Result Pvl created is either appended or written to.

Type filename
File Mode output
Internal Default No Output file will be created
Filter *.txt *.prt *.pvl

Files: APPEND

Description

Appends the created Results Pvl to the TO parameter output file. If this is set to false, then it write the results to the output file instead.

Type boolean
Default TRUE

Display File Name: DEFAULT

Description

Within the Result Pvl, if the serial number is not know, then Unknown is displayed in the keyword SerialNumber. If this parameter is set to TRUE, then is displays the input cube's filename is displayed in the keyword SerialNumber instead.

Type boolean
Default FALSE

Options: FILE

Description

If this boolean is not checked then the filename will not be part of the output.

Type boolean
Default False

Options: SN

Description

If this boolean is not checked then the Serial Number will not be part of the output.

Type boolean
Default True

Options: OBSERVATION

Description

If this boolean is not checked then the Observation Number will not be part of the output.

Type boolean
Default False

Output format: FORMAT

Description

Output format options, either PVL or FLAT may be used to display the selected outputs.

Type string
Default PVL
Option List:
Option Brief Description
PVLPvl format Output will be in Pvl format.
FLATFlatfile format Output file in comma separated value, flatfile, format.

History

Stuart Sides2006-06-01 Original version
Elizabeth Miler2006-12-13 Fixed up, finished documentation and checked in
Steven Lambright2007-07-27 Changed category from Utility to Control Networks
Steven Lambright2007-08-07 Added application test: default
Christopher Austin2008-01-08 Augmented observation number and added TO file with APPEND option
Steven Koechle2008-04-04 Added booleans for which keywords to get. If TO parameter is not entered output will go to console. Added results group to SessionLog and GuiLog (if applicable)
Steven Lambright2008-10-31 The print.prt file will now properly contain the results when getsn is run from the command line; before the results group was always empty. The "TerminalOutput" user preference no longer affects the output of this program. The default values of "FILE" and "OBSERVATION" have been changed to FALSE.
Mackenzie Boyd2011-03-07 Added FORMAT option to choose between PVL and FLAT format. Effects output file only, default is still PVL.
Kaitlyn Lee2018-01-17 Removed unreachable else clause that assumed more than two options are allowed to be entered in for the parameter FORMAT. Added test to default case to increase code coverage.