Home

User Documentation

Getting Started
Learn More
Explore in Detail
Get Inspired

Contributor Documentation

Getting Started
Learn More
Explore in Detail
Get Inspired

Quick Links

Software Manual
AstroDiscuss
GitHub
API Reference

Documentation Versions

Public Release
8.1.0
8.0.0
7.2.0
7.1.0
7.0.0
6.0.0
3.9.0
3.5.0

ISIS 2

Documentation
Tutorials
Technical Documents
USGS

ISIS Application Documentation


camstats

Standard View | TOC | Home

Generates and outputs camera statistics for a cube in raw camera geometry

Description
Categories
Groups
History


Description

This program generates camera statistics from a user-supplied Level0 or Level1 cube. The output of camstats can be directed to a PVL file or a comma-delimited text file (flat file). For each output group, the program will calculate the minimum, maximum, average, and standard deviation values. The output groups are listed below:

The output values are calculated using the entire image area. However, the number of data collection points for the statistics can be controlled by using the line increment (LINC) and sample increment (SINC) parameters. The default value for LINC and SINC are 1. If the default value is used, then every line and sample of the image is used in the calculation of the output values. The increment value can be increased to reduce program execution time. If a value other than 1, for example the number 10, is assigned to LINC and SINC, then every tenth line and tenth sample of the image are used in the calculation of the output values. The edges of the image are always sampled even if the increment does not fall on the edge. Keep in mind that sparse increments assigned to LINC and SINC are susceptible to an adverse effect on the accuracy of the statistics.

The statistics are output both to the screen and to the print.prt file in PVL format. Additionally, if the user specifies a file using the TO parameter, the statistics are written to that file in PVL format (default) or as a comma-separated-value text file (FLAT file), depending on the FORMAT parameter.

If the output file exists and the APPEND parameter is set to "no", the contents will be overwritten.


Categories


Related Objects and Documents

Applications


Parameter Groups

Files

Name Description
FROM Input cube filename
ATTACH Attach results to the cube's label
TO Ouput text filename
FORMAT Output file format (PVL or FLAT)
APPEND Append results to output file specified by TO.

Option

Name Description
LINC Line Increment
SINC Sample Increment

Files: FROM

Description

Input cube with appropriate camera labels (refer to spiceinit). The input must be a Level0 or Level1 cube.

Type cube
File Mode input
Filter *.cub *.CUB

Files: ATTACH

Description

If this option is selected, the output camera statistics will be attached to the input cube's label under the group "CameraStatistics."

Applications such as qmos reference the attached label for geometric information of the cube.

Type boolean
Default FALSE

Files: TO

Description

A text file in label format (PVL), which will contain the results of camstats. This output file, for example, can be used with the getkey application to pass the results to other programs when developing scripts.

Alternatively, the output can be written to a text file format, see the "FORMAT" parameter for more information.

The format is ignored unless the "TO" parameter is specified.

Type filename
File Mode output
Internal Default None

Files: FORMAT

Description

This is the format type for the output file. PVL format is the default. The format is ignored unless the TO parameter is specified.

Type string
Default PVL
Option List:
Option Brief Description
PVL Format the output file specified by TO as PVL. This format can be read using the getkey program. Output the results to a PVL formatted file specified by TO.
FLAT Format the output file specified by TO as a comma delimited text file. Output the results to a comma delimited text file specified by TO. This file format can easily be imported into spreadsheet applications like Excel.

Files: APPEND

Description

If this option is not selected, the output from the camstats application is appended to the output file. If this option is set to "NO" or "FALSE," any information in the TO file is overwritten.

Note: This will append the formatted results to the end of the TO file without regard to the formatting of the current contents.

Type boolean
Default FALSE

Option: LINC

Description

LINC will control the number of lines where statistical data are collected. If a LINC of 10 is entered, every tenth line will be used in the data collection. This parameter as well as the SINC parameter are primarily used to reduce runtime for very large images by collecting data from a smaller statistical sample rather than the entire image.

Note: Keep in mind that if the LINC increment is set too sparsely, this could adversely influence the accuracy of the statistics.

Type integer
Default 1

Option: SINC

Description

SINC will control the number of samples where statistical data are collected. If a SINC of 10 is entered, every tenth sample will be used in the data collection. This parameter as well as the LINC parameter are primarily used to reduce runtime for very large images by collecting data from a smaller statistical sample rather than the entire image.

Keep in mind that if the SINC increment is set too sparsely, this could adversely influence the accuracy of the statistics.

Type integer
Default 1

History

Robert Sucharski2007-01-22 Original version.
Steven Lambright2007-08-14 Added an application test.
Kris Becker2008-02-27 Check for special pixel values and write them as NULL values in keywords and the flat text file.
Steven Lambright2008-05-12 Removed references to CubeInfo .
Christopher Austin2008-06-11 Added the ATTACH option.
Steven Koechle2008-11-12 Camstats now outputs history to the cube when it finishes execution.
Tammy Becker2012-01-19 Modified documentation and added Glossary links.
Janet Richie, Ella Mae Lee2012-11-20 Modified documentation, fixes #1174.
Lynn Weller2013-02-25 Removed links to applications imbedded in text and replaced with italicized application name. Added application links to the "Related Objects and Documents" section of the documentation. Fixes mantis ticket #1525.
Jeffrey Covington2015-02-19 Updated FORMAT and APPEND documentation to be more clear. Made general edits for clarity.
Andrew Stebenne2015-04-03 Removed the filter on the TO parameter so that any file can be used for output. Updated documentation to clarify the existence and functioning of a few quirks. Addresses redmine ticket #175.
Tyler Wilson2016-08-17 Added statistics for ObliqueLineResolution/ObliqueSampleResolution, and Oblique Pixel Resolution. References #476, #4100.