npn_get_point_data {rnpn} | R Documentation |
Get Point Data Value
Description
This function can get point data about any of the NPN geospatial layers.
Usage
npn_get_point_data(layer, lat, long, date, store_data = TRUE)
Arguments
layer |
The coverage id (machine name) of the layer for which to
retrieve. Applicable values can be found via the |
lat |
The latitude of the point. |
long |
The longitude of the point. |
date |
The date for which to get a value. |
store_data |
Boolean value. If set |
Details
Please note that this function pulls this from the NPN's WCS service so the
data may not be totally precise. If you need precise AGDD values try using
the npn_get_agdd_point_data()
function.
Value
Returns a numeric value for any NPN geospatial data layer at the
specified lat/long/date. If no value can be retrieved, then -9999
is
returned.
Examples
## Not run:
value <-
npn_get_point_data(
layer = "gdd:agdd",
lat = 38.8,
long = -110.5,
date = "2022-05-05"
)
## End(Not run)