safe_ncvar_get: A wrapper to ncdf4::ncvar_get() that will pause and try again...

View source: R/data_extraction_functions.R

safe_ncvar_getR Documentation

A wrapper to ncdf4::ncvar_get() that will pause and try again several times (defaulting to 12) if it is a web-served netcdf file and at first it fails, to overcome temporary net access errors or DAP errors.

Description

Parameters before 'tries' are passed unlist(month.day.year(start_date))

Usage

safe_ncvar_get(
  nc,
  varid = NA,
  start = NA,
  count = NA,
  verbose = FALSE,
  signedbyte = TRUE,
  collapse_degen = TRUE,
  raw_datavals = FALSE,
  tries = 20
)

Arguments

tries

number of times to retry (increasing pause length by one second each time. Default 4

Value

variable extracted using ncvar_get()


BarbaraRobson/ereefs documentation built on April 23, 2023, 5:47 a.m.