ISIS Application Documentation
map2map | Printer Friendly View | TOC | Home |
Modify a cube's map projection
Overview | Parameters | Example 1 | Example 2 |
Description
This program will alter the projection of a cube which is already
in a map projection (ISIS level2 cube).
Pixels are physically moved using either a nearest neighbor, bilinear, or cubic convolution interpolator.
Usage examples of this program include:
1. Converting from Sinusodial to Mercator or any other supported projection 2. No projection change but altering projection parameters such as center longitude or standard parallels 3. No projection change but altering pixel resolution 4. No projection change but altering latitude/ longitude window 5. No projection change but altering latitude types, longitude domains, or longitude direction 6. Match the mapping parameters of another ISIS leve2 cube for comparison. If you need to generate your own map file you can use the maptemplate program or alternatively, hand create a file using your favorite editor. The map file need only specify the ProjectionName as defaults will be computed for the remaining map file parameters. The map file can be an existing map projected (level2) cube. A level2 cube has PVL labels and contains the Mapping group. Depending on the values of the input parameters, the output cube can use some or all of the keyword values of the map file. For instance, setting MATCHMAP = true causes all of the mapping parameters to come from the map file, resulting in an output cube having the same number of lines and samples as the map file. If MATCHMAP = true and the map file is missing a keyword like PixelResolution, the application will fail with a PVL error. Setting MATCHMAP=false allows for some of the mapping components to be overridden by the user or computed from the FROM cube.To learn more about using map projections in ISIS, refer to the ISIS Workshop "Learning About Map Projections". CategoriesRelated Applications to Previous Versions of ISISThis program replaces the following applications existing in previous versions of ISIS:
History
|
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:12 |
Parameter GroupsFiles
Output Map Resolution
Output Map Ground Range
Options
|
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:12 |
The specification of the input cube to be remapped. The cube must contain a valid Mapping group in the labels.
Type | cube |
---|---|
File Mode | input |
Filter | *.cub |
A file containing the desired output mapping parameters in PVL. This file can be a simple label file, hand produced or created via the maptemplate program. It can also be an existing cube or cube label which contains a Mapping group. In the latter case the FROM cube will be transformed into the same map projection, resolution, etc.
Type | filename |
---|---|
File Mode | input |
Default Path | $ISISROOT/appdata/templates/maps |
Default | $ISISROOT/appdata/templates/maps/sinusoidal.map |
Filter | *.map *.cub |
This file will contain the results of the remapping.
Type | cube |
---|---|
File Mode | output |
Filter | *.cub |
This forces all of the mapping parameters to come from the map file. Additionally, when the map file is an image the TO file will have the same number of lines and samples as the map file.
Type | boolean |
---|---|
Default | FALSE |
Exclusions |
|
This parameter is used to specify how the pixel resolution is obtained for the output map projected cube.
Type | string | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Default | FROM | |||||||||||||||
Option List: |
|
Specifies the resolution in either meters per pixel or pixels per degree
Type | double |
---|---|
Minimum | 0.0 (exclusive) |
This parameter is used to specify how the default latitude/longitude ground range for the output map projected image is obtained. The ground range can be obtained from the input cube or map file. Note the user can overide the default using the MINLAT, MAXLAT, MINLON, MAXLON parameters. The purpose of the ground range is to define the coverage of the map projected image. Essentially, the ground range and pixel resolution are used to compute the size (samples and line) of the output image.
Type | string | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Default | FROM | |||||||||
Option List: |
|
The minimum latitude of the output map. If this is entered by the user it will override the default input cube or map value.
Type | double |
---|---|
Internal Default | Use default range |
Minimum | -90.0 (inclusive) |
Maximum | 90.0 (inclusive) |
The maximum latitude of the ground range. If this is entered by the user it will override the default input cube or map value.
Type | double |
---|---|
Internal Default | Use default range |
Minimum | -90.0 (inclusive) |
Maximum | 90.0 (inclusive) |
Greater Than | MINLAT |
The minimum longitude of the ground range. If this is entered by the user it will override the default input cube or map value.
Type | double |
---|---|
Internal Default | Use default range |
The maximum longitude of the ground range. If this is entered by the user it will override the default input cube or map value.
Type | double |
---|---|
Internal Default | Use default range |
Greater Than | MINLON |
If this option is selected, pixels outside the latitude/longtiude range will be trimmed or set to null. This is useful for certain projections whose lines of latitude and longitude are not parallel to image lines and sample columns.
Type | boolean |
---|---|
Default | FALSE |
This is the type of interpolation to be performed on the input.
Type | string | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Default | CUBICCONVOLUTION | ||||||||||||
Option List: |
|
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:12 |
Example 2map2map example demonstrating projection change, resolution change, and use of TRIM Description
In this example the polar portion of a Messenger/Mariner10 global mosaic
is extracted and transformed to a PolarStereographic projection. The
pixel resolution is reduced from 500 m/pix to 1000 m/pix. Also the trim
option is exercised to null the pixels outside of the lat/lon boundary
and generate a circular output image instead of a square.
Command Line
map2map
map2map from=MessengerFlyby_Mariner10_blobal.cub map=npola.map
to=MessengerFlyby_Mariner10_north_polar.cub pixres=map defaultrange=map
trim=yes
Command line for map2map TRIM example.
GUI Screenshot
Input Image
Data FileLinks open in a new window.
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: 02/21/2025 19:28:12 |