-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
567b4e8
commit c813c4d
Showing
23 changed files
with
561 additions
and
801 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
Package: gsdata | ||
Type: Package | ||
Title: Accessing Data from Geosphere Austria | ||
Version: 0.0-6 | ||
Date: 2023-08-03 | ||
Title: Interface to the GeoSphere Austria DataHub API (Data Access) | ||
Version: 0.0-7 | ||
Date: 2024-01-23 | ||
Authors@R: | ||
person(given = "Reto", family = "Stauffer", role = c("cre", "aut"), | ||
email = "[email protected]", | ||
comment = c(ORCID = "0000-0002-3798-5507")) | ||
Maintainer: Reto Stauffer <[email protected]> | ||
Depends: httr, zoo, sf, parsedate | ||
Description: Package to download data from the Geosphere data hub (formerly known as ZAMG; Austrian National Weather Service). Currently solely allows to download station data (no gridded data). More details about the data sets can be found on <https://data.hub.zamg.ac.at/> as well as in the API documentation available via <https://dataset.api.hub.zamg.ac.at/v1/docs/?anonymous=true>. | ||
License: GPL-2 | GPL-3 | ||
Suggests: utils, ncdf4, stars, knitr, rmarkdown, tinytest | ||
Description: Package to download data from the Geosphere data hub (Austrian National Weather Service) which is the data provider. Currently solely allows to download station data (no gridded data). More details about the data sets can be found on <https://data.hub.zamg.ac.at/> as well as in the API documentation available via <https://dataset.api.hub.zamg.ac.at/v1/docs/?anonymous=true>. | ||
License: GPL-2 | ||
VignetteBuilder: knitr | ||
RoxygenNote: 7.2.3 | ||
Roxygen: list(markdown = TRUE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
|
||
#' \code{gsdata}: Interface to the GeoSphere Austria DataHub API (Data Access) | ||
#' | ||
#' This package allows convenient access to data provided by GeoSphere Austria | ||
#' (Austrias federal agency for geology, geophysics, climatology and | ||
#' meteorology) via their data API which exists since around mid 2023. | ||
#' | ||
#' The API not only provides access to station data (the one thing currently | ||
#' covered by this package; will be extended) but also access to spatial | ||
#' data; a catalogue which has been extended over and over again over the past | ||
#' 10 months. Details about all available data sets and their temporal and | ||
#' spatial extent can be found on their website: | ||
#' | ||
#' \itemize{ | ||
#' \item <https://data.hub.geosphere.at/> | ||
#' } | ||
#' | ||
#' @section Data request limit: | ||
#' | ||
#' The API has a request limit; a limit to how much data one is allowed | ||
#' to retrieve in one API request. Details on the current limit can be found | ||
#' in the [GeoSphere Dataset API Documentation](https://dataset.api.hub.geosphere.at/v1/docs/user-guide/request_size_limit.html). | ||
#' | ||
#' This package internally tries to estimate the request size and split the | ||
#' request into multiple batches in case one single request would (likely) | ||
#' exceed these limits. | ||
#' | ||
#' Thus, one single call to e.g., \code{gs_stationdata()} can trigger multiple | ||
#' API calls. If used without `expert = TRUE` two initial calls are made to | ||
#' check if the data set requested does exist, and that the | ||
#' stations and parameters requested exist in this data set. If the data request | ||
#' needs to be split in addition, this can cause a series of calls to the API | ||
#' which also has a limit on number of requests per time. | ||
#' | ||
#' In the worst case this causes a temporary ban (timeout due to too many requests) | ||
#' from the servers. One way around is to limit the number of requests per time, | ||
#' more details about this in the next section. | ||
#' | ||
#' | ||
#' @section Cooldown time/limiting number of requests per time: | ||
#' | ||
#' | ||
#' Note that each function call can result in multiple API requests which can | ||
#' lead to a timeout (too many requests). To avoid running into timeout issues: | ||
#' | ||
#' \itemize{ | ||
#' \item use \code{expert = TURUE} where possible as it | ||
#' lowers the number of calls to the api. | ||
#' \item request data for multiple stations at once, especially | ||
#' when requesting short time periods/few parameters as, in the best case, | ||
#' all data can be retrieved on one single call (if below estimated | ||
#' data request limit). | ||
#' \item wait between requests using e.g., \code{Sys.sleep(...)}. | ||
#' \item or use the packages own 'cooldown' option. By default, | ||
#' a cooldown time of \code{0.1} seconds is used (the minimum | ||
#' time between two requests. You can set a custom cooldown time | ||
#' via \code{options('gsdata.cooldown' = 1)}. Will overwrite the | ||
#' default and ensure that there will be at least one second | ||
#' between consecutive API calls. If you have no time critical | ||
#' requests this is a good way to be nice to the data provider! | ||
#' } | ||
#' | ||
#' @docType package | ||
#' @name gsdata | ||
"_PACKAGE" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.