dot-pull_env: Pull environmental data from IMOS THREDDS server and save to...

.pull_envR Documentation

Pull environmental data from IMOS THREDDS server and save to local system

Description

Accesses and download environmental data from the IMOS THREDDS server

Usage

.pull_env(
  dates,
  study_extent,
  var_name,
  folder_name = NULL,
  .cache,
  .crop,
  .nrt = FALSE,
  .output_format = ".grd",
  .parallel = TRUE,
  .ncores = NULL,
  verbose = TRUE
)

Arguments

dates

detection data source in data frame with at the minimum a X, Y and date time field

study_extent

terra::ext object defining the study area from which environmental data should be cropped

var_name

variable needed options include current options ('rs_sst', 'rs_sst_interpolated', 'rs_salinity', 'rs_chl', 'rs_turbidity', 'rs_npp', 'rs_current', 'bathy', 'dist_to_land')

folder_name

name of folder within 'imos.cache' where downloaded rasters should be saved. default NULL produces automatic folder names based on study extent

.cache

should the extracted environmental data be cached within the working directory?

.crop

should the extracted environmental data be cropped to within the study site

.nrt

should NRT Ocean Current data be used if DM data is not available for certain years?

.output_format

File type for cached environmental layers. See writeFormats. The default format is 'raster'.

.parallel

should the environmental data download be conducted in parallel to speed up the process? Currently, parallel processing is only supported when downloading 'rs_current' data.

.ncores

Details

Internal function to download environmental raster layers from IMOS Thredds server (http://thredds.aodn.org.au/)

Value

a SpatRaster object with daily spatial environmental layers associated with detection dates


IMOS-AnimalTracking/remora documentation built on Jan. 29, 2025, 4:38 p.m.