|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||
![]() |
![]() |
![]() |
![]() |
|
||||||||||||
|
|
|
|||||||||||||||
|
|
|
|||||||||||||||
|
|
|
|
||||||||||||||
|
|
|
|
|
|
|
|
|
|
||||||||
rivrangerivrange infile outfile top bottom left right
Descriptionrivrange extracts a rectangular region from the RivaFile infile and saves it in the RivaFile outfile. The rest of the RivaFile header is copied, and the NS and NL fields are updated with their new values. top and bottom are the starting and ending row indices; top must be less than bottom, and both must be less than NL. left and right are the starting and ending column indices; left must be less than right, and both must be less than NS.
UsageThe following listing shows how to extract a 15x15 pixel region from 'dem.riv':
Known Bugsrivrange ignores the presence of the latitude/longitude boundary fields LONG0, LAT0, LONG1, and LAT1, and does not update them properly. In the example above, note that 'dem2.riv' is only a small part of 'dem.riv', but incorrectly has the same latitude/longitude boundary.
See AlsoRivaFile Format, rivheader.
| ||||
|
||||
| ||||