Home
About ISIS
Support
Download

ISIS

Documentation
Tutorials
Technical Documents

ISIS 2

Documentation
Tutorials
Technical Documents
USGS

ISIS Application Documentation


cam2map

Standard View | TOC | Home

Convert camera image to a map projection

Description
Categories
Groups
Examples
History


Description

This program projects an ISIS level0 or level1 cube to a map (ISIS level2 cube). The input cube requires SPICE data and therefore spiceinit should be executed prior to running cam2map. The map projection is defined using a PVL file which is specified in cam2map in the MAP parameter. Note: the system defaults to the Sinusoidal projection (ISIS projection based templates are located in $ISISROOT/appdata/templates/maps). To learn more about using map projections in ISIS, refer to the ISIS Workshop "Learning About Map Projections".

If you only entered the input cube (FROM) and output cube (TO) and changed no other parameters, the following are the defaults for the Mapping group. Note: this is the PVL format you'll see in both the level2 ISIS cube header and the MAP file:

  Group = Mapping
    TargetName             = "Obtained from the Instrument group"
    EquatorialRadius       = "Obtained from TargetAttitudeShape kernel"
    PolarRadius            = "Obtained from TargetAttitudeShape kernel"

    LatitudeType           = Planetocentric
    LongitudeDirection     = PositiveEast
    LongitudeDomain        = 360 (Could be automatically adjusted to 180 by LONSEAM)

    MinimumLatitude        = "Computed from the input camera cube"
    MaximumLatitude        = "Computed from the input camera cube"
    MinimumLongitude       = "Computed from the input camera cube"
    MaximumLongitude       = "Computed from the input camera cube"

    ProjectionName         = Sinusoidal
    CenterLongitude        = "Average of MinimumLongitude and MaximumLongitude"
    PixelResolution        = "Computed from the input camera cube"
  EndGroup
    

If you need to generate your own map file you can use the maptemplate program, or alternatively, hand create a file using any text editor. The file need only specify the ProjectionName, as defaults will be computed for the remaining map file parameters. The following table indicates how the defaults are established:

PARAMETER DEFAULT
TargetName Read from Instrument group in the input cube labels
EquatorialRadius
PolarRadius
Read from SPICE PCK file set during spiceinit. The PCK file is defined in the Kernels group via the TargetAttitudeShape keyword
LatitudeType Planetocentric
LongitudeDirection PositiveEast
LongitudeDomain Normally 360 (0-360). However, if the 180 (-180,180) domain definition creates a smaller projected cube, then use it instead.
MinimumLatitude
MaximumLatitude
MinimumLongitude
MaximumLongitude
Computed from the input cube or read from the map file. However, any combination of the four values can then be overridden by the user. The values the user specifies are expected to be in the coordinate system of the projection.
PixelResolution
Scale
Computed from the input cube or read from the map file. The value can be overridden by the user.

Alternatively, 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=yes 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=yes and the map file is missing a keyword like PixelResolution, the application will fail with a PVL error. Setting MATCHMAP=no allows for some of the mapping components to be overridden by the user or computed from the FROM cube.

If you are attempting to construct a mosaic, it is essential that the PixelResolution, EquatorialRadius, PolarRadius, LatitudeType, LongitudeDirection, LongitudeDomain, ProjectionName, and projection specific parameters (e.g., CenterLongitude, CenterLatitude) are the same for all cubes. That is, you should create one map file and use it as input for all the cubes in your mosaic. Otherwise, the program will throw and error.

By letting the minimum and maximum latitude and longitude values default, the application will determine the coverage of each image. However, if the mosaic Latitude and Longitude range are entered, each output image will be projected to the full size of the mosaic resulting in large file sizes and images with many NULL pixels. The following Mapping group could be used for mosaicking:

 Group = Mapping
   ProjectionName         = Sinusoidal
   CenterLongitude        = 0
   PixelResolution        = 100 <meters>
 EndGroup
   

Finally, depending on the projection, problems can occur with cubes that fall on the projection longitude seam. For example, if you are making a mosaic with LongitudeDomain=360 and your cube crosses 0/360 seam, the program will compute the default longitude range of the cube to MinimumLongitude=0 and MaximumLongitude=360. A larger than necessary output image will be created, with size inversely proportional to pixel resolution. The LONSEAM parameter allows you to selectively handle this case. If you are making mosaics near the seam you will need to understand and alter the default for this parameter. Problems at the Longitude Seams of The ISIS Workshop "Learning About Map Projections" includes an example to help illustrate the problem.


Categories


Related Applications to Previous Versions of ISIS

This program replaces the following applications existing in previous versions of ISIS:

Parameter Groups

Files

Name Description
FROM Input cube to project
MAP File containing mapping parameters
TO Newly mapped cube
MATCHMAPMatch the map file

Output Map Resolution

Name Description
PIXRESDefines how the pixel resolution in the output map file is obtained
RESOLUTIONPixel resolution

Output Map Ground Range

Name Description
DEFAULTRANGEDefines how the default ground range is determined
MINLATMinimum Latitude
MAXLATMaximum Latitude
MINLONMinimum Longitude
MAXLONMaximum Longitude
TRIM Set all pixels outside the bounding box to NULL

Longitude Seam Options

Name Description
LONSEAM How should images at the longitude seam be handled

Options

Name Description
INTERPType of interpolation
WARPALGORITHMWarp algorithm
PATCHSIZEPatch size for forward or reverse warping
OCCLUSIONDetect and mark occluded pixels.

Files: FROM

Description

The specification of the input cube to be projected. The cube must have been initialized using the spiceinit program.

Type cube
File Mode input
Filter *.cub

Files: MAP

Description

A file containing the desired output mapping parameters in PVL format. This file can be a simple label file, or can be 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

Files: TO

Description

This file is the map projected (level2) image.

Type cube
File Mode output
Filter *.cub

Files: MATCHMAP

Description

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
  • PIXRES
  • RESOLUTION
  • DEFAULTRANGE
  • MINLAT
  • MAXLAT
  • MINLON
  • MAXLON
  • LONSEAM

Output Map Resolution: PIXRES

Description

This parameter is used to specify how the pixel resolution is obtained for the output map projected cube.

Type string
Default CAMERA
Option List:
Option Brief Description
CAMERACompute resolution from input cube This option will automatically determine the resolution from the input cube specified using the FROM parameter.

Exclusions

  • RESOLUTION
MAPRead resolution from input map file This option will use either the PixelResolution (meters/pixel) or Scale (pixels/degree) in the map file.

Exclusions

  • RESOLUTION
MPP Get resolution from user in meters per pixel This option allows the user to specify the resolution in meters per pixel using the RESOLUTION parameter

Inclusions

  • RESOLUTION
PPD Get resolution from user in pixels per degree This option allows the user to specify the resolution in pixels per degree using the RESOLUTION parameter

Inclusions

  • RESOLUTION

Output Map Resolution: RESOLUTION

Description

Specifies the resolution in either meters per pixel or pixels per degree

Type double
Minimum 0.0 (exclusive)

Output Map Ground Range: DEFAULTRANGE

Description

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 camera or map file. Note the user can override 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 MINIMIZE
Option List:
Option Brief Description
MINIMIZEMinimize output image size This option will use the camera and projection in combination to ensure the output image size (samples, lines) is minimized. Using a ground range can cause NULL padding for projections with curved meridians and/or parallels and hence large output images. The amount of padding can be quite large for extremely high resolution maps.

Exclusions

  • MINLAT
  • MAXLAT
  • MINLON
  • MAXLON
  • TRIM

Inclusions

  • LONSEAM
CAMERA Compute default range from input cube This option will automatically determine the minimum/maximum latitude/longitude from the input camera model cube specified using the FROM parameter.

Inclusions

  • LONSEAM
MAP Read default range from map file This option will read the minimum/maximum latitude/longitude from the input map file. All four values are expected to be defined.

Exclusions

  • LONSEAM

Output Map Ground Range: MINLAT

Description

The minimum latitude of the output map. If this is entered by the user it will override the default camera or map value. By default, planetocentric latitudes are assumed unless the map file specifies otherwise.

Type double
Internal Default Use default range
Minimum -90.0 (inclusive)
Maximum 90.0 (inclusive)

Output Map Ground Range: MAXLAT

Description

The maximum latitude of the output map. If this is entered by the user it will override the default camera or map value. By default, planetocentric latitudes are assumed unless the map file specifies otherwise.

Type double
Internal Default Use default range
Minimum -90.0 (inclusive)
Maximum 90.0 (inclusive)
Greater Than
  • MINLAT

Output Map Ground Range: MINLON

Description

The minimum longitude of the output map. If this is entered by the user it will override the default camera or map value. By default, positive east longitudes in the range of 0 to 360 are assumed unless the map file specifies otherwise.

Type double
Internal Default Use default range

Output Map Ground Range: MAXLON

Description

The maximum longitude of the output map. If this is entered by the user it will override the default camera or map value. By default, positive east longitudes in the range of 0 to 360 are assumed unless the map file specifies otherwise.

Type double
Internal Default Use default range
Greater Than
  • MINLON

Output Map Ground Range: TRIM

Description

The image is modified. The pixel dimensions of the file are retained; therefore, the number of pixels is the same. However, the pixels that fall outside the default or specified latitude and longitude range are set to NULL.

If camera is selected:

If map is selected:

Type boolean
Default FALSE

Longitude Seam Options: LONSEAM

Description

With this option you can turn on/off the automatic longitude domain switching that occurs when a file crosses the boundary of the longitude domain (0-360 or -180 to 180). If the switching is turn off then you have the choice of making the program continue or exit when the cube does cross the boundary.

Type string
Default AUTO
Option List:
Option Brief Description
AUTOAutomatically correct Longitude Domain If the cube crosses the longitude seam automatically compute the LongitudeDomain. When the cube is near 0 or 360 degrees the program will assume 180 LongitudeDomain. When the cube is near 180 or -180 degrees it will assume 360 LongitudeDomain.
ERRORAbort program if cube crosses seam If the cube crosses the longitude seam the program will exit with an error message
CONTINUEContinue program if cube crosses seam If the cube crosses the longitude seam the program will continue. The LongitudeDomain in the map file will be used. If the map file does not have a LongitudeDomain, 0-360 will be used. Note that this could create an extremely large image.

Options: INTERP

Description

This is the type of interpolation to be performed on the input.

Type string
Default CUBICCONVOLUTION
Option List:
Option Brief Description
NEARESTNEIGHBORNearest Neighbor Each output pixel will be set to the pixel nearest the calculated input pixel.
BILINEARBi-Linear interpolation Each output pixel will be set to the value calculated by a bi-linear interpolation of the calculated input pixel.
CUBICCONVOLUTIONCubic Convolution interpolation Each output pixel will be set to the value calculated by a cubic convolution interpolation of the calculated input pixel.

Options: WARPALGORITHM

Description

This parameter is used to choose the warping algorithm, either the forward patch algorithm or the reverse patch algorithm. The default is to automatically choose the algorithm based on the input camera type (e.g., framing, linescan, pushframe).

Type string
Default AUTOMATIC
Option List:
Option Brief Description
FORWARDPATCHForward patch warp algorithm Patches are uniformly distributed over the input cube (FROM). For each input patch, the lat/lons of the four corners coordinates are computed using the camera model. Those four lat/lon coordinates are used by the map projection to determine four output pixel coordinates. Then the four output to input image coordinates are fit with two affine transforms. That is, isamp=f(osamp,oline) and iline=g(osamp,oline) where f = A+B*osamp+C*oline and similarly for g. If the estimated input/sample line (as computed by the affine transform) at the center of the patch is within a tenth of a pixel of the actual computation using the projection and camera model, the affine transforms are used to place the calculated input pixels in the output patch (using the specified INTERPOLATOR).

Exclusions

  • OCCLUSION

Inclusions

  • PATCHSIZE
REVERSEPATCHReverse patch warp algorithm Patches are uniformly distributed over the output cube (map projected product). For each output patch, the lat/lons of the four corners coordinates are computed using the map projection. Those four lat/lon coordinates are used by the camera model to determine four input pixel coordinates. Then the four output to input image coordinates are fit with two affine transforms. That is, isamp=f(osamp,oline) and iline=g(osamp,oline) where f = A+B*osamp+C*oline and similarly for g. If the estimated input/sample line (as computed by the affine transform) at the center of the patch is within a tenth of a pixel of the actual computation using the projection and camera model, the affine transforms are used to place the calculated input pixels in the output patch (using the specified INTERPOLATOR).

Inclusions

  • PATCHSIZE
AUTOMATICAutomatically select warp algorithm The automatic option will choose the appropriate algorithm depending on the camera type of the input cube (TO). If the cube is a framing camera image, the reverse algorithm will be used with a PATCHSIZE of 4. If the cube is a line scan image, the forward algorithm will be used with a PATCHSIZE of 5. If the cube is a push frame camera (e.g., LRO WAC, MRO MARCI, or THEMIS VIS) the forward transform with a PATCHSIZE of the pushframe framelet height will be used. It is recommended that you always use automatic for push frame cameras to ensure the patch size does not cross multiple framelets.

Exclusions

  • PATCHSIZE
  • OCCLUSION

Options: PATCHSIZE

Description

The forward and reverse patch algorithms try to fit an affine transform between the camera model coordinate and projection coordinate using the four corners of the patches. Patches that are too large may run faster at the risk of missing higher resolution information about the DTM. For example, a patch of 256x256 may have the same elevation at the four corners and center of the grid, but a crater may exist in one of the four quadrants of the patch. The crater, up to 128 pixels in diameter, may not be properly orthorectified. In general, small patch sizes are recommended (e.g., 4, 8).

Type integer
Minimum 1 (inclusive)

Options: OCCLUSION

Description

This parameter is used to toggle the occlusion detection algorithm. If set true, then the occlusion detection algorithm locates and nullifies occluded pixels. A pixel is determined to be occluded if the lat/lon value of the pixel in projected image space does not match (within a tolerance) the lat/lon value of the pixel in unprojected image space.

Highly dependent on DEM / image pixel resolution and accuracy of coregistration between the two.

This parameter also significantly increases projection time. It is recommended that this option is only used on images with known areas of occlusion.

Type boolean
Default false

Examples


Example 1

Demonstrates the AUTO LONSEAM option

Description

This example is the first of two different runs of cam2map demonstrating the LONSEAM option. In this case it is set to AUTO. All the user input parameters in this example are identical to the following example except for LONSEAM and TO. The default for LONSEAM is AUTO.

Command Line

cam2map from=EN0108830655M.cub map=../IN/sinu.map to=EN0108830655M_sinu_auto.cub
This is the command line used to create the output for the AUTO version of the LONSEAM example.

GUI Screenshot

cam2map LONSEAM=AUTO GUI

Example GUI

The top of the GUI shows the parameters filled in for input files, output file, and output map resolution.

The middle of the GUI illustrates the parameters filled in for the output map ground range and the longitude seam options. Under the output map ground range section, notice the grayed out parameters. These values are computed and not allowed to be modified when DEFAULTRANGE = MINIMIZE. This is the default. The LONSEAM option has been set to AUTO in this example.

The bottom of the GUI shows the Options menu. The default value for INTERP is selected (CUBICCONVOLUTION).

Input Image

Input Messenger image

Input image for LONSEAM examples

Parameter Name: FROM

This is a Messenger narrow angle camera image.

Data File

Map file Input map file defining the desired output map projection. This file is in PVL format.

Output Image

Output of cam2map run with LONSEAM=AUTO

Output image for cam2map LONSEAM=AUTO

Parameter Name: TO

This is the output of cam2map demonstrating LONSEAM set to AUTO. Contrast this output with the next example which was created with the LONSEAM set to CONTINUE.


Example 2

Demonstrates the LONSEAM CONTINUE option

Description

This example is the second of two different runs of cam2map demonstrating the LONSEAM option. In this case it is set to CONT. All the user input parameters in this example are identical to the previous example except for LONSEAM and TO.

Command Line

cam2map from=EN0108830655M.cub map=../IN/sinu.map to=EN0108830655M_sinu_cont.cub lonseam=cont
This is the command line used to create the output for the CONT version of the LONSEAM example.

GUI Screenshot

cam2map LONSEAM=CONTINUE GUI

Example GUI

The top of the GUI shows parameters filled in for input files, output file, and output map resolution.

The middle of the GUI illustrates parameters filled in for the output map ground range and the longitude seam options. Under the output map ground range section, notice the grayed out parameters. These values are computed and not allowed to be modified when DEFAULTRANGE = MINIMIZE. This is the default. The LONSEAM option has been set to CONT in this example.

The bottom of the GUI shows the Options menu. The default value for INTERP is selected (CUBICCONVOLUTION).

Input Image

Input Messenger image

Input image for LONSEAM examples

Parameter Name: FROM

This is a Messenger narrow angle camera image.

Data File

Map file Input map file defining the desired output map projection. This file is in PVL format.

Output Image

Output of cam2map run with LONSEAM=CONTINUE

Output image for cam2map LONSEAM=CONTINUE

Parameter Name: TO

This is the output of cam2map demonstrating LONSEAM set to CONT. Contrast this output with the previous example which was created with the LONSEAM set to AUTO.


Example 3

Demonstrates one of two different ways to use MATCHMAP

Description

This example is the first of two different runs of cam2map demonstrating usage of MATCHMAP. In both this example and the next, MATCHMAP is set to YES. In this case MAP is an ISIS level 2 image. The mapping parameters of the output file will be read from the mapping group of the MAP level 2 image.

Command Line

cam2map from=EN0108827082M.lev1.cub map=EN0108828436M.lev2.cub to=EN0108827082M.lev2.cub matchmap=yes
This is the command line used to create the output for the level 2 image version of the MATCHMAP example.

GUI Screenshot

cam2map MATCHMAP GUI

Example GUI

The top of the GUI reveals parameters filled in for input files, output file, and output map resolution. Notice that with MATCHMAP checked the remaining output map resolution parameters are grayed out to show that they are no longer available for input. All the mapping parameters will be read from the level 2 image entered for MAP.

The middle of the GUI shows parameters for the output map ground range and the longitude seam options. Under the output map ground range section, notice all the parameters are grayed out. These values are all read or computed from the parameters in the mapping group of the level 2 image entered as the MAP and not allowed to be modified because MATCHMAP=YES. The LONSEAM option has been set to AUTO in this example (the default).

The bottom of the GUI shows the Options menu. The default value for INTERP is selected (CUBICCONVOLUTION).

Input Images

Input Messenger image

Input image for MATCHMAP examples

Parameter Name: FROM

This is a Messenger narrow angle camera image.

Input level 2 image used for MAP

Input image for MATCHMAP examples

Parameter Name: MAP

This is a Messenger narrow angle camera image previously projected into an equirectangular map.

Output Image

Output of cam2map run with MATCHMAP=YES and map file

Output image for cam2map LONSEAM=AUTO

Parameter Name: TO

This is the output of cam2map demonstrating the use of MATCHMAP=YES with an ISIS level 2 image as MAP. Contrast this output with the level 2 image used as MAP and with the next example which was also created with MATCHMAP=YES, but uses an ISIS map file as MAP.


Example 4

Demonstrates a second way to use MATCHMAP

Description

This example is the second of two different runs of cam2map demonstrating usage of MATCHMAP. In both this example and the previous, MATCHMAP is set to YES. However, in this case MAP is an ISIS map file. The mapping parameters of the output file will be read from this map file.

Command Line

cam2map from=EN0108827082M.lev1.cub map=EN0108828436M.map to=EN0108827082M.lev2.cub matchmap=yes
This is the command line used to create the output for the map file version of the MATCHMAP example.

GUI Screenshot

cam2map MATCHMAP MAP GUI

Example GUI

The top of the GUI illustrates parameters filled in for input files, output file, and output map resolution. Notice that with MATCHMAP checked the remaining output map resolution parameters are grayed out to show that they are no longer available for input. All the mapping parameters will be read from the map file. The application will throw an error if any required information is missing.

The screen shot of the middle of GUI shows the parameters for the output map ground range and the longitude seam options. Under the output map ground range section, notice all the parameters are grayed out. These values are all read or computed from the map file values and not allowed to be modified because MATCHMAP=YES. The LONSEAM option has been set to AUTO in this example (the default).

The bottom of the GUI shows the Options menu. The default value for INTERP is selected (CUBICCONVOLUTION).

Input Image

Input Messenger image

Input image for MATCHMAP examples

Parameter Name: FROM

This is a Messenger narrow angle camera image.

Data File

Map file Input map file defining the desired output map projection. This file is in PVL format.

Output Image

Output of cam2map run with MATCHMAP=YES and map file

Output image for cam2map LONSEAM=AUTO

Parameter Name: TO

This is the output of cam2map demonstrating the use of MATCHMAP=YES with an Isis map file as MAP. Contrast this output with the previous example, which was also created with MATCHMAP=YES, but uses an Isis level 2 image for MAP.


Example 5

The following four examples illustrate the effects of the TRIM option

Description

In the GUI below, cam2map is set up to project the input (level1) image to a (level2) projected image. The latitude and longitude ranges are calculated using the CAMERA option, but note the trim option is not selected in order to output the full extent of the input image. In the example immediately following, the GUI is set up to trim the image to a specific latitude and longitude boundary (TRIM=YES).

Command Line

cam2map from=P01_001489_2688_XI_88N339W.lev1eo.cub map=./npole.map to=no_trim_P01_001489_2688_XI_88N339W.lev1eo.cubSINU18 defaultrange=camera
This is the command line used to create the output where the original dimensions are preserved.

GUI Screenshot

TRIM=NO GUI

Example GUI

Screen shot of the entire GUI with parameters filled in for FROM file, TO file, default PIXRES, and Output Map Ground Range set to the CAMERA of the input cube. The rest of the parameters are all set to the defaults.

Output Image

TRIM=NO output

Output image for cam2map TRIM=NO

Parameter Name: TO

This is the output of cam2map with TRIM turned off.


Example 6

The following example illustrates what happens to the same data set with TRIM=YES

Description

This cam2map GUI is set up to trim the image to a specific latitude and longitude boundary.

Command Line

cam2map from=P01_001489_2688_XI_88N339W.lev1eo.cub map=./npole.map to=trim2_P01_001489_2688_XI_88N339W.lev1eo.cub trim=yes defaultrange=camera minlat=87.3 maxlat=89.11 minlon=8 maxlon=74
This is the command line used to create the output where TRIM has been used to trim the image to a specific region of interest.

GUI Screenshot

TRIM=YES GUI

Example GUI

Screen shot of the entire GUI with parameters filled in for FROM file, TO file, default PIXRES, Output Map Ground Range set to the CAMERA of the input cube, TRIM=YES, and MIN/MAX LAT/LON ranges are defined. The rest of the parameters are all set to the defaults.

Output Image

TRIM=YES output

Output image for cam2map TRIM=YES

Parameter Name: TO

This is the output of cam2map with TRIM turned on.


Example 7

Potential anomalies using Sinusoidal projections

Description

Below is a Cassini ISS wide-angle image of Enceladus, in sinusoidal projection. It illustrates the anomaly that can happen using certain projections when TRIM=NO. Notice the "duplicated" data. The next example will show how to correct this problem.

Command Line

cam2map from=CISSWA_Enceladus.cub map=sinu180.map to=CISSWA_Enceladus_notrim.cub defaultrange=camera
The command used to project the level1 image to a sinusodial projection. Notice that the default is trim=no, and therefore, is not necessary in the command line.

GUI Screenshot

TRIM=NO GUI

Example GUI

Entire cam2map GUI with parameters filled in for FROM file, TO file, default PIXRES, and Output Map Ground Range set to the CAMERA of the input cube. The rest of the parameters are all set to the defaults. Note: the DEFAULT value for the TRIM parameter is NO, and therefore, it is not necessary to define TRIM.

Data File

Map file Input map file defining the attributes of the desired output map projection. This file is in PVL format.

Output Image

TRIM=NO output

Output image for cam2map TRIM=NO

Parameter Name: TO

This is the output of the cam2map Sinusoidal projection with TRIM turned off.


Example 8

Solution for anomalies using Sinusoidal projections

Description

Below is the same Cassini ISS wide-angle image of Enceladus used in Example #7. The GUI definitions illustrate how to use TRIM to eliminate the duplicated data created by this particular projection.

Command Line

cam2map from=CISSWA_Enceladus.cub map=sinu180.map to=CISSWA_Enceladus_notrim.cub defaultrange=camera trim=yes
The command used to project the level1 image to a sinusoidal projection.

GUI Screenshot

TRIM=YES GUI

Example GUI

Entire cam2map GUI with parameters filled in for FROM file, TO file, default PIXRES, Output Map Ground Range set to the CAMERA of the input cube, and TRIM=YES. The rest of the parameters are all set to the defaults.

Data File

Map file Input map file defining the attributes of the desired output map projection. This file is in PVL format.

Output Image

TRIM=YES output

Output image for cam2map TRIM=YES

Parameter Name: TO

This is the output of the cam2map Sinusoidal projection with TRIM turned on.


History

Kay Edwards1986-09-02 Original version
Jeff Anderson2003-05-02 Converted to Isis 3.0
Jeff Anderson2003-06-05 Added to Camera category
Stuart Sides2003-07-29 Modified filename parameters to be cube parameters where necessary
Jeff Anderson2003-12-01 Reworked defaults for user parameters
Jeff Anderson2004-01-21 Modified resolution parameters to eliminate inclusion/exclusion dependences.
Jeff Anderson2004-02-13 Added AUTOLON parameter
Jeff Anderson2004-02-25 Fixed bug with ground range user option
Elizabeth Miller2005-10-25 Added appTest
Jacob Danton2005-12-02 Updated appTest
Elizabeth Miller2006-03-23 Fixed appTest to reflect changes made in all camera models
Tracie Sucharski2006-04-04 Check to see if center of input image projects, if it does, force the tile containing center to be processed in ProcessRubberSheet.
Jeff Anderson2006-04-04 Reworked user interface
Elizabeth Miller2006-04-10 Reworked code for new user interface and added helper buttons
Elizabeth Miller2006-05-18 Depricated CubeProjection and ProjectionManager to ProjectionFactory
Elizabeth Miller2006-05-30 Moved Helper buttons and fixed error checking in helper methods
Elizabeth Miller2006-09-06 Modified call to ProjectionFactory CreateForCube method to include a value of false for the newly added sizeMatch parameter
Jeff Anderson2006-12-06 Test to see if target is sky and abort
Jeff Anderson2007-03-13 Add minimize option for DEFAULTRANGE
Steven Lambright2007-06-22 Fixed typo and corrected XML
Steven Lambright2007-08-22 Fixed lonseam option to work with minimize option correctly
Stuart Sides2008-02-11 Fixed bug where the ground range was not pulled from the map file when it was supposed to be (using DEFAULTRANGE = MAP).
Christopher Austin2008-04-18 Added the MATCHMAP option.
Steven Lambright2008-05-12 Removed references to CubeInfo
Christopher Austin2008-07-15 Changed MATCHMAP to default off
Steven Lambright2008-08-04 Changed MATCHMAP to have exclusions. If MATCHMAP is true, the PIXRES and DEFAULTRANGE options can not be set. Changed the code to enforce MATCHMAP.
Steven Lambright2008-09-10 Added the ability to change ProcessRubberSheet's tiling sizes. Now the Camera will decide upon the tiling sizes used in ProcessRubberSheet, in order to fix problems found with the push frame cameras which have small framelet sizes (less than 64 pixels tall). This is a passive ability with respect to the user; no options or differences should be noticeable.
Christopher Austin2008-10-31 Fixed DEFAULTRANGE > CAMERA option to accept MINLAT, MAXLAT, MINLON, and MAXLON as overriding values.
Christopher Austin2009-01-27 Fixed parameter names.
Travis Addair2009-08-10 Mapping group parameters are now placed into the print file.
Steven Lambright2011-01-31 Improved documentation
Jai Rideout2011-02-10 Print file now includes PixelResolution, Scale, UpperLeftCornerX, and UpperLeftCornerY in Mapping group.
Lynn Weller and Debbie A. Cook2012-01-17 Updated documentation text, added glossary links, and improved compatibility with Isis documentation.
Jeff Anderson2012-04-30 Add forward and reverse patch rubbersheeting parameters.
Debbie A. Cook2012-07-06 Updated Spice members to be more compliant with Isis coding standards. References #972.
Debbie A. Cook2012-10-11 Updated to use new Target class. References Mantis ticket number #775 and #1114.
Tracie Sucharski2012-12-06 Changed to use TProjection instead of Projection. References #775
Kimbelry Oyama2013-07-11 Removed redundant checks for !ui.GetBoolean("MATCHMAP") from if statements. Added ui.WasEntered before some of the parameters are used. Disabled LONSEAM when MATCHMAP is selected. Fixes #1613.
Jac Shinaman2016-01-29 Added new examples #5-8 describing the TRIM parameter. Fixes #0272.
Jac Shinaman2016-02-09 Updated examples #1-4 GUI illustrations, and clarified some of the "Description" paragraphs. Fixes #2389.
Jac Shinaman2016-02-09 Brought code closer to ISIS coding standards. Added test to read NAIF body frame info from labels. References #3934
Curtis Rose2016-06-29 Fixed an error when matchmap was true, the user could attempt to add a mapping file with a targetname that did not match the targetname of the instrument group of the cube file. Fixes #1952.
Adam Paquette2020-03-02 Added one last setImage call to check for pixel occlusion. Where any pixel is occluded when the resulting latitude, or longitude differ from the original latitude or longitude by 0.000001 degrees.
Austin Sanders2020-03-02 Added an additional parameter (occlusion) to toggle occlusion processing.