Skip to contents

This method creates a SeaSondeRCS object directly from a list containing the header and data.

Usage

# S3 method for class 'list'
seasonder_createSeaSondeRCS(x, specs_path = NULL, ...)

Arguments

x

A list with components header and data required for constructing the SeaSondeRCS object.

specs_path

Not used for list inputs.

...

Additional parameters that may be used for setting object attributes.

Value

A SeaSondeRCS object.

Details

The function creates a new SeaSondeRCS object using new_SeaSondeRCS with the provided header and data. It then appends a processing step, generated by SeaSondeRCS_creation_step_text("list"), to the object via seasonder_setSeaSondeRCS_ProcessingSteps.

Examples

# Given a list with header and data, create a SeaSondeRCS object
cs_file <- system.file("css_data/CSS_TORA_24_04_04_0700.cs", package = "SeaSondeR")
specs_path <- seasonder_defaultSpecsFilePath("CS")
temp_obj <- seasonder_readSeaSondeCSFile(cs_file, specs_path)
cs_list <- list(header = temp_obj$header, data = temp_obj$data)
rcs_object <- seasonder_createSeaSondeRCS(cs_list)