Skip to content

Complete a tree inventory with GDAM allometry

You are viewing in-progress documentation for v2. Switch to the stable version for the current production release.

To fill in the dbh, crown_ratio, fia_species_code and crown_base_height of a tree inventory that has only positions and heights, POST to inventories/tree/allometry/gdam. The result is a new inventory. For what GDAM is and when to use it, see GDAM: filling in what a source left out.

  1. An API key: my-api-key.

  2. A domain: your-domain-id. See Create a domain.

  3. A completed tree inventory with a value for every tree in x, y and height, such as a CHM inventory or an uploaded tree list. Record its id: inventory-to-complete.

POST to inventories/tree/allometry/gdam with source_tree_inventory_id set to the source inventory. source_tree_inventory_id is the only required field. By default GDAM imputes dbh, crown_ratio, fia_species_code and crown_base_height.

POST inventories/tree/allometry/gdam
curl -X 'POST' \
'https://api.fastfuels.silvxlabs.com/v2/domains/your-domain-id/inventories/tree/allometry/gdam' \
-H 'accept: application/json' \
-H 'api-key: my-api-key' \
-H 'Content-Type: application/json' \
-d '{
"name": "Tree inventory from GDAM allometry",
"source_tree_inventory_id": "inventory-to-complete"
}'

The 201 returns the new inventory’s id. Record it: your-inventory-id. Poll until completed:

GET inventory status
curl -X 'GET' \
'https://api.fastfuels.silvxlabs.com/v2/domains/your-domain-id/inventories/your-inventory-id' \
-H 'accept: application/json' \
-H 'api-key: my-api-key'

The response above completes a Blue Mountain CHM inventory made as in Generate a tree inventory from a CHM: 8,040 trees in, 8,040 trees out. Each tree keeps its tree_id, x, y and height, and gains dbh (cm), crown_ratio, fia_species_code and crown_base_height (m).

Each imputed value is one random draw from GDAM, seeded from the new inventory’s id. Two inventories made from the same source have the same trees but different values, so check your result by its tree_count and its columns, not by the summaries above.

  • 404 for the source inventory. The source must be completed and in the same domain. Poll it to completed before creating the GDAM inventory.
  • 422, missing x, y or height. Every tree in the source needs a value in all three. Fix the source file and upload it again.
  • No fia_status_code. GDAM does not impute tree status. Voxelization treats a tree with no fia_status_code as live. For an explicit live or dead status, the source must carry fia_status_code, as an upload that includes it or a TreeMap inventory does.
  • Measured values available. If you have measured DBH, crown or species data, upload it with the trees. GDAM keeps those values and imputes only the empty cells.
  • Completing a TreeMap inventory. A TreeMap inventory already carries every column voxelization needs. Voxelize it directly.