mosrange
Compute the lat/lon range of a set of camera images for mosaicking
mosrange computes and outputs the latitude and longitude ranges of a set of Level1 images (i.e. non-projected), as well as the pixel resolution and the oblique pixel resolution. It creates a cam2map ready map file with the extents of the latitude/longitude ranges of the image set.
The user can select the type of map projection preferred by two different ways. The PROJECTION parameter allows direct specification of an ISIS supported projection. Or, the user can select a map file from the ISIS map template system that contains the projection name. If none of these options are used, then Equirectangular is the default.
mosrange provides better control over the values of the latitude/longitude ranges by providing a PRECISION parameter. This parameter specifies the maximum number of digits of precision for many of the Mapping group parameters used to project images.
ONERROR, ERRORLOG, and ERRORLIST parameters offer better error handling and diagnostics when problems are encountered processing the input file list. ONERROR dictates whether mosrange will abort or continue when an error occurs. If ONERROR=FAIL (default behavior), mosrange aborts upon error without generating a map file. If ONERROR=CONTINUE, mosrange produces an output map file with data collected from all successfully processed images. A detailed list of files that fail and their associated errors are written to the ERRORLOG file if provided. A simple list of failed files is written to the ERRORLIST file if provided.
The primary use of mosrange is to provide a quick, simple and batchable means of creating map files for projections.
An example of the output generated is:
Group = Mapping ProjectionName = Equirectangular TargetName = Mercury EquatorialRadius = 2440000.0 <meters> PolarRadius = 2440000.0 <meters> LatitudeType = Planetocentric LongitudeDirection = PositiveEast LongitudeDomain = 360 PixelResolution = 505.3668 <meters/pixel> ObliquePixelResolution = 791.251 <meters/pixel> Scale = 84.2676 <pixels/degree> MinPixelResolution = 483.45317995544 <meters> MaxPixelResolution = 527.28051834369 <meters> CenterLongitude = 165.9728 CenterLatitude = -13.6612 MinimumLatitude = -21.5164 MaximumLatitude = -5.806 MinimumLongitude = 133.7863 MaximumLongitude = 198.1593 # Actual Parameters without precision applied PreciseCenterLongitude = 165.97281458717 PreciseCenterLatitude = -13.661167089917 PreciseMinimumLatitude = -21.516314016725 PreciseMaximumLatitude = -5.806020163109 PreciseMinimumLongitude = 133.78639979231 PreciseMaximumLongitude = 198.15922938202 End_Group End
Categories
History
Kris Becker | 2006-03-26 | Original version |
Kris Becker | 2008-06-27 | Removed references to CubeInfo due to refactor |
Kris Becker | 2009-08-13 | Added parameters LATTYPE, LONDIR and LONDOM; Now computes pixel Scale in pixels/degree; added additional parameters to the output map file so it is more compliant with projection requirements based upon input parameters and established mapping group keywords. |
Kris Becker | 2009-09-18 | Added TargetName to output map file. |
Mackenzie Boyd | 2010-07-19 | Modified program to have output go to print.prt file in addition to other outputs. |
Kris Becker | 2010-11-02 | Added more detail to error reporting so the offending file can be more readily identified. |
Kris Becker, Lynn Weller | 2012-01-22 | Updated the documentation |
Debbie A. Cook | 2012-07-06 | Updated Spice members to be more compliant with Isis coding standards. References #972. |
Debbie A. Cook | 2012-10-11 | Updated to use new Target class. References Mantis tickets #775 and #1114. |
Tyler Wilson | 2016-08-25 | Updated to use updated Camera/CameraPointInfo classes which include improved approximations to Pixel/Detector/Line/Sample resolutions, as well as providing the ability for developers to order the fields in CSV/Pvl output. References #476. |
Kris Becker | 2019-03-11 | Added ERRORLOG, ERRORLIST and ONERROR flags to provide better control error behavior and provide diagnostics when problems are encountered processing input file list. |
Ken Edmundson | 2023-09-07 | Moved Kris Becker's 2019-03-11 changes from UofA code base to USGS. Updated documentation. Cleaned up unnecessary blank lines and commented code in mosrange.cpp. References #3606. |