relinkHor()

Function index

A saved horizon records the checksum of its displayed PNG. Copy that PNG with the RDS, including the levelled copy for a calibrated photograph. Matching checks file contents, so a renamed file can be recovered and different panoramas with the same filename can be distinguished. For identical copies, the original basename is preferred, then the first matching candidate. A skyline-only horizon passes through unchanged. If any required image cannot be verified, the function stops before returning a result. Assign the returned object and use saveRDS() to keep the updated paths. The original PeakFinder archive used for native-layout export is separate.

Retaining panorama calibration and provenance.

Implementation arguments, return value and documented modes
Argument Formal default Behaviour in this interface
hor —

A skyscapeR.horizon object or a list of horizon objects.

path —

A directory containing the moved PNGs, or a character vector of PNG filenames in any order.

recursive FALSE

Search subdirectories when path names a directory. Defaults to FALSE.

Return value

The horizon or list, retaining its names, order and metadata with updated absolute PNG paths.

Implementation. R/relinkHor.R. Full function help · Terrain horizons · Terrain horizons and panoramas outline · Photographic calibration and interchange · Generating a terrain panorama