Skip to contents

This function extracts the MUSIC options from a SeaSondeRCS object.

Usage

seasonder_getMUSICOptions(seasonder_cs_object)

Arguments

seasonder_cs_object

A SeaSondeRCS object containing MUSIC data as an attribute.

Value

A list of MUSIC options.

Details

The function retrieves the MUSIC options from the object's MUSIC_data attribute. In the absence of user-defined options, it returns the default options provided by seasonder_defaultMUSICOptions().

Examples

# Minimal example for seasonder_getMUSICOptions
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.
opts <- seasonder_getMUSICOptions(cs_obj)
print(opts)
#> $PPMIN
#> NULL
#> 
#> $PWMAX
#> NULL
#> 
#> $smoothNoiseLevel
#> [1] FALSE
#> 
#> $doppler_interpolation
#> [1] 2
#> 
#> $MUSIC_parameters
#> [1] 40 20  2 20
#> 
#> $discard_low_SNR
#> [1] TRUE
#> 
#> $discard_no_solution
#> [1] TRUE
#>