grdfile: Function creates a grid file to be read by dss.64.c.exe

grdfileR Documentation

Function creates a grid file to be read by dss.64.c.exe

Description

Converts grid nodes (spatial grid) into a text file (.out) that is stored in 'input' folder. As input you should provide the spatial grid (SpatialPixelsDataFrame), with id region values at simulation grid nodes, and a list returned by funtion irates().

Usage

grdfile(rateobj, gridimage, NAval = -999)

Arguments

rateobj,

string, name of list, output of function irates()

gridimage,

string, name of block file, a SpatialPixelsDataFrame object

NAval,

numeric, integer with grid value for "No data"

Details

The gridded values should refer to the region id's at simulation locations (nodes). Every regions recorded in disease data file should be assigned to 1 or more grid node.

Value

gridpars

list parameters from block data: number rows and columns, resolution, (x,y), coordinates of the origin, NA value

outgrid

list vector node values, vector id of regions, and number of regions

file

list characters; indicating the day of data collection, filename and root folder where file is stored

ingrid

the SpatialPixelsDataFrame object used


maluicr/blockdss documentation built on Nov. 22, 2023, 11:42 a.m.