View source: R/Extractor functions.R
get_air | R Documentation |
This function reads either title variable from a NEMO-MEDUSA model DRIVERS file, and returns a monthly time series.
get_air(File, Type, Year)
File |
The location of the netcdf file containing NEMO-MEDUSA driving data. |
Type |
The variable contained in the netcdf file either "T150" (air temperature) or "SWF" (surface irradiance). |
Year |
The year the necdf file contains data for. |
The appropriate variable in the netcdf file is imported according to the 'Type' parameter, only reading within an x/y window specified in 'Space'. The function then drops points outside the model domain before constructing the monthly time series.
Unlike other NEMO-MEDUSA related get_* functions, this function constructs the monthly time series directly. A wrapper function to handle time isn't required, as each netcdf file for driving data contains 360 day steps for a single year. 'stratify' also isn't called, as these variables have no depth dimension.
A dataframe containing a monthly time series within a year of either average air temperature or surface irradiance. Air temperature is also split by shore zone.
Other NEMO-MEDUSA variable extractors:
get_air_dt()
,
get_rivers()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.