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

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

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)
#> Sorry! Server not responding.