ISIS Application Documentation
camtrim | Printer Friendly View | TOC | Home |
Trims pixels outside of lat/lon range
Overview | Parameters | Example 1 | Example 2 |
Description
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. CategoriesHistory
|
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: 10/05/2024 02:41:51 |
Parameter GroupsFiles
Ground Range
|
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: 10/05/2024 02:41:51 |
Use this parameter to select the input cube filename. All bands within the cube will be trimmed.
Type | cube |
---|---|
File Mode | input |
Filter | *.cub |
This file will contain the trimmed cube.
Type | cube |
---|---|
File Mode | output |
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.
Type | filename |
---|---|
File Mode | input |
Default | None |
Pixels that have a latitude less than this value will be trimmed.
Type | double |
---|---|
Minimum | -90 (inclusive) |
Maximum | 90 (inclusive) |
Less Than | MAXLAT |
Pixels that have a latitude greater than this value will be trimmed.
Type | double |
---|---|
Minimum | -90 (inclusive) |
Maximum | 90 (inclusive) |
Greater Than | MINLAT |
Pixels that have a longitude less than this value will be trimmed.
Type | double |
---|---|
Minimum | -360 (inclusive) |
Maximum | 360 (inclusive) |
Less Than | MAXLON |
Pixels that have a longitude greater than this value will be trimmed.
Type | double |
---|---|
Minimum | -360 (inclusive) |
Maximum | 360 (inclusive) |
Greater Than | MINLON |
Example 1Trimming Pixels Description
This example illustrates how to trim a cube such that all pixels with
latitudes greater than 25 are set to NULL.
Command Line
camtrim
FROM=input.cub TO=trimmed.cub MINLAT=-90 MAXLAT=25
MINLON=0 MAXLON=360
The command to use for this example.
Input ImageOutput Image |
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: 10/05/2024 02:41:51 |
Example 2Trimming 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).
Command Line
camtrim
FROM=input.cub TO=trimmed_lon.cub MAP=sinusoidal.map MINLAT=-90
MAXLAT=90 MINLON=134 MAXLON=136
The command to use for this example.
Input ImageData File
Output Image |
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: 10/05/2024 02:41:51 |