r.pack(1)

πŸ’– r.pack(1) β€” GRASS GIS User's Manual πŸ’–

okay bestie, pull up a chair, we're talking about r.pack from the GRASS GIS manual, and honestly? she's a whole vibe. ✨

🌸 NAME 🌸

r.pack β€” exports a raster map as a GRASS GIS 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. no compression, no problem 🫢
  • --overwrite β€” allow output files to overwrite existing files (yes, she will absolutely bulldoze what's already there, so be aware πŸ‘€)
  • --help β€” print usage summary
  • --verbose β€” verbose module output
  • --quiet β€” quiet module output
  • --ui β€” force launching GUI dialog

🧸 Parameters 🧸

  • input=name [required] β€” name of raster map to pack up. you literally cannot skip this one, bestie, it's required fr fr
  • output=name β€” name for output file (default is <input>.pack)

πŸ’« DESCRIPTION πŸ’«

so what does she actually do? r.pack collects raster map elements and support files and compressed them using gzip algorithm for copying. πŸ¦‹

the resulting packed file can afterwards be unpacked within a GRASS GIS session by r.unpack. cute, right? it's giving round trip. πŸ”₯

here's the part you gotta remember though: 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. no region clipping, no shortcuts. periodt. πŸ’…


πŸ“ NOTES πŸ“

by default, the name of the pack file is determined from the input parameter. optionally a different name can be given by output parameter. πŸŽ€

currently only 2D raster maps are supported. that's it, that's the note. ngl, 2D only, bestie. πŸ™ˆ


🌈 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? iconic. ate that. πŸ‘‘


πŸ‘€ 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

πŸ“¦ SOURCE CODE πŸ“¦

available at: r.pack source code (history)

accessed: Saturday Jan 17 05:41:52 2026

main index | raster index | topics index | keywords index | graphical index | full index

Β© 2003-2025 GRASS Development Team, GRASS GIS 8.4.2 Reference Manual πŸ’œ


and that's the whole page, bestie!! πŸ’– this was GRASS 8.4.2, page r.pack(1), and you now know her better than she knows herself. slay, go pack something. πŸŽ€βœ¨πŸ’…

πŸ“¦ where this page comes from