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