Home

Quick Links

Software Manual
GitHub
API Reference

Documentation Versions

Latest Release
Dev
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


photrim

Printer Friendly View | TOC | Home

Trims pixels outside of phase, incidence, and emission angles

Overview Parameters Example 1 Example 2

Description

The photrim program trims pixels outside of the phase, incidence, and emission angles by setting them to "null" within all bands of the cube. A user can either trim using the program's default method or the USEDEM method.

By default, photrim uses the angles calculated from the ellipsoidal surface to trim an image. The ellipsoid is retrieved from the IAU/NAIF target body file, which is defined within the cube's kernel group as the TargetAttitudeShape. If the USEDEM option is selected, then photrim will use the angles calculated from the digital elevation model (DEM) to perform the trim instead. The DEM is referenced in the ShapeModel keyword within the input cube's kernel group. Note that photrim does not trim using local slopes.

Angle Definitions:

Phase Angle - The angle between the sun vector to a point on the ellipsoid and the instrument vector to the same point.
Incidence Angle - The angle between the sun vector to a point on the ellipsoid and the normal at that point.
Emission Angle - The angle between the instrument vector to a point on the ellipsoid and the normal at that point.

Examples of special cases:

1) If the instrument is directly between the point and the sun, then the phase angle is 0; if both the sun and the instrument are both along the normal to the point, then the phase, incidence and emission angles are all zero.

2) If the instrument is looking along the normal and the sun is illuminating the point, then the emission angle is 0 and the incidence and phase angles will be in the range of 0 to 90 and equal to each other.

3) A point on the surface of an ellipsoidal body cannot be illuminated if the incidence angle is greater than 90 degrees.

4) A point on the surface of an ellipsoidal body cannot be visible if the emission angle is greater than 90 degrees.

5) If a point is both illuminated and visible, then the phase angle ranges from 0 to less than 180.

Categories


Related Applications to Previous Versions of ISIS

This program replaces the following application existing in previous versions of ISIS:
  • trimangle

History

Tammy Becker1999-02-11 Original version
Stuart Sides2003-06-04 Converted trimandle to Isis 3.0, and made it trim only on phase, incidence and emission angles.
Stuart Sides2003-07-29 Modified filename parameters to be cube parameters where necessary
Steven Lambright2008-05-13 Removed references to CubeInfo
Marjorie Hahn2016-08-05 Added the option to use the digital elevation model when trimming the image. Created examples for using the DEM and not using the DEM. Fixes #4181. Converted to callable app and converted Makefile tests to gtests.

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the USGS Astrogeology Discussion Board
To report a bug, or suggest a feature go to: ISIS Github
File Modified: 02/21/2025 19:28:13
X

Files: FROM


Description

Use this parameter to select the filename. All bands within the file will be trimmed.

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

Files: TO


Description

This file will contain the results of the trim.

Type cube
File Mode output
Close Window
X

Digital Elevation Model: USEDEM


Description

This specifies if the image will be trimmed based on the photometric angles obtained from the DEM surface or the ellipsoid. If this parameter is set to false, then the photometric angles will be obtained from the ellipsoidal surface.

Type boolean
Default FALSE
Close Window
X

Photometry: MINPHASE


Description

Pixels which have a phase angle less than this value will be trimmed.

Type double
Default 0.0
Minimum 0.0 (inclusive)
Maximum 180.0 (inclusive)
Less Than or Equal MAXPHASE
Close Window
X

Photometry: MAXPHASE


Description

Pixels which have a phase angle greater than this value will be trimmed.

Type double
Default 180.0
Minimum 0.0 (inclusive)
Maximum 180.0 (inclusive)
Greater Than or Equal MINPHASE
Close Window
X

Photometry: MINEMISSION


Description

Pixels which have an emission angle less than this value will be trimmed.

Type double
Default 0.0
Minimum 0.0 (inclusive)
Maximum 90.0 (inclusive)
Less Than or Equal MAXEMISSION
Close Window
X

Photometry: MAXEMISSION


Description

Pixels which have an emission angle greater than this value will be trimmed.

Type double
Default 90.0
Minimum 0.0 (inclusive)
Maximum 90.0 (inclusive)
Greater Than or Equal MINEMISSION
Close Window
X

Photometry: MININCIDENCE


Description

Pixels which have an incidence angle less than this value will be trimmed.

Type double
Default 0.0
Minimum 0.0 (inclusive)
Maximum 180.0 (inclusive)
Less Than or Equal MAXINCIDENCE
Close Window
X

Photometry: MAXINCIDENCE


Description

Pixels which have an incidence angle greater than this value will be trimmed.

Type double
Default 90.0
Minimum 0.0 (inclusive)
Maximum 180.0 (inclusive)
Greater Than or Equal MININCIDENCE
Close Window