Skip to contents

This function initializes attributes for a SeaSondeRAPM object, including metadata and properties.

Usage

seasonder_initializeAttributesSeaSondeRAPM(calibration_matrix, ...)

Arguments

calibration_matrix

A 2 x b complex matrix, where b is the number of bearings for calibration.

...

Additional named attributes that may override the defaults.

Value

A list containing initialized attributes for a SeaSondeRAPM object.

Details

The function initializes the following attributes:

  • quality_matrix: A 3 x b complex matrix for quality data, where b is the number of bearings.

  • BEAR: A numeric vector for bearings (degrees CCW from the site bearing).

  • Type: Character string for antenna pattern type.

  • Creator: Object creator name. Default is an empty character vector.

  • SiteName: Site name (not the same as SiteCode). Default is an empty character vector.

  • SiteOrigin: Numeric vector with two elements representing the Station GPS location. Default is c(0,0).

  • FileName: Default is an empty character vector.

  • CreateTimeStamp: APM file creation time. Default is current system date and time.

  • ProcessingSteps: Processing steps applied to this object. Default is an empty character vector.

  • AmplitudeFactors: Numeric vector with two elements for the amplitude factors. Default is c(0,0).

  • AntennaBearing: Site bearing (CW degrees from true north). Default is an empty numeric vector.

  • StationCode: 4-character station code. Default is an empty character vector.

  • BearingResolution: In degrees. Default is an empty numeric vector.

  • Smoothing: Numeric vector indicating smoothing applied to the antenna pattern. Default is an empty numeric vector.

  • CommentLine: Metadata lines in the data file not matching any other attribute. Default is an empty character vector.

  • FileID: File's UUID. Default is an empty character vector.

  • PhaseCorrections: Numeric vector with two elements for phase corrections. Default is c(0,0).

Examples

  # Initialize attributes for a dummy calibration matrix
  attrs <- seasonder_initializeAttributesSeaSondeRAPM(matrix(1:6, nrow = 3))