GRASS logo

NAME

p.target.info - Display physical constants for a solar system body.
Reports radii, GM, rotation period, NAIF body-fixed frame name, and recommended GRASS map projection for a named planetary body. Use -j for JSON output or -g to print g.proj parameters.

KEYWORDS

Planetary, Utilities, body constants, SPICE, target

SYNOPSIS

p.target.info
p.target.info --help
p.target.info [-jg] body=string [--help] [--verbose] [--quiet] [--ui]

Flags:

-j
Print JSON output
-g
Print g.proj command for this body
--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--ui
Force launching GUI dialog

Parameters:

body=string [required]
Target body name
Options: Mercury, Venus, Moon, Mars, Phobos, Deimos, Vesta, Ceres, Enceladus, Titan, Pluto

Table of contents

DESCRIPTION

p.target.info prints physical and geometric properties of a planetary target body using SPICE PCK (Planetary Constants Kernel) data. For a given NAIF body name or ID, the module reads the PCK kernel and reports:

Optionally writes the properties to a GRASS raster's history metadata.

EXAMPLES

Print properties of Mars using pck00010.tpc:

p.target.info target=MARS pck=pck00010.tpc

Write Moon properties to a raster's metadata:

p.target.info target=MOON pck=pck00010.tpc \
    attach_to=lola_dem

REFERENCES

NOTES

PCK data coverage varies by body; body constants for recent missions are in pck00011.tpc (Cassini/Juno era). If the requested body is not in the loaded kernels the module exits with a SPICE error. Standard NAIF body IDs are used (Moon = 301, Mars = 499, Titan = 606); named aliases are resolved via the loaded FK kernel.

SEE ALSO

p.spiceinit, p.caminfo

AUTHOR

Yann Chemin

SOURCE CODE

Available at: p.target.info source code (history)

Accessed: Sunday Nov 15 11:06:17 2026


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

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