Trims pixels outside of phase, incidence, and emission angles
Given a camera based cube and minimum and maximum ranges for the phase,
incidence, and emission angles, this program sets any pixels outside these
ranges to NULL. Photrim uses angles calculated from the spheroid; it does
not use local slopes.

Angle Definitions:

Phase Angle - The angle between the sun vector to a point on the spheroid
and the instrument vector to the same point.

Incidence Angle - The angle between the sun vector to a point on the
spheroid and the normal at that point.

Emission Angle - The angle between the instrument vector to a point on the
spheroid 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 a spherical body cannot be illuminated if the
incidence angle is greater than 90 degrees.

4) A point on the surface of spherical 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.
- trimangle
Original version
Converted trimandle to Isis 3.0, and made it trim only on phase, incidence
and emission angles.
Modified filename parameters to be cube parameters where necessary
Removed references to CubeInfo
Trim and Mask
Cameras
cube
input
Input cube to trim
Use this parameter to select the filename. All bands within the file
will be trimmed.
*.cub
cube
output
Output cube
This file will contain the results of the trim.
double
- 0.0
Minimum phase angle to trim
Pixels which have a phase angle less than this value will be
trimmed.
0.0
180.0
- MAXPHASE
double
- 180.0
Maximum phase angle to trim
Pixels which have a phase angle greater than this value will be
trimmed.
0.0
180.0
- MINPHASE
double
- 0.0
Minimum emission angle to trim
Pixels which have an emission angle less than this value will be
trimmed.
0.0
90.0
- MAXEMISSION
- 90.0
double
Maximum emission angle to trim
Pixels which have a emission angle greater than this value will be
trimmed.
0.0
90.0
- MINEMISSION
double
- 0.0
Minimum incidence angle to trim
Pixels which have an incidence angle less than this value will be
trimmed.
0.0
180.0
- MAXINCIDENCE
double
- 90.0
Maximum incidence angle to trim
Pixels which have a incidence angle greater than this value will be
trimmed.
0.0
180.0
- MININCIDENCE