This function is for requesting AGDD point values. Because the NPN has a separate data service that can provide AGDD values which is more accurate than Geoserver this function is ideal when requested AGDD point values.
npn_get_agdd_point_data(layer, lat, long, date, store_data = TRUE)
Returns a numeric value of the AGDD value at the specified lat/long/date. If no value can be retrieved, then -9999 is returned.
The name of the queried layer.
The latitude of the queried point.
The longitude of the queried point.
The queried date.
Boolean value. If set TRUE then the value retrieved will be stored in a global variable named point_values for later use
As this function only works for AGDD point values, if it's necessary to retrieve point values for other layers please try the npn_get_point_data function.