Locations¶
Every NEON measurement is tied to a named location in a tree: REALM → domain
(D01) → site (HARV) → towers, huts, soil arrays, observation plots and the
sensor positions under them1. Tools:
neon_find_locations and
neon_get_location.
Finding locations of a type¶
Give a root (REALM, a domain, a site or any location) or up to 20 site_codes,
and usually a location_type. NEON prunes the hierarchy to that type, which keeps the
walk small: Harvard Forest's full hierarchy is 1.2 MB with 595 top-level children,
its TOWER walk about 12 KB.
- Under
REALMor a domain,location_typeis required (the unfiltered tree is enormous).REALM+SITEandREALM+DOMAINuse fast paths. - A site walk without
location_typereturnstypesAvailable(counts per type seen in that one fetch) so you can narrow the next call. - Common types:
TOWER,LEVEL,BOOM,HUT,MEGAPIT,SOIL_PLOT,SOIL_ARRAY,CONFIG, and observation plots such asOS Plot - mam(small mammals) orOS Plot - brd(birds). The full observed list is inneon://reference/vocabularies; matching is case-insensitive. include_coordinates(default on) looks up coordinates for the returned page in one batched GraphQL call;latitude/longitude/radius_kmfilter by distance.
One location¶
neon_get_location returns coordinates, UTM, elevation, orientation and offsets,
active periods and (by default) properties folded into a name → value object.
Optional: hierarchy (parent chain up to REALM), children (paged; prune with
location_type), history (up to 100 past positions), polygon.
Pitfalls¶
- Location names are case-sensitive (
HARV_001.basePlot.bet); four-letter site codes and domains are upper-cased for you. - Unknown names come back from NEON as HTTP 400 "Location not found", reported as
not_found.
-
NEON Data API — Locations endpoint. https://data.neonscience.org/data-api/endpoints/locations/ ↩