r.pack(1grass)
π r.pack β the GRASS User's Manual situation π
okay bestie, gather round, because today we're talking about r.pack from the GRASS manual and honestly? it's giving "pack my whole raster map into a cute little file" energy. π
β¨ NAME β¨
r.pack β Exports a raster map as GRASS specific archive file ποΈ
π·οΈ KEYWORDS π·οΈ
raster, export, copying β¨
π SYNOPSIS π
r.pack
r.pack --help
r.pack [-c] input=name [output=name] [--overwrite] [--help]
[--verbose] [--quiet] [--ui]
π© Flags: π©
-cβ Switch the compression off. yes bestie, you can turn the squeeze OFF if that's the vibe you want π--overwriteβ Allow output files to overwrite existing files. it will simply Not Care about your old files, no cap π--helpβ Print usage summary. your lil cheat sheet π«Ά--verboseβ Verbose module output. it tells you EVERYTHING, main character behavior fr--quietβ Quiet module output. shhh π€« she's mysterious--uiβ Force launching GUI dialog. for when you want the pretty window instead of the terminal β¨
π Parameters: π
input=name[required] β Name of raster map to pack up. literally you HAVE to give her this one, no skipping πΈoutput=nameβ Name for output file (default is<input>.pack). optional, she'll pick a name herself if you don't π
π DESCRIPTION π
okay so here's the lore: r.pack collects raster map elements and support files and compressed them using gzip algorithm for copying. yes, the gzip algorithm β she's a classic, we love her π§
the resulting packed file can be afterwards unpacked within a GRASS session by r.unpack. so it's a whole matching-set situation, iconic honestly.
and here's the spicy part bestie β since the selected raster map is not exported but natively stored, the current region is not respected. π³ hence r.pack stores the entire raster map. all of it. the whole thing. periodt.
ngl do NOT come in here expecting your region setting to save you, because it will not π
β NOTES β
by default, the name of the pack file is determined from the input parameter. lowkey convenient.
optionally a different name can be given by output parameter β so if you're feeling extra, go off π
Currently only 2D raster maps are supported. like, 3D bestie? not today. not in this economy. π
π EXAMPLE π
Pack up the entire raster map aspect into aspect.pack file:
r.pack input=aspect
The packed raster map file aspect.pack can afterwards be unpacked by
r.unpack input=aspect.pack
see how clean that is?? obsessed. π₯Ή
π SEE ALSO π
r.unpack, r.in.gdal, g.copy, r.proj, v.unpack
π AUTHORS π
Original Bash script written by Hamish Bowman, Otago University, New Zealand π³πΏ
Converted to Python and updated for GRASS 7 by Martin Landa, Czech Technical University in Prague, Czech Republic π¨πΏ
(we stan both of them fr fr π«Ά)
π» SOURCE CODE π»
Available at: r.pack source code (history)
Latest change: Thursday Nov 06 22:27:54 2025 in commit: 298b38614712934179355ea767403d6bfea8f5f9
Main index | Raster index | Topics index | Keywords index | Graphical index | Full index
Β© 2003-2026 GRASS Development Team, GRASS 8.5.0 Reference Manual
and that's the whole page bestie!! π¦ this was r.pack(1grass) from the GRASS 8.5.0 Reference Manual β slay, stay packed, and don't forget to unpack later πβ¨π
π¦ where this page comes from
- alpine 3.24: grass-gis-doc 8.5.0-r1 Β· GPL-2.0-or-later
- ubuntu stonking: grass-doc 8.5.0-1ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms