Skip to contents

This function trims a specified number of points from the beginning and end of the antenna pattern data.

Usage

seasonder_trimAPM(seasonder_apm_object, trimming)

Arguments

seasonder_apm_object

A SeaSonde RAPM object containing the antenna pattern data.

trimming

The number of points to trim from each end.

Value

The SeaSonde RAPM object with trimmed antenna pattern data and updated attributes.

Examples

# Trim loops for a test SeaSondeRAPM object
apm_file <- system.file("css_data/MeasPattern.txt", package = "SeaSondeR")
obj <- seasonder_readSeaSondeRAPMFile(apm_file)
#> seasonder_createSeaSondeRAPM:  APM object created successfully.
trimmed_obj <- seasonder_trimAPM(obj, 3)