get.pft.Rd
Get details of PEcAn PFT from the database using PFT id.
Hits the /api/pfts/{pft_id}
API endpoint.
get.pft(server, pft_id)
Server object obtained using the connect() function
ID of the model to retrieve
Response obtained from the /api/pfts/{pft_id}
endpoint
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.