Skip to contents

This function extracts the MUSIC algorithm parameters from a SeaSondeRCS object.

Usage

seasonder_getSeaSondeRCS_MUSIC_parameters(seasonder_cs_object)

Arguments

seasonder_cs_object

A SeaSondeRCS object containing MUSIC data as an attribute.

Value

A numeric vector of MUSIC parameters.

Details

The function checks for the presence of MUSIC parameters in the object's MUSIC_data attribute. If not found, it defaults to the values returned by seasonder_defaultMUSIC_parameters().

Examples

# Minimal example for seasonder_getSeaSondeRCS_MUSIC_parameters
cs_file <- system.file("css_data/CSS_TORA_24_04_04_0700.cs", package = "SeaSondeR")
apm_file <- system.file("css_data/MeasPattern.txt", package = "SeaSondeR")
apm_obj <- seasonder_readSeaSondeRAPMFile(apm_file)
#> seasonder_createSeaSondeRAPM:  APM object created successfully.
cs_obj <- seasonder_createSeaSondeRCS(cs_file, seasonder_apm_object = apm_obj)
#> new_SeaSondeRCS:  SeaSondeRCS object created successfully.
params <- seasonder_getSeaSondeRCS_MUSIC_parameters(cs_obj)
print(params)
#> [1] 40 20  2 20