safe_nc_open: A wrapper to ncdf4::nc_open() that will pause and try again...

View source: R/data_extraction_functions.R

safe_nc_openR Documentation

A wrapper to ncdf4::nc_open() that will pause and try again up to 119 times if at first it fails, to overcome temporary net access errors or DAP errors.

Description

Parameters before 'tries' are passed through to ncvar_get

Usage

safe_nc_open(filename, tries = 4)

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.