
Turn one WoSIS profile into a PedonRecord, with its horizons
Source:R/wosis-graphql.R
wosis_profile_to_pedon.RdFetches the profile's layers live from ISRIC
(read_wosis_layers_graphql) and builds a
PedonRecord. Every value carries a provenance note naming its
WoSIS code, unit and method. The site metadata carries the licence, the source
dataset, the date the data were read and the citation ISRIC asks for
(wosis_citation), so attribution survives into anything the
user later exports. CC BY requires it, and an extract that drops it turns a
licensed use into an unattributed one.
Arguments
- row
One row of
read_wosis_profiles_graphql.- fetch_layers
If
TRUE(default) the layers are read from ISRIC;FALSEbuilds the site metadata only, with no network call.- timeout
Seconds to wait for ISRIC (default 30).
- progress
Optional
function(done, total)passed toread_wosis_layers_graphql.
Value
A PedonRecord. If the layers could not be read, it has
no horizons and site$wosis_error says why.