npn_get_point_data: Get Point Data Value

View source: R/npn_geoserver.R

npn_get_point_dataR 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 npn_get_layer_details() function under the 'name' column.

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 TRUE then the value retrieved will be stored in a global variable named point_values for later use.

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.


rnpn documentation built on Sept. 11, 2024, 6:54 p.m.