DatasetNode {thredds}R Documentation

A class for a single datatset reference

Description

A direct Dataset representation that subclasses from ThreddsNode

Super class

thredds::ThreddsNode -> DatasetNode

Public fields

name

character, often the filename

dataSize

numeric, size in bytes

date

character, modification date

Methods

Public methods

Inherited methods

Method new()

initialize an instance of ServiceNode

Usage
DatasetNode$new(x, ...)
Arguments
x

url or xml2::xml_node

...

arguments for superclass initialization


Method GET()

Overrides the GET method of the superclass. GET is not permitted

Usage
DatasetNode$GET()
Returns

NULL


Method get_url()

Retrieve the relative URL for a dataset.

Usage
DatasetNode$get_url(
  service = c("dap", "opendap", "wms")[1],
  sep = c("/", "")[2],
  ...
)
Arguments
service

character, the service to use. (default 'dap' equivalent to 'opendap') Ignored if ‘urlPath' or 'href' is in the nodes’ attributes.

sep

character, typically "/" or "" (default), used for joined base_url to relative url

...

other arguments for DatasetNode$list_access

Returns

character


Method list_access()

list access methods

Usage
DatasetNode$list_access(xpath = build_xpath("access", prefix = self$prefix))
Arguments
xpath

charcater, xpath descriptor

Returns

named list of character vectors or NULL


Method print()

print method

Usage
DatasetNode$print(prefix = "")
Arguments
prefix

character, to be printed before each line of output (like spaces)

...

other arguments for superclass


Method clone()

The objects of this class are cloneable with this method.

Usage
DatasetNode$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Note

For examples see CatalogNode


[Package thredds version 0.1-4 Index]