All functions

assignList()

Utility function copied directly from the package 'tis' by Jeff Hallman (https://github.com/cran/tis/blob/master/R/assignList.R) Assigns the values in a list to variables in an environment. The variable names are taken from the names of the list, so all of the elements of the list must have non-blank names.

download_discharge()

Download river discharge (flow) data from Qld. Govt. servers at https://water-monitoring.information.qld.gov.au

earth.dist()

Calculate rough distance in kilometers between two points

find_intersections()

An internal utility function to find the grid line intersections of a line segment

get_date_time()

Convert supported date formats to a `POSIXct` date-time

get_ereefs_bottom_ts()

Extracts time-series of selected variables from the bottom water-column cell at specified locations from eReefs output files

get_ereefs_case()

Determines whether the file provided looks like a THREDDS catalog, or an example of daily (e.g. GBR1), monthly (e.g. GBR4) or other (e.g. RECOM) netcdf file output

get_ereefs_depth_integrated_ts()

Extracts depth-integrated time-series of selected variables at specified locations from eReefs output files

get_ereefs_depth_specified_ts()

Extracts time-series of selected variables from eReefs output files at a specified location and depth below the tidal free surface. Use get_ereefs_ts() instead for a specified depth below MSL: this is faster and given the thickness of the layers, usually almost the same.

get_ereefs_grids()

Returns an appropriate x_grid, y_grid and z_grid

get_ereefs_profile()

Extract vertical profiles of specified variables from a specified latitude and longitude over a specified time-period from an eReefs or other EMS netcdf file.

get_ereefs_slice()

Extract a vertical slice or depth-resolved transect from an eReefs or other EMS netcdf output file.

get_ereefs_ts()

Extracts time series at specified locations from eReefs model output files

get_file_stem()

Returns the 'stem' of a filename (i.e. the filename with the date and extension cut off the end)

get_origin_and_times()

Opens the netcdf file, input_file, and extracts the origin (reference date/time) and time dimension.

get_params()

Set up various parameters needed by many of the data extraction and plotting functions

map_ereefs()

Create a map of eReefs or other EMS model output

map_ereefs_movie()

Create a sequence of eReefs maps and optionally assemble an animation

plot_ereefs_profile()

Plots a single vertical profile using output from get_ereefs_profile()

plot_ereefs_slice()

Produces a coloured tile plot of a vertical slice already fetched from an eReefs or other EMS netcdf file.

plot_ereefs_zvt()

Produces a coloured rect plot of a vertical profile over time

plot_map()

Plot an already extracted eReefs polygon map object

plume_class()

Classify optical plume type from modelled reflectances

poly2sp()

Backward-compatible wrapper for older function name.

poly2sv()

Convert a polygon dataframe in the format used by ggplot2::geom_polygon to a SpatVector

safe_nc_open()

Retry wrapper around `ncdf4::nc_open()`

safe_ncvar_get()

Retry wrapper around `ncdf4::ncvar_get()`

sp2raster()

Backward-compatible wrapper for older function name.

substitute_filename()

Check whether the given filename is a shortcut and if so, set the full filename

sv2raster()

Convert a SpatVector to a raster. (Wrapper for terra::rasterize() with some reasonable defaults for the ereefs package)