get_efdc_nc_dt: Export grid information to a 'data.table' from the '.nc' file...

View source: R/get_efdc_nc_dt.R

get_efdc_nc_dtR Documentation

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

Description

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. Not used.

Usage

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

melt_nc(ncarray, var = "value", var_out, nc, na.rm = F, na.value = -999)

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)

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.

var_out

Character. The name of the variable in the molten data.

nc

NetCDF file connection generated by nc_open.

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

Value

A data.table contains grid coordinates and elevation.


hxfan1227/efdcr documentation built on July 21, 2023, 9:50 p.m.