r.out.gdal also supports the export of multiband rasters through a group (created e.g. with i.group), when the group's name is entered as input.
AAIGrid: Arc/Info ASCII Grid BMP: MS Windows Device Independent Bitmap BSB: Maptech BSB Nautical Charts DTED: DTED Elevation Raster ELAS: ELAS ENVI: ENVI .hdr Labelled FIT: FIT Image GIF: Graphics Interchange Format (.gif) GTiff: GeoTIFF HDF4Image: HDF4 Dataset HFA: Erdas Imagine Images (.img) JPEG2000: JPEG-2000 part 1 (ISO/IEC 15444-1) JPEG: JPEG JFIF MEM: In Memory Raster MFF2: Atlantis MFF2 (HKV) Raster MFF: Atlantis MFF Raster NITF: National Imagery Transmission Format PAux: PCI .aux Labelled PCIDSK: PCIDSK Database File PNG: Portable Network Graphics PNM: Portable Pixmap Format (netpbm) VRT: Virtual Raster XPM: X11 PixMap Format
To specify multiple options use a comma separated list (createopt="TFW=YES,COMPRESS=DEFLATE").
Out of the GDAL data types, the closest match for GRASS CELL, FCELL and DCELL rasters are respectively Int32, Float32 and Float64. These are not exact equivalents, but they will preserve the max possible data range and number of decimal places for each respective GRASS raster data type. Please keep in mind, that not all CELL rasters will require Int32 - e.g., 0-255 CELL raster are covered by the Byte type as well. Moreover, some GDAL-supported formats do not support all the data types possible in GDAL and GRASS. Use r.info to check the data type and range for your GRASS raster, refer to specific format documentation (GDAL website, format vendor's docs) and e.g. the Wikipedia article Typical boundaries of primitive integral types for details.
r.out.gdal input=roads output=roads.tif type=UInt16
r.out.gdal in=elevation.10m out=ned_elev10m.tif type=Float64 createopt="INTERLEAVE=PIXEL,TFW=YES"
r.out.gdal input=elevation.10m output=elev_dem10.img format=HFA type=Float32
Last changed: $Date: 2007-10-11 00:27:27 -0500 (Чт, 11 окт 2007) $