Retrieve MUSIC Parameters from a SeaSondeRCS Object
Source:R/SeaSondeRCS_MUSIC.R
seasonder_getSeaSondeRCS_MUSIC_parameters.Rd
This function extracts the MUSIC algorithm parameters from a SeaSondeRCS object.
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