qc_get_biome: Get the biome, temperature and precipitation of a site

View source: R/qc_coordinates_functions.R

qc_get_biomeR Documentation

Get the biome, temperature and precipitation of a site

Description

This function takes a data frame of site metadata, including latitude (lat) and longitude (lon) columns, gets climatic data from WorldClim 1.4 using the GSODR package and returns the same data frame with extra columns of mean annual temperature (si_mat), mean annual precipitation (si_map) and biome (si_biome) according to qc_get_biomes_spdf.

Usage

qc_get_biome(data, merge_deserts = FALSE, parent_logger = "test")

Arguments

data

Data frame of site metadata, including latitude (lat) and longitude (lon) columns that are used to obtain climatic data.

merge_deserts

Logical indicating if desert biomes should be merged in a single biome. By default, deserts are not merged.

Value

The same data frame with extra columns of mean annual temperature (si_mat), mean annual precipitation (si_map) and biome (si_biome)

See Also

Other Quality Checks Functions: create_dic(), qc_coordinates(), qc_data_results_table(), qc_ext_radiation(), qc_factor_values(), qc_get_biomes_spdf(), qc_get_timezone_coord(), qc_is_timestamp(), qc_md_cols(), qc_md_results_table(), qc_measured_sfn(), qc_pl_treatments(), qc_psi_N_nas(), qc_psi_SE_nas(), qc_psi_nas(), qc_set_timezone(), qc_simplify_questions(), qc_species_names_info(), qc_species_names(), qc_species_verification(), qc_start_process_psi(), qc_timestamp_nas()


vflo/PSIsapfluxnetQC1 documentation built on Feb. 15, 2024, 3:19 a.m.