Skip to contents

This function assigns First Order Region (FOR) data to a SeaSondeRCS object. The FOR data is stored within the object's attributes under the "FOR_data" element. Currently, no explicit validation is performed on the provided FOR data.

Usage

seasonder_setSeaSondeRCS_FOR(seasonder_cs_object, FOR)

Arguments

seasonder_cs_object

A SeaSondeRCS object containing spectral and metadata information.

FOR

A data structure containing the First Order Region (FOR) data. This is typically a list with elements such as negative_FOR and positive_FOR representing Doppler bin indices.

Value

The updated SeaSondeRCS object with the specified FOR data stored in its attributes.

Details

This low-level setter function updates the SeaSondeRCS object by assigning the provided FOR data to the "FOR" field within the object's "FOR_data" attribute. It is intended to be used internally as part of the FOR processing workflow.

Examples

# Set sample file paths
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")
# Read the antenna pattern file to create a SeaSondeRAPM object
apm_obj <- seasonder_readSeaSondeRAPMFile(apm_file)
#> seasonder_createSeaSondeRAPM:  APM object created successfully.
# Create a SeaSondeRCS object from a spectral file
cs_obj <- seasonder_createSeaSondeRCS(cs_file, seasonder_apm_object = apm_obj)
#> new_SeaSondeRCS:  SeaSondeRCS object created successfully.
sample_FOR <- list(
  negative_FOR = c(1, 2, 3),
  positive_FOR = c(10, 11, 12)
)
cs_obj <- seasonder_setSeaSondeRCS_FOR(cs_obj, sample_FOR)