get_era5_tme: Extract temperature data from ERA5 NetCDF file

View source: R/get_era5_tm.R

get_era5_tmeR Documentation

Extract temperature data from ERA5 NetCDF file

Description

This function retrieves mean monthly air temperature values associated with species occurrence records based on their geographic coordinates (lon/lat) and sampling date (year/month).

Usage

get_era5_tme(data, nc_file)

Arguments

data

A ⁠data frame⁠ containing species records. Must include lon, lat, year, and month columns.

nc_file

Full character path to the downloaded ERA5-Land raster (.nc) file.

Value

The input data frame data with a new column named (tme), containing the temperature values.


SppTrend documentation built on Feb. 7, 2026, 5:07 p.m.