This application trims pixels outside of a user-specified
latitude/longitude range. Pixels that are outside of
the lat/lon range are set to NULL in the resulting
cube. By default, the lat/lon range is in the
universal coordinate system. This can be overridden using a map
projection template file.
Note: This application will not handle projected images (i.e.
Level2). This program is meant to work specifically on
Level1 images. To trim Level2 images, please refer to
maptrim.
Fixed problem with projection manager prematurely
destroying projection object
Stuart Sides
2003-05-16
Modified schema location from astogeology... to isis.astrogeology..."
Jeff Anderson
2003-06-04
Added dependent multi-band capabilities
Stuart Sides
2003-07-29
Modified filename parameters to be cube parameters where necessary
Jacob Danton
2005-12-02
Added appTest
Elizabeth Miller
2006-05-18
Depricated CubeProjection and ProjectionManager to ProjectionFactory
Steven Lambright
2008-05-12
Removed references to CubeInfo
Travis Addair
2009-08-10
Mapping group parameters are now placed into the print file.
Jai Rideout
2012-01-11
Updated documentation and testing with Ella Lee in preparation for the
3.4.0 release. Fixed various inconsistencies in the documentation and
rewrote some parts to make it clearer. Added two examples. Added a check
to ensure that projected cubes cannot be used with this application. Added
two new tests to test the processing of level 2 cubes and the use of a map
template file.
Tracie Sucharski
2012-12-06
Changed to use TProjection instead of Projection. References #775
If a file is not provided, this program will use the planetocentric
latitude type, positive east longitude direction, and 360 longitude
domain. Otherwise, the labels (LatitudeType, LongitudeDomain, and
LongitudeDirection) in the map projection template file will determine
the lat/lon type, direction, and domain.
This is the trimmed cube. Notice the NULL pixels with
latitudes greater than 25 degrees.
Example 2
Trimming Pixels Using a Map Projection Template File
Description
This example illustrates how to trim a cube such that only pixels
between longitudes 134 and 136 are kept. All other pixels are set to
NULL. The map projection template file specifies planetographic
latitudes and -180 to 180 positive west longitudes, instead of using
planetocentric latitudes and 0 to 360 positive east longitudes (the
default).
This is the map projection template file that is used to specify the
latitude type, longitude direction, and longitude domain. The three
keywords of interest in this file are LatitudeType,
LongitudeDirection, and LongitudeDomain.