seasonder_validateCSHeaderStructure {SeaSondeR}R Documentation

Validate the Header of CrossSpectra Data

Description

This function validates the structure of a header list that is expected to represent the metadata for a cross spectra file. It checks if the header is indeed a list and whether mandatory elements, such as the number of range cells and the number of Doppler cells, are present.

Usage

seasonder_validateCSHeaderStructure(header)

Arguments

header

A list representing the header metadata of a cross spectra file.

Value

Invisible NULL if the header structure is valid. Otherwise, an error is thrown.

Details

The function primarily checks for two conditions:

Condition Management

This function utilizes the rlang package to manage conditions and provide detailed and structured condition messages:

Condition Classes:

Examples

header <- list(nRangeCells = 100, nDopplerCells = 256)
seasonder_validateCSHeaderStructure(header)

[Package SeaSondeR version 0.2.8 Index]