Extract environmental data - gridded data based

sp_extract_gridded(
  x,
  from = "noaa_sst",
  latitude = NULL,
  longitude = NULL,
  origin = as.Date("1800-1-1")
)

Arguments

x

input data.frame

from

Data source, only noaa_sst for now, from http://www.esrl.noaa.gov/psd/data/gridded/data.noaa.oisst.v2.html

latitude

Latitude variable name

longitude

Longitude variable name

origin

Date origin, Default: 1800-1-1

Details

Works for the use case of finding locations for point based stations, floats/buoys type data

Author

Tom Webb, Scott Chamberlain

Examples

if (FALSE) { library("spocc") res <- occ(query = 'Mola mola', from = 'obis', limit = 200) res_df <- occ2df(res) sp_extract_gridded(x=res_df) # pass in lat/lon variable names if needed names(res_df)[2] <- "mylong" head(res_df) sp_extract_gridded(res_df, latitude = "latitude", longitude = "mylong") }