Export grid information to a data.table from the .nc file generated by EE.

Melt nc array files

List the variable names in the NetCDF file.

Read data from EE generated NetCDF files.

Read coordinates from EE generated NetCDF files.

get_efdc_nc_dt(
  ...,
  var_name,
  wet_depth = 0.15,
  with_coord = T,
  remove_dry = T,
  verbose = T
)

melt_nc(ncarray, var = "value", na.rm = F)

has_variable(filename)

get_efdc_nc_var(
  ...,
  var_name,
  wet_depth = 0.15,
  verbose = T,
  with_coord = T,
  remove_dry = T
)

get_efdc_nc_coordinates(nc, simplify = T)

Arguments

...

Characters. The names of the .nc files generated by EE (maximum 2 at once).

var_name

Character. The name of the variable to read.

wet_depth

Numeric. The minimum depth of the wet cell.

with_coord

Logical. Should the data merge with the coordinates (for plot)?

remove_dry

Logical. Should the dry cell be removed?

verbose

Logical. Should print the processing message?

ncarray

Array. The 3D array read by ncvar_get

var

Character. The name of the variable to read.

na.rm

Logical. A logical value indicating whether NA values should be stripped before the computation proceeds.

filename

Character. The name of the .nc file generated by EE

nc

NetCDF file connection generated by nc_open.

simplify

Logical. If TRUE, delete unused columns.

Value

A data.table contains grid coordinates and elevation.