R/record_study_terrain_metadata.R
record_study_terrain_metadata.RdFills previously unknown elevation-unit and/or vertical-reference assertions. Saves new manifest/context snapshots without editing rasters, their CRS, observed metadata, fingerprints or event associations. Assertions are not independent verification, unit conversion or scientific acceptance.
record_study_terrain_metadata(
dsn,
output_file,
survey_event_id,
vertical_unit = NULL,
vertical_reference = NULL,
evidence,
analyst,
manifest_file,
report_file = NULL
)Existing saved Study Area context GeoPackage.
New context .gpkg beside dsn.
Exact event UUID with a selected terrain file.
Optional elevation-unit assertion. NULL or blank preserves the current value; never inferred from horizontal CRS or filename.
Optional vertical datum/reference assertion. NULL or blank preserves the current value. At least one new field is required.
Nonempty source/basis for the supplied metadata.
Nonempty attribution, not an approval signature.
New JSON beside the existing manifest.
Optional new HTML report.
List of context, report and manifest paths. Metadata belongs to the artifact and applies to every event sharing it. Existing known values cannot be replaced by this initial-entry tool. Partial knowledge remains explicit. Prior evidence is retained with appended attribution. Missing/changed or conflicted selected files are refused; unrelated findings remain visible. Outputs are not a single transaction: later failures retain already published manifest/context files for inspection. Never modify inputs concurrently.