UpdateWtFile: Update a spatial weight netcdf file based on an R dataframe.

Description Usage Arguments

View source: R/udmap_utils.R

Description

UpdateWtFile takes a pair of spatial weight dataframes (e.g., data aand poly dataframes as generated by ReadWtFile then subsetted using SubsetWts) and exports them to a new model-ready spatial weight file.

Usage

1
UpdateWtFile(wtFile, wtdataDf, wtpolyDf, subDim = TRUE)

Arguments

wtFile

Path to new spatial weight file to update. This should be a copy of an existing spatial weight file, as it will be overwritten

wtdataDf

Dataframe of the new grid-based (data) information to write to the new file

wtpolyDf

Dataframe of the new poly-based (poly) information to write to the new file

subDim

Boolean whether the dimensions in the new file need to be subsetted to match the new dataframe (DEFAULT=TRUE)


mccreigh/rwrfhydro documentation built on Feb. 28, 2021, 1:53 p.m.