Skip to contents

This function constructs a new SeaSondeRCS object with the provided header and data information, initializing default values for various attributes including processing steps, FOR and MUSIC data, noise level, APM, and reference noise normalized limits estimation interval.

Usage

new_SeaSondeRCS(header, data, seasonder_apm_object = NULL)

Arguments

header

A list containing header information for the SeaSondeRCS object.

data

A list containing the data fields for the SeaSondeRCS object.

seasonder_apm_object

An optional object representing the APM (Antenna Pattern Matrix or similar metadata). If provided, it is assigned to the SeaSondeRCS object; otherwise, the APM attribute is set to NULL.

Value

A SeaSondeRCS object with version 1 containing the specified header, data, and default-initialized attributes.

Details

The object is created with the following components:

  • header: Initially set to an empty list, then populated by seasonder_setSeaSondeRCS_header.

  • data: Initially set to an empty list, then populated by seasonder_setSeaSondeRCS_data.

  • version: Set to 1.

  • ProcessingSteps: A character vector to log processing steps.

  • FOR_data and MUSIC_data: Initialized as empty lists.

  • NoiseLevel: Set using seasonder_defaultCSNoiseLevel().

  • APM: Set to seasonder_apm_object if provided.

  • interpolated_doppler_cells_index: An integer vector initialized as empty.

  • reference_noise_normalized_limits_estimation_interval: Set using seasonder_defaultCSReference_noise_normalized_limits_estimation_interval().

  • The object's class is set to c("SeaSondeRCS", "list").

After constructing the base object, the function updates the header and data attributes, initializes FOR parameters, and sets up the FOR configuration by calling seasonder_initSeaSondeRCS_FOR. A processing step message is logged to indicate successful creation.