GRASS logo

NAME

i.hyper.export - Export 3D hyperspectral raster map as multi-band GeoTIFF, HDF5, Zarr, or native .ihyper gzip archive.

KEYWORDS

raster3d, export, output, voxel

SYNOPSIS

i.hyper.export
i.hyper.export --help
i.hyper.export [-c] input=name output=name [format=string] [chunks=string] [--overwrite] [--help] [--verbose] [--quiet] [--ui]

Flags:

-c
Include existing related composites in .ihyper export
--overwrite
Allow output files to overwrite existing files
--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--ui
Force launching GUI dialog

Parameters:

input=name [required]
Input 3D raster map
output=name [required]
Output file name
format=string
Export format
Options: gtiff, ihyper, h5, zarr
Default: ihyper
chunks=string
Chunk sizes in band,row,col order (first value is the spectral axis; used only for h5 and zarr, 0 = automatic)
Default: 0,0,0

Table of contents

DESCRIPTION

i.hyper.export exports a hyperspectral 3D raster map (raster_3d) from GRASS to an external file. By default, the module writes a native .ihyper gzip archive. It also supports export to compressed multi-band GeoTIFF, HDF5, or Zarr.

The export process converts the 3D raster map into 2D raster slices using r3.to.rast, creates a temporary imagery group, and writes all bands into a single multi-band GeoTIFF file with r.out.gdal. All temporary rasters and groups are automatically removed after export.

i.hyper.export can also write a native .ihyper gzip archive for exact transfer of a hyperspectral raster_3d (inspired by r.pack). This stores the full map in native GRASS form together with hyper.json; related composites can be included optionally, but are not exported by default. HDF5 and Zarr exports write the cube in (band,row,col) order, where the first axis is the spectral axis.

FUNCTIONALITY

NOTES

OPTIONS

EXAMPLES

# Example 1: Export PRISMA 3D raster map to native .ihyper archive (default)
i.hyper.export input=prisma@PERMANENT \
               output=/data/prisma_3d.ihyper
# Export native hyperspectral archive
i.hyper.export input=p2ld \
               output=/data/hyperspectral_data.ihyper \
               format=ihyper

# Export native hyperspectral archive and include existing composites
i.hyper.export input=p2ld \
               output=/data/hyperspectral_data.ihyper \
               format=ihyper -c

# Export as HDF5 cube with explicit chunk sizes in band,row,col order
i.hyper.export input=p2ld \
               output=/data/hyperspectral_data.h5 \
               format=h5 \
               chunks=8,256,256

# Export as Zarr cube with automatic chunk sizes
i.hyper.export input=p2ld \
               output=/data/hyperspectral_data.zarr \
               format=zarr \
               chunks=0,0,0

OUTPUT

The output is a native .ihyper archive by default, or a multi-band GeoTIFF, HDF5, or Zarr dataset when format= is set explicitly. GeoTIFF uses compression (DEFLATE + PREDICTOR=3) and stores per-band hyperspectral metadata. HDF5 and Zarr store the full cube in (band,row,col) order together with embedded metadata.

SEE ALSO

i.hyper.import, i.hyper.preproc, i.hyper.metadata, i.hyper.explore, r.pack

AUTHORS

Alen Mangafić and Tomaž Žagar, Geodetic Institute of Slovenia

SOURCE CODE

Available at: i.hyper.export source code (history)

Latest change: Wednesday Jun 17 14:05:16 2026 in commit: 2b69c1e5403d2a3377c287af027fcbad020a088c


Main index | Imagery index | Topics index | Keywords index | Graphical index | Full index

© 2003-2026 GRASS Development Team, GRASS 8.5.1dev Reference Manual