other versions
- jessie 6.4.4-1
- stretch 7.2.0-2
- testing 7.6.0-1
- unstable 7.6.0-1
- experimental 7.6.1-1~exp1
r.in.bin(1grass) | Grass User's Manual | r.in.bin(1grass) |
NAME¶
r.in.bin - Import a binary raster file into a GRASS raster map.KEYWORDS¶
raster, importSYNOPSIS¶
r.in.binFlags:¶
- -f
-
- -d
-
- -s
-
- -b
-
- -h
-
- --overwrite
-
- --verbose
-
- --quiet
-
Parameters:¶
- input=string
-
- output=name
-
- title=phrase
-
- bytes=integer
-
- order=string
-
- north=float
-
- south=float
-
- east=float
-
- west=float
-
- rows=integer
-
- cols=integer
-
- anull=float
-
DESCRIPTION¶
r.in.bin allows a user to create a (binary) GRASS raster map layer from a variety of binary raster data formats. The -s flag is used for importing two's-complement signed data. The -h flag is used to read region information from a Generic Mapping Tools (GMT) type binary header. It is compatible with GMT binary grid types 1 and 2. The north, south, east, and west field values entered are the coordinates of the edges of the geographic region. The rows and cols field values entered describe the dimensions of the matrix of data to follow. If input is a GMT binary array (-h flag), the six dimension fields are obtained from the GMT header. If the bytes field is entered incorrectly an error will be generated suggesting a closer bytes value. r.in.bin can be used to import numerous binary arrays including: ETOPO30, ETOPO-5, ETOPO-2, Globe DEM, BIL, AVHRR and GMT binary arrays (ID 1 & 2)NOTES¶
If optional parameters are not supplied, r.in.bin attempts to calculate them. For example if the rows and columns parameters are not entered, r.in.bin automatically calculates them by subtracting south from north and west from east. This will only produce correct results if the raster resolution equals 1. Also, if the north, south, east, and west parameters are not entered, r.in.bin assigns them from the rows and columns parameters. In the above AVHRR example, the raster would be assigned a north=128, south=0, east=128, west=0. The geographic coordinates north, south, east, and west describe the outer edges of the geographic region. They run along the edges of the cells at the edge of the geographic region and not through the center of the cells at the edges. Eastern limit of geographic region (in projected coordinates must be east of the west parameter value, but in geographical coordinates will wrap around the globe; user errors can be detected by comparing the ewres and nsres values of the imported map layer carefully).EXAMPLES¶
GTOPO30 DEM¶
The following is a sample call of r.in.bin to import GTOPO30 DEM data:GMT¶
The following is a sample call of r.in.bin to import a GMT type 1 (float) binary array:AVHRR¶
The following is a sample call of r.in.bin to import an AVHRR image:ETOPO2¶
The following is a sample call of r.in.bin to import ETOPO2 DEM data (here full data set):TOPEX/SRTM30 PLUS¶
The following is a sample call of r.in.bin to import SRTM30 PLUS data:bytes=2 north=40 south=-10 east=60 west=20 r=6000 c=4800
SEE ALSO¶
r.out.bin, r.in.ascii, r.out.ascii, r.in.arc, r.out.arc, r.in.gdal, r.out.gdal, r.in.srtmAUTHORS¶
Jacques Bouchard, France (bouchard@onera.fr)GRASS 6.4.4 |