GRASS logo

NAME

p.out.pds4 - Export a GRASS raster map to a PDS4 GeoTIFF + companion XML label.

KEYWORDS

raster, export, PDS4, GeoTIFF, planetary, cartography

SYNOPSIS

p.out.pds4
p.out.pds4 --help
p.out.pds4 input=name output=string [body=string] [title=string] [lid=string] [type=string] [--help] [--verbose] [--quiet] [--ui]

Flags:

--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--ui
Force launching GUI dialog

Parameters:

input=name [required]
Input GRASS raster map to export
output=string [required]
Output file base path (without extension; .tif and .xml will be added)
body=string
Target planetary body name (used for radii and CRS label)
Default: mars
title=string
Product title for the PDS4 label
lid=string
PDS4 Logical Identifier (LID) excluding urn:nasa:pds: prefix
type=string
GDAL output data type
Options: Byte, Int16, UInt16, Int32, Float32, Float64
Default: Float32

Table of contents

DESCRIPTION

p.out.pds4 exports a GRASS raster map as a PDS4 data product: a GeoTIFF data file and a companion XML label conforming to the PDS4 Information Model (IM 1.21) with the PDS4 Cartography (cart) local data dictionary.

The GeoTIFF is written with a planetary-body CRS (PROJ spherical lat/lon using the body's equatorial and polar radii from the bodies/ JSON database). The XML label records the bounding coordinates, pixel resolution, geodetic model, and — when a planetary.json metadata sidecar is present for the input map — the sensor, mission, and observational time.

OUTPUT FILES

Two files are written, sharing the same base path:

PARAMETERS

Parameter Default Description
input= required GRASS raster map to export
output= required Output file base path (no extension)
body= mars Target planetary body (radii source)
title= auto Product title for the PDS4 label
lid= auto PDS4 Logical Identifier (after urn:nasa:pds:)
type= Float32 GDAL data type (Byte, Int16, UInt16, Int32, Float32, Float64)

NOTES

EXAMPLES

Export a CRISM-derived olivine band depth map for Mars:

p.out.pds4 input=crism_bd_olivine output=/data/archive/crism_bd_olivine \
    body=mars title="CRISM olivine band depth, Nili Fossae"

Export a Moon M3 IBD1000 map:

p.out.pds4 input=m3_ibd1000 output=/data/archive/m3_ibd1000 \
    body=moon title="M3 IBD1000 — Sinus Iridum region"

SEE ALSO

p.in.pds4, p.in.pds3, p.mineral.indices, r.out.gdal

SOURCE CODE

Available at: p.out.pds4 source code (history)

Accessed: Sunday Nov 15 11:06:03 2026


Main index | Paint index | Topics index | Keywords index | Graphical index | Full index

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