Skip to contents

Retrieves validated survey data from Google Cloud Storage for multiple survey sources. This function fetches data stored in Parquet format from sources defined in the configuration.

Usage

get_validated_surveys(pars, sources = NULL)

Arguments

pars

A list representing the configuration settings, typically obtained from a YAML configuration file.

sources

Character vector specifying which survey sources to retrieve (e.g., "wcs", "wf", "ba"). If NULL (default), retrieves data from all available sources.

Value

A dataframe of validated survey landings from all requested sources, loaded from Parquet files.

Examples

if (FALSE) { # \dontrun{
config <- peskas.zanzibar.pipeline::read_config()
# Get all available validated surveys
all_validated <- get_validated_surveys(config)

# Get only WCS and BA validated surveys
some_validated <- get_validated_surveys(config, sources = c("wcs", "ba"))
} # }