get.site: Get details of PEcAn Site from the database using site id

View source: R/get.site.R

get.siteR Documentation

Get details of PEcAn Site from the database using site id

Description

Get details of PEcAn Site from the database using site id. Hits the ⁠/api/sites/{site_id}⁠ API endpoint.

Usage

get.site(server, site_id)

Arguments

server

Server object obtained using the connect() function

site_id

ID of the model to retrieve

Value

Response obtained from the ⁠/api/sites/{site_id}⁠ endpoint

Author(s)

Tezan Sahu

Examples

server <- connect(url="http://pecan.localhost:80", username="carya", password="illinois")

# Get details of the WillowCreek(US-WCr) site (id = 676)
res <- get.site(server, site_id=676)

PecanProject/rpecanapi documentation built on April 2, 2024, 8:17 a.m.