| 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
namecharacter, often the filename
dataSizenumeric, size in bytes
datecharacter, modification date
Methods
Public methods
Inherited methods
Method new()
initialize an instance of ServiceNode
Usage
DatasetNode$new(x, ...)
Arguments
xurl 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
servicecharacter, the service to use. (default 'dap' equivalent to 'opendap') Ignored if ‘urlPath' or 'href' is in the nodes’ attributes.
sepcharacter, 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
xpathcharcater, xpath descriptor
Returns
named list of character vectors or NULL
Method print()
print method
Usage
DatasetNode$print(prefix = "")
Arguments
prefixcharacter, 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
deepWhether to make a deep clone.
Note
For examples see CatalogNode