Get details of PEcAn PFT from the database using PFT id. Hits the /api/pfts/{pft_id} API endpoint.

get.pft(server, pft_id)

Arguments

server

Server object obtained using the connect() function

pft_id

ID of the model to retrieve

Value

Response obtained from the /api/pfts/{pft_id} endpoint

Author

Tezan Sahu

Examples

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

# Get details of the temperate.deciduous PFT (id = 41)
res <- get.pft(server, pft_id=41)
#> Sorry! Server not responding.