This function obtains information of a single eLTER site, as a stored in DEIMS-SDR catalogue, through the DEIMS-SDR API.
Arguments
- deimsid
A character. The DEIMS ID of the site from DEIMS-SDR website. DEIMS ID information here.
- category
A
category
. This parameter selects which category or categories are retrieved and returned in the result. Possible value are: 'Affiliations', 'Boundaries', 'Contacts', 'EnvCharacts', 'General', 'Infrastructure', 'Parameters', 'RelateRes', 'ResearchTop'. Multiple values can be indicated.
Value
The output of the function is a tibble
with main features of the
site and the selected information, such as: networks and projects in
which the site is involved.
If category 'Boundaries' is indicated an sf
object is returned
Author
Alessandro Oggioni, phD (2020) [email protected]
Examples
site <- get_site_info(
deimsid = "https://deims.org/f30007c4-8a6e-4f11-ab87-569db54638fe",
category = "Boundaries"
)
site
#> Simple feature collection with 1 feature and 8 fields
#> Geometry type: MULTIPOLYGON
#> Dimension: XY
#> Bounding box: xmin: 8.47803 ymin: 45.72556 xmax: 8.860755 ymax: 46.18081
#> Geodetic CRS: WGS 84
#> # A tibble: 1 × 9
#> title uri boundaries geoCoord country geoElev.avg geoElev.min
#> <chr> <chr> <MULTIPOLYGON [°]> <chr> <list> <dbl> <int>
#> 1 Lago… http… (((8.615976 45.72628, 8.… POINT (… <chr> 194. 186
#> # … with 2 more variables: geoElev.max <int>, geoElev.unit <chr>
siteInfo <- get_site_info(
deimsid = "https://deims.org/f30007c4-8a6e-4f11-ab87-569db54638fe",
category = c("EnvCharacts", "Affiliations")
)
siteInfo
#> # A tibble: 1 × 28
#> title uri geoCoord country geoElev.avg geoElev.min geoElev.max geoElev.unit
#> <chr> <chr> <chr> <list> <dbl> <int> <int> <chr>
#> 1 Lago … http… POINT (… <chr> 194. 186 4633 msl
#> # … with 20 more variables: affiliation.networks <list>,
#> # affiliation.projects <list>, envCharacteristics.airTemperature.avg <dbl>,
#> # envCharacteristics.airTemperature.min <dbl>,
#> # envCharacteristics.airTemperature.max <dbl>,
#> # envCharacteristics.airTemperature.unit <chr>,
#> # envCharacteristics.precipitation.annual <int>,
#> # envCharacteristics.precipitation.min <lgl>, …