View source: R/netcdf_time_series.R
extract_time_series | R Documentation |
Return a data frame comprising the time series data for the given NetCDF climate grid near the specified coordinates.
extract_time_series(nc_file, latitude, longitude, var = NULL)
nc_file |
The file path for the NetCDF file. |
latitude |
The latitude for the desired time series dataset (in decimal-degrees Northing). |
longitude |
The longitude for the desired time series dataset (in decimal-degrees Easting). |
var |
(Optional) The variable to extract the time series for (default=NULL, in which case the first variable is extracted). |
A data frame containing the dates, nearest grid latitude and longitude, and the variable values.
## Not run:
time_series <- extract_time_series("test.nc", -34.9257, 138.583)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.