Skip to contents

Setter for PhaseCorrections

Usage

seasonder_setSeaSondeRAPM_PhaseCorrections(seasonde_apm_obj, new_value)

Arguments

seasonde_apm_obj

SeaSonderAPM object

new_value

new value

Value

The modified SeaSondeRAPM object with updated PhaseCorrections.

Examples

# Minimal example for seasonder_setSeaSondeRAPM_PhaseCorrections
apm_file <- system.file("css_data/MeasPattern.txt", package = "SeaSondeR")
apm_obj <- seasonder_readSeaSondeRAPMFile(apm_file)
#> seasonder_createSeaSondeRAPM:  APM object created successfully.
new_phase_corrections <- attributes(apm_obj)$PhaseCorrections
apm_obj <- seasonder_setSeaSondeRAPM_PhaseCorrections(apm_obj, new_phase_corrections)
print(attributes(apm_obj)$PhaseCorrections)
#> [1] -12.2 -37.6