An official website of the United States government
Here’s how you know
Official websites use .gov A
.gov website belongs to an official government
organization in the United States.
Secure .gov websites use HTTPS A
lock
() or https:// means you’ve safely connected to
the .gov website. Share sensitive information only on official,
secure websites.
Campt computes geometric and photometric information at a given pixel
location or list of pixel locations in the input image cube.
The program computes spacecraft and instrument related information, and other types of
coordinates as described later in this document. The user will have a choice of coordinates
in which to output the information as well as a choice in the output format of the
information acquired.
Note the input image cube has preliminary requirements:
The input image requires SPICE information (see spiceinit).
The input image cube must be a Level0 or a Level1 ISIS cube.
To use a Level2 file as the input image (see mappt).
The point of interest in the image can be entered as Latitude/Longitude
coordinates or Sample/Line coordinates. Keep in mind
that the input Latitude and Longitude values entered
will be interpreted as Universal
Coordinates (ISIS default) regardless of the target body. In the
output, all positions are in Body-Fixed
Coordinates. Multiple points of interest may be specified by providing a comma-delimited
flatfile of coordinates.
The following is a partial list of coordinates computed in the campt application:
You may choose the format of the output file. The option list includes
a choice of a PVL file or a flat file. A PVL file is a text
file in label format, while the flat file is a comma-delimited text file
that is easily imported into most databases and digital spreadsheets
such as Microsoft Excel. Below is an example of campt output in PVL
format. You can skim the left column of this PVL-formatted output file for
a thorough listing of the types of coordinates, sun and instrument-related
information computed when using campt.
Fixed appTest files to comply with changes to all camera models
Elizabeth Miller
2006-03-27
Modified to output a flatfile as well as a pvl, make GUI consistent with skypt
Elizabeth Miller
2006-04-19
Added additional output
Elizabeth Miller
2006-07-31
Modified to use OffNadirAngle instead of SpacecraftRoll angle due to
changes made to the camera class
Sean Crosby
2007-04-12
Added RightAscension and Declination to PVL output. Program now requires
user to specify a filename when using FLAT option. Increased precision in
flatfile output and updated appTest truthdata.
Steven Lambright
2008-04-21
Added default values for the lines and samples
Steven Lambright
2008-05-12
Removed references to CubeInfo
Steven Koechle
2008-08-19
Removed unnecessary duplicate cube creation
Janet Barrett
2008-11-15
Added SubSolarGroundAzimuth and SubSpacecraftGroundAzimuth
to PVL output. The SubSolarGroundAzimuth is the clockwise
angle on the ground between a line drawn from the ground
point to the North pole of the body and a line drawn from
the ground point to the subsolar point. The
SubSpacecraftGroundAzimuth is defined similarly except it
uses the subspacecraft point.
Steven Lambright
2009-01-05
Added the ALLOWOUTSIDE option
Mackenzie Boyd
2009-08-24
Modified to use new class CameraPointInfo
Mackenzie Boyd
2009-09-14
Added missed functionality for defaulting to center sample/line
Tammy Becker
2012-01-13
Modified documentation and added Glossary links
Janet Richie, Ella Mae Lee
2012-11-20
Modified the documentation, fixes #1173
Lynn Weller
2013-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.
Ian Humphrey
2014-11-05
Added new parameters, USECOORDLIST, COORDLIST, and COORDTYPE for processing a list of
points as input. Reorganized campt. Fixes #1449.
Ian Humphrey
2015-03-03
Updated documentation. References #1449.
Tyler Wilson
2016-08-17
Checked in new test data, and added support for changes made to the CameraPointInfo
and Camera classes that incorporate new estimates for Pixel/Line/Sample/Detetctor resolution
and now allow a developer to control the order in which fields are output in both PVL and
CSV format. References #476, #4100.
Kaj Williams
2017-06-13
Resolved issue where the default value for the "allowoutside" parameter was supposed
to be set to "true", but the default _behavior_ of campt was instead consistent with a
setting of "false". In addition, corrected behavior where
manually setting "allowoutside" to "false" was ignored. Ref # 2258.
Kaitlyn Lee
2018-02-16
Removed units on look direction vectors to make them unitless. Fixes #5125.
Kristin Berry, Jesse Mapel, and Stuart Sides
2021-02-10
Modified to output Nulls when using a CSM Camera model and some values are not available.
Jacob Cain
2026-04-21
Updated output table.
Parameters
Files
Input image, which requires SPICE (see spiceinit)
and must be a Level0 or a Level1 ISIS cube.
If a CSM camera file is provided in the CSM parameter,
the cube does not need to be run through spiceinit.
Type
cube
File Mode
input
Filter
*.cub
JSON file containing either a CSM ISD (Instrument Support Data) or a
CSM model state. When provided, the camera is built from this file
and used in place of the camera attached to the input cube. The
input cube does not need to be run through spiceinit.
Type
filename
File Mode
input
Internal Default
None
Filter
*.json
Selecting this parameter will enable the 'COORDLIST' and 'COORDTYPE' parameters in the
GUI.
Note that this parameter is optional when running campt on the
command line.
Type
boolean
Default
FALSE
Exclusions
TYPE
SAMPLE
LINE
LATITUDE
LONGITUDE
Inclusions
COORDLIST
COORDTYPE
An input comma-delimited flatfile of image coordinates or ground coordinates.
This allows the program to process multiple coordinates in a single run of campt,
and output the results to the specified output file.
Expected order for image coordinates: sample, line
Expected order for ground coordinates: latitude, longitude
The "Error" keyword will only appear when using a coordinate list. The value of "Error"
will then be NULL unless an error occurs during the processing of a coordinate in the
coordinate list. Then, the value of this keyword will be the error message. This allows
for campt to continue processing the remaining coordinates in the coordinate
list.
For the input of Latitude and Longitude, campt expects
Planetocentric Latitude (within -90 to 90 boundary) and
Positive East Longitude (with 0-360 boundary) to find the location in the
input camera image.
Type
filename
File Mode
input
Internal Default
None
Exclusions
TYPE
SAMPLE
LINE
LATITUDE
LONGITUDE
This parameter is used to select the type of coordinates entered in the coordinate list
file, which will be used to determine the method to compute the geometric
and photometric information.
Type
string
Option List:
Option
Brief
Description
IMAGE
Interprets coordinates in 'COORDLIST' as sample/line
This option interprets the coordinates provided in the input coordinate list file
as sample/line and will compute latitude/longitude and Projection x/y.
GROUND
Interprets the coordinates in 'COORDLIST' as latitude/longitude
This option interprets the coordinates provided in the input coordinate list file
as latitude/longitude and will compute sample/line and Projection x/y.
Exclusions
TYPE
A text file in label format (PVL) which will
contain the results of campt. This file can
be used in conjunction with the getkey application
in order to pass the results to another program when developing
scripts.
Type
filename
File Mode
output
Internal Default
None
Format type for output file. PVL format is default.
Type
string
Default
PVL
Option List:
Option
Brief
Description
PVL
PVL format
Output file will be in PVL format
FLAT
Flat file format
Output file will be a comma-delimited flatfile. This file format
can easily be imported into Excel.
If this option is selected, the output from the application will be
appended to the output file. If it is not selected, any information
in the 'TO' file will be overwritten.
Type
boolean
Default
TRUE
The Allowoutside parameter influences how campt will report
resulting latitude/longitude and sample/line coordinates that fall
outside the input cube pixel boundaries.
The default is set to True, which allows campt to return
the values that are outside the cube pixel boundaries. For example,
a given latitude/longitude might return a sample location of -1.0
(a single whole pixel coordinate off the left side of the image).
This is a feature of the ISIS camera models.
When set to False, if a returned coordinate is off the image,
campt will fail. This failure can be indicated and ignored
within a batch script when only coordinates that fall within the
image cube pixel boundaries are desired.
Type
boolean
Default
TRUE
The Allowerror parameter enables campt to return results despite any errors.
Errors will be listed under "Error" in the result table, providing the user with information
about points that may lack surface intersection.
By default, campt is set to False, causing it to throw an error if any occur.
If campt is set to True, errors will be displayed in the error section of the results table instead of being thrown.
Type
boolean
Default
FALSE
Position
This parameter is used to select the type of coordinate entered,
which will be used to determine the method to compute the geometric
and photometric information.
Type
string
Default
IMAGE
Option List:
Option
Brief
Description
IMAGE
Interprets the coordinate as sample/line
This option interprets the coordinate as sample/line and will
compute latitude/longitude and Projection x/y.
Exclusions
LATITUDE
LONGITUDE
GROUND
Interprets the coordinates as latitude/longitude
This option interprets the coordinate as latitude/longitude and
will compute sample/line and Projection x/y.
Exclusions
LINE
SAMPLE
This is the Sample position used to compute information
at a given pixel location in the input image cube.
Type
double
Internal Default
Center sample
This is the Line position used to compute information
at a given pixel location in the input image cube.
Type
double
Internal Default
Center line
This is the Planetocentric Latitude (within -90 to 90
boundary) used to find the location in the input camera image.
Get photometric information at pixel (1, 1). TO (optional) specifies a label filename to save output to. FORMAT and APPEND are also used to specify output.
Get photometric information at lat 0, lon 270. To use latitude and longitude, TYPE=GROUND must be specified.
Command Line
campt
from=ctx.cub lat=0.0 lon=270.0 type=ground
Example 3
Coordinate List
Get photometric information for a series of points. The points should be in sample, line format for COORDTYPE=IMAGE (or lat, lon for COORDTYPE=GROUND). COORDTYPE is required when COORDLIST is used.