ISIS Application Documentation
grid | Standard View | TOC | Home |
Add a graticule or rectangular grid to the input image
Description
Categories
Groups
Examples
History
1. A graticule based on latitude and longitude coordinates where (MODE=GROUND).Defaults:
2. A simple rectangular grid based on line and sample coordinates where (MODE=IMAGE).
Name | Description |
---|---|
FROM | Input cube |
TO | Output cube |
Name | Description |
---|---|
MODE | Grid options |
TICKS | Draw ticks instead of lines |
OUTLINE | Outline the image |
BOUNDARY | Include grid lines at the lat/lon extent of the image or as defined by the ground options |
EXTENDGRID | If the grid should be extended past the longitude domain boundary. |
Name | Description |
---|---|
BASELINE | Starting line |
BASESAMPLE | Starting sample |
LINC | Line increment |
SINC | Sample increment |
Name | Description |
---|---|
BASELAT | Starting latitude |
BASELON | Starting longitude |
LATINC | Latitude increment |
LONINC | Longitude increment |
Name | Description |
---|---|
MINLAT | Lowest latitude value to extend grid lines |
MAXLAT | Highest latitude value to extend grid lines |
MINLON | Lowest longitude value to extend grid lines |
MAXLON | Highest longitude value to extend grid lines |
Name | Description |
---|---|
LINEWIDTH | Thickness of lines (pixels) |
LINEVALUE | Select grid line value assignment option |
DNVALUE | DN value to be used |
Name | Description |
---|---|
BKGNDVALUE | Select background DN value assignment option |
BKGNDDNVALUE | DN value to be used |
Name | Description |
---|---|
DIAGONALTICKS | Draw tick marks diagonally ('x' instead of '+') |
TICKSIZE | Size (length) of tickmarks (pixels) |
Use this parameter to select the input file.
Type | cube |
---|---|
File Mode | input |
Filter | *.cub |
This file will contain the gridded image.
Type | cube |
---|---|
File Mode | output |
Filter | *.cub |
This allows for selection of either IMAGE or GROUND coordinates when drawing the grid.
Type | string | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Default | GROUND | |||||||||
Option List: |
|
Draw ticks at grid line intersections (instead of drawing full lines).
Type | boolean |
---|---|
Default | false |
Inclusions |
|
This will draw grid lines at the very edges of the image.
Type | boolean |
---|---|
Default | false |
This will draw grid lines (or ticks) at the lat/lon extents of the image or those extents as provided by user input MINLAT, MAXLAT, MINLON, and MAXLON.
Type | boolean |
---|---|
Default | false |
If false, the grid will stop at the longitude domain boundary, -180 to 180 or 0 to 360, if the minimum or maximum longitude values are outside of the domain range. If true, the grid will extend all the way to the minimum and maximum longitudes regardless of the domain.
Type | boolean |
---|---|
Default | false |
Starting line of grid. This, along with BASESAMPLE, defines the starting point (line) for drawing the grid.
Type | integer |
---|---|
Default | 1 |
Minimum | 1 (inclusive) |
Starting sample of grid. This, along with BASELINE, defines the starting point (sample) for drawing the grid.
Type | integer |
---|---|
Default | 1 |
Minimum | 1 (inclusive) |
This defines the line increment when drawing the grid, starting at BASELINE. The line increment is the spacing between lines.
Type | integer |
---|---|
Default | 100 |
Minimum | 1 (inclusive) |
This defines the sample increment when drawing the grid, starting at BASESAMPLE. The sample increment is the spacing between samples.
Type | integer |
---|---|
Default | 100 |
Minimum | 1 (inclusive) |
This is the latitude on which LATINC is mathematically based. This establishes a starting point for a global 'virtual' grid where latitude lines are drawn where the input image intersects the virtual grid. The application assumes user input reflects proper units (e.g. planetographic, planetocentric latitude) as defined within the image.
Type | double |
---|---|
Default | 0.0 |
Minimum | -90.0 (inclusive) |
This is the longitude on which LONINC is mathematically based. This establishes a starting point for a global 'virtual' grid where longitude lines are drawn where the input image intersects the virtual grid.
Type | double |
---|---|
Default | 0.0 |
Minimum | -360.0 (inclusive) |
This defines the latitude increment, based on BASELAT, on which grid lines are drawn. This establishes a global 'virtual' grid where latitude lines are drawn only where the input image intersects the virtual grid.
Type | double |
---|---|
Default | 10.0 |
Minimum | 0.0 (inclusive) |
This defines the longitude increment, based on BASELON, on which grid lines are drawn. This establishes a global 'virtual' grid where longitude lines are drawn only where the input image intersects the virtual grid.
Type | double |
---|---|
Default | 10.0 |
Minimum | 0.0 (inclusive) |
This defines the minimum latitude to which longitude grid lines will extend. If BOUNDARY is selected, a latitude line will be drawn at this latitude.
Type | double |
---|---|
Internal Default | Automatic |
Minimum | -90 (inclusive) |
Maximum | 90 (inclusive) |
This defines the maximum latitude to which longitude grid lines will extend. If BOUNDARY is selected, a latitude line will be drawn at this latitude.
Type | double |
---|---|
Internal Default | Automatic |
Minimum | -90 (inclusive) |
Maximum | 90 (inclusive) |
Greater Than |
|
This defines the minimum longitude to which latitude grid lines will extend. If BOUNDARY is selected, a longitude line will be drawn at this longitude.
Type | double |
---|---|
Internal Default | Automatic |
Minimum | -360 (inclusive) |
Maximum | 360 (inclusive) |
This defines the maximum longitude to which latitude grid lines will extend. If BOUNDARY is selected, a longitude line will be drawn at this longitude.
Type | double |
---|---|
Internal Default | Automatic |
Minimum | -360 (inclusive) |
Maximum | 360 (inclusive) |
Greater Than |
|
This defines the thickness of grid lines in pixels.
Type | integer |
---|---|
Default | 1 |
Minimum | 1 (inclusive) |
Odd | This value must be an odd number |
With this option choose DN, LRS, HRS, or NULL to define how to assign the grid line value. Use DNVALUE parameter to assign a number if DN option is chosen.
Type | string | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Default | HRS | |||||||||||||||
Option List: |
|
This is the DN value to be used as the value of the grid lines when LINEVALUE=DN. It is beneficial to first run the stats application to determine image minimum and maximum values.
Type | double |
---|
This option allows for any DN value, HRS, LRS, or NULL special pixel values to be chosen as the background value.
Type | string | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Default | IMAGE | ||||||||||||||||||
Option List: |
|
This is the DN value to be used as the value of the background when BKGNDVALUE=DN. It may be beneficial to first run the stats application to determine image minimum and maximum values.
Type | double |
---|
Draw tick marks diagonally (creating an 'x'), instead of default vertical/horizontal ('+')
Type | boolean |
---|---|
Default | false |
This defines the width and height (which are always equal) of the tick marks in pixels.
Type | integer |
---|---|
Default | 5 |
Minimum | 1 (inclusive) |
Odd | This value must be an odd number |
Basic latitude/longitude graticule
Example GUI Screenshot of GUI with default parameters. |
Input file
Parameter Name:
From This is the ungridded input image. |
Gridded output file
Parameter Name:
TO This file is gridded every 10 degrees in latitude and longitude starting at 0.0 degree latitude and longitude. |
Simple rectangular grid
Example GUI Screenshot of GUI with parameter settings defined by the user. |
Input file
Parameter Name:
From This is the ungridded input image. |
Output file
Parameter Name:
TO The grid lines intersect at line 23 and sample 17, with vertical lines drawn every 30 pixels and horizontal lines every 40 pixels outward from the origin. |
Insert a graticule within the input image
Example GUI Screenshot of GUI with parameter settings defined by the user. |
Input file
Parameter Name:
From This is the ungridded input image. |
Output file
Parameter Name:
TO The grid lines intersect at 0.0 degree latitude and longitude, and increments every 2.5 degrees in latitude and longitude. The outer edges of the bounding box around the minimum and maximum extents are gridded (BOUND=YES). |
|
Second output file using BOUND=NO
Parameter Name:
TO
The grid lines intersect at 0.0 degree latitude and longitude, and increments
every 2.5 degrees in latitude and longitude. The outer edges of the
bounding box are not gridded (BOUND=NO). |
Sean Crosby | 2007-03-16 | Original version |
Steven Lambright | 2007-07-27 | Added category: Map Projection |
Steven Lambright | 2008-04-22 | Fixed problems with mapping outside of the projection space and with 0lat/0lon boundaries. |
Steven Lambright | 2008-05-12 | Removed references to CubeInfo |
Steven Lambright | 2008-06-12 | Added outline option |
Steven Lambright | 2009-01-06 | Changed how mode=ground works |
Steven Lambright | 2010-05-06 | Added TICKS options |
Steven Lambright | 2010-07-22 | Added LINEWIDTH option |
Mackenzie Boyd | 2011-01-21 | Added more line options, to change output to be HRS, LRS, NULL, or a DN. |
Steven Lambright | 2011-01-25 | Bug fixes for projections that use PositiveWest or Planetographic coordinate systems. The BASELAT and BASELON parameters are now expected to be in the units of the projection (if your cube has a planetographic latitude system, and baselat=50, then there will be a line at the planetographic latitude of 50). |
Steven Lambright | 2011-01-26 | Added BOUNDARY, MINLAT, MAXLAT, MINLON and MAXLON options. |
Steven Lambright | 2011-12-08 | Fixed a bug with the outline option. If the image had a larger number of samples than number of lines, all of the data at sample > number of lines would be considered a grid line. This could result in a large portion of the image losing legitimate DN values for the grid value. Fixes #607. |
Steven Lambright | 2012-01-04 | Tested and documented for the January 2012 release. The documentation updates included were recommended by Chris Isbell. |
Adam Licht | 2012-12-26 | Added functionality to choose the source of image background. Pixel Values for behind the grid can now be the image pixel value, HRS, LRS, NULL, or a DN. |
Steven Lambright | 2012-12-31 | Incorporated Adam Licht's changes into Isis. This included re-formatting to match current Isis 3 coding standards, removal of error checking of conditions that cannot happen, fixes with running in batch mode/resetting of variable states between runs, some re-positioning of parameter locations, and creating tests. These changes shouldn't break any existing scripts that utilize grid. Fixes #917. |
Moses Milazzo | 2013-03-24 | Added to documentation to alert the user to the fact that providing a poorly chosen starting point or grid increment may result in unexpected behavior. Fixes #178. |
Ella Mae Lee | 2013-07-18 | Updated the documentation and added examples. Fixes #178. |
Janet Barrett | 2014-06-23 | Modified so that the output cube characteristics are obtained from the input cube and/or cube characteristics specified on the command line. Fixes #2063. |
Kristin Berry | 2014-11-25 | Modified to work on Cubes with associated band-dependent camera models. Now when MODE="GROUND" on a Cube with a band-dependent camera model, the grid will be re-calculated for each band. Fixes #2191. |
Kristin Berry | 2017-02-16 | Fixed error introduced in last change which caused grid to no longer work on multi-band cubes without camera models (for example: a mosaic will not have a camera model.) Fixes #4586. |
Jesse Mapel | 2017-06-26 | Added a flag to extend the grid past the longitude domain boundary. Fixes #2185. |
Kaitlyn Lee | 2020-10-26 | Converted application and tests for Gtest conversion. |