Preprocess species and enrich batch parameters
preprocess_species_wrapper.RdWrapper around BirdFlowR::preprocess_species() that also derives output
paths, writes/moves the preprocessed HDF5, and returns an augmented params
list.
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$specieswithebirdst::get_species().Creates
hdf_dirandoutput_pathif missing.Copies (or renames) the preprocessed HDF5 from
tempdir()intohdf_dir.
Examples
if (FALSE) { # \dontrun{
p <- set_pipeline_params(species = "amewoo", res = 150)
p2 <- preprocess_species_wrapper(p)
} # }