Returns the contents of the requested url as a NetCDF file downloaded to disk or the current status of the requested transfer.

rs_transfer(task_id, user, path = tempdir(), verbose = TRUE)

Arguments

task_id

R6 rs_request) query output or task id

user

user (email address) used to sign up for the AppEEARS data service, used to retrieve the token set by rs_set_key.

path

path were to store the downloaded data

verbose

show feedback on data transfers

Value

data on disk as specified by a rs_request

Author

Koen Hufkens

Examples


if (FALSE) {
# set key
rs_set_key(user = "test", password = "123")

# request data and grab url and try a transfer
r <- rs_request(request, "test", transfer = FALSE)

# check transfer, will download if available
rs_transfer(r$get_task_id(), user = "test")
}