Recurse through a catalog.xml to find dataset links
get_dataset_links.RdSimulates clicking through the catalog as viewed in the brower, but by examing web links.
Arguments
- url
the top level URL to start searching
- .test
boolean, used in testing to only recurse 2 levels at maximum
Examples
if (FALSE) {
url_root <-
file.path('https://dapds00.nci.org.au/thredds/catalog',
'ua6_4/CMIP5/derived/Collections/Projected_Change_Data')
datasets_many <- get_dataset_links(url = url_root)
url_root <-
file.path('https://dapds00.nci.org.au/thredds/catalog',
'ua6_4/CMIP5/derived/Collections/Projected_Change_Data/Drought')
datasets_drought <- get_dataset_links(url = url_root)
}