Description Usage Arguments Value
View source: R/load-data-with-time-variable.R
Load nc files to be resized. Subfunction
1 2 3 | recover_nc_data(file_path, variables, coordinates, spare_coordinates,
time_variable, monthly, lower_left_lat_lon, upper_right_lat_lon,
date_origin = NULL)
|
file_path |
Path where the file is located. Example: /home/data. Character. |
variables |
variables to be extracted from .nc file. Character vector. |
coordinates |
longitude and latitude names |
spare_coordinates |
Spare names for coordinates. Variables such as longitude and latitude may be named differently in every .nc file. In order to account this possibility, you can provide a set of spare names for both coordinates. Set by default to be: c("longitude","latitude"). |
time_variable |
variable representing the frequency of the observations. Character. |
monthly |
whether data has a monthly or an annual frequency. TRUE if data has a monthly frequency. FALSE if frequency is annual. FALSE by default. |
lower_left_lat_lon |
lower left corner latitude and longitude of the selected area. |
upper_right_lat_lon |
upper right corner latitude and longitude of the selected area. |
date_origin |
If the dates in the .nc files are hours from a fixed origin, please specify origin date as "yyyy-mm-dd". By default origin date is assumed to be 1st January of each year (the year is read from the file name). |
a dplyr dataframe
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.