View source: R/global_search.R
global_search | R Documentation |
Search for ERDDAP™ tabledap or griddap datasets from a list of ERDDAP™ servers based on search terms.
global_search(query, server_list, which_service)
query |
(character) Search terms |
server_list |
(list of character) List of ERDDAP™ servers to search |
which_service |
(character) One of tabledep or griddap. |
Uses the 'reddap' function ed_search() to search over the list of servers
If successful a dataframe wih columns:
title - the dataset title
dataset_id - the datasetid on that ERDDAP server
url - base url of dataset ERDDAP server
if urls are valid, no match is found, will return no match found else returns error message
HttpClient
# get list of servers know by
# https://irishmarineinstitute.github.io/awesome-erddap
# e_servers <- servers()$url
# select a couple to search
# e_servers <- e_servers[c(1, 40)]
# to meet CRAN time limits will only search 1 place
e_servers <- "https://coastwatch.pfeg.noaa.gov/erddap/"
test_query <- 'NOAA/NCDC Blended Monthly'
query_results <- global_search(test_query, e_servers, "griddap")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.