Note: A new GRASS GIS stable version has been released: GRASS GIS 7. Go directly to the new manual page here
i.points or i.vpoints must be run before i.rectify, and both programs are required to rectify an image. An image must be rectified before it can reside in a standard coordinate LOCATION, and therefore be analyzed with the other map layers in the standard coordinate LOCATION. Upon completion of i.rectify, the rectified image is deposited in the target standard coordinate LOCATION. This LOCATION is selected using i.target.
Enter the group containing files to be rectified Enter 'list' for a list of existing imagery groups Enter 'list -f' for a verbose listing Hit RETURN to cancel request >This is the same imagery group that was selected in i.points or i.vpoints and the group that contains the raster maps with the marked points and their associated map coordinates. You are then asked to select the raster map(s) within the group to be rectified:
Please select the file(s) to rectify by naming an output file spot1.1 in mapsetname ............. spot1.2 in mapsetname ............. spot1.3 in mapsetname ............. spotclass1 in mapsetname spotrectify1. spotreject1 in mapsetname ............. (enter list by any name to get a list of existing raster maps) AFTER COMPLETING ALL ANSWERS, HIT <ESC> TO CONTINUE (OR<Ctrl-C> TO CANCEL)More than one raster map may be rectified at a time. Each cell file should be given a unique output file name.
Next, you are asked to select one of two windows regions:
Please select one of the following options 1. Use the current window in the target location 2. Determine the smallest window which covers the image >The i.rectify program will only rectify that portion of the image or raster map that occurs within the chosen window region, and only that portion of the cell file will be relocated in the target database. It is important therefore, to check the current mapset window in the target LOCATION if choice number one is selected.
If you are rectifying a file with plans to patch it to another file using the GRASS program r.patch, choose option number one, the current window in the target location. This window, however, must be the default window for the target LOCATION. When a file being rectified is smaller than the default window in which it is being rectified, zeros are added to the rectified file. Patching files of the same size that contain 0/non-zero data, eliminates the possibility of a no-data line the patched result. This is because, when the images are patched, the zeros in the image are "covered" with non-zero pixel values. When rectifying files that are going to be patched, rectify all of the files using the same default window.
Select the order of transformation desired with the order option:
Select order of transformation --> 1st Order 2nd Order 3rd OrderThe program will immediately recalculate the RMSE and the number of points required.
The rectified data is resampled with one of five different methods: nearest, bilinear, cubic, bilinear_f or cubic_f.
The method=nearest method, which performs a nearest neighbor assignment, is the fastest of the three resampling methods. It is primarily used for categorical data such as a land use classification, since it will not change the values of the data cells. The method=bilinear method determines the new value of the cell based on a weighted distance average of the 4 surrounding cells in the input map. The method=cubic method determines the new value of the cell based on a weighted distance average of the 16 surrounding cells in the input map. The method=lanczos method determines the new value of the cell based on a weighted distance average of the 25 surrounding cells in the input map.
The bilinear, cubic and lanczos interpolation methods are most appropriate for continuous data and cause some smoothing. These options should not be used with categorical data, since the cell values will be altered.
In the bilinear, cubic and lanczos methods, if any of the surrounding cells used to interpolate the new cell value are NULL, the resulting cell will be NULL, even if the nearest cell is not NULL. This will cause some thinning along NULL borders, such as the coasts of land areas in a DEM. The bilinear_f, cubic_f and lanczos_f interpolation methods can be used if thinning along NULL edges is not desired. These methods "fall back" to simpler interpolation methods along NULL borders. That is, from lanczos to cubic to bilinear to nearest.
If nearest neighbor assignment is used, the output map has the same raster format as the input map. If any of the other interpolations is used, the output map is written as floating point.
If i.rectify starts normally but after some time the following text is seen:
GIS ERROR: error while writing to temp file
the user may try the flag -c (or the module needs more free space
on the hard drive).
g.transform,
r.proj,
v.proj,
i.group,
i.points,
i.vpoints,
i.target
gis.m: GEORECTIFY TOOL and
wxGUI: Manage Ground Control Points
Modified for GRASS 5.0 by:
Luca Palmeri (palmeri@ux1.unipd.it)
Bill Hughes
Pierre de Mouveaux (pmx@audiovu.com)
CMD mode by Bob Covill
Last changed: $Date: 2011-11-08 03:29:50 -0800 (Tue, 08 Nov 2011) $
Main index - imagery index - Full index
© 2003-2016 GRASS Development Team