A generic handler that covers all eight SLGA soil attributes. Each attribute has a fixed file-naming pattern encoded in .slga_config.
Arguments
- did
Normalised 8-char dataset ID (unused; uniform handler signature).
- dots
Named list of
...args fromread_tern().- api_key
A
characterstring containing your TERN API key. Seeget_key()for setup.- max_tries
Maximum number of download retries before an error is raised. Default=
NULL, in which case the maximum retry number is resolved from the optionnert.max_triesif that option exists. (Defaults to 3 retries ifnert.max_trieshas not been set.)- initial_delay
Initial retry delay in seconds. Each later delay is roughly double the one before. Default=
NULL, in which case the initial delay is resolved from the optionnert.initial_delayif that option exists. (Defaults to a 1 second initial delay ifnert.initial_delayhas not been set.)
Value
A terra::SpatRaster object for the requested SLGA attribute/depth/statistic.