View source: R/npn_geoserver.R
npn_get_point_data | R Documentation |
This function can get point data about any of the NPN geospatial layers.
npn_get_point_data(layer, lat, long, date, store_data = TRUE)
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 |
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.
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.
## Not run:
value <-
npn_get_point_data(
layer = "gdd:agdd",
lat = 38.8,
long = -110.5,
date = "2022-05-05"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.