Skip to contents

Wrapper around BirdFlowR::preprocess_species() that also derives output paths, writes/moves the preprocessed HDF5, and returns an augmented params list.

Usage

preprocess_species_wrapper(params)

Arguments

params

A parameter list, typically from set_pipeline_params().

Value

The modified params containing, among others: res, ebirdst_year, output_fullname, hdf_dir, output_path, geom, and metadata.

Details

Side effects:

  • Resolves params$species with ebirdst::get_species().

  • Creates hdf_dir and output_path if missing.

  • Copies (or renames) the preprocessed HDF5 from tempdir() into hdf_dir.

Examples

if (FALSE) { # \dontrun{
p <- set_pipeline_params(species = "amewoo", res = 150)
p2 <- preprocess_species_wrapper(p)
} # }