importConstellations()
Each non-comment line contains a unique figure identifier, the number of segments, then two Hipparcos numbers per segment. Endpoints describe separate pairs, not one continuous polygon. Blank lines and comments beginning with a hash are ignored. Non-negative segment counts and positive integer HIP identifiers are validated. Zero-segment records are retained with an empty HIP field and skipped when drawn. Repeated endpoints represent a single-star figure, drawn as a small ring. This supports Stellarium's legacy constellationship.fab format, not the JSON sky-culture format introduced in Stellarium 25.1. Only lines are imported, not artwork, labels, boundaries or star positions. Endpoint stars must be in skyscapeR's stellar catalogue; unavailable stars produce warnings when drawn. The import does not modify the bundled catalogue or register global names. Save the returned object with saveRDS(), or load the file in each script. Respect the source sky culture's attribution and redistribution terms.
Method references
Stellarium User Guide, Adding Sky Cultures (legacy editions) and Sky Cultures (current editions): https://stellarium.org/guide/. Legacy example: https://github.com/Stellarium/stellarium/blob/v0.22.2/skycultures/western/constellationship.fab.
Interpretation and limits. A drawn figure expresses a chosen connection between catalogue stars. Endpoints, projection and cultural attribution must be documented separately from any claim that the figure was visible together at a particular instant.
Implementation arguments, return value and documented modes
| Argument | Formal default | Behaviour in this interface |
|---|---|---|
file |
— | Path to a Stellarium legacy constellationship.fab text file. |
set |
"custom" |
Label for this collection, default "custom". |
Return value
A data frame with the same columns as constellations, accepted by
the display$constellations setting of sketchSky or the
constellations argument of planisphere. Subset rows to select individual figures.
Implementation. R/importConstellations.R. Full function help · Sky reconstruction · Sky brightness and visualisation outline · Constellation selection and planisphere geometry · Compare constellation patterns