Get Surface Irradiance & Air Temperature
get_air_dt.Rd
This function reads either title variable from a NEMO-MEDUSA model DRIVERS file, and returns a monthly time series.
Arguments
- 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.
Value
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.
Details
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.
See also
Other NEMO-MEDUSA variable extractors:
get_air()
,
get_rivers()