readGridParams: Reads the parameters of the grid.

Description Usage Arguments Value

View source: R/readGridParams.R

Description

Reads the parameters of the grid overlapped on the geographical of interest from a .csv file.

Usage

1
readGridParams(gridFileName)

Arguments

gridFileName

The name of the file with the grid parameters. This file could be the one generated by the simulation software or can be created with any text editor. The grid file generated by the simulation software has the following columns: Origin X, Origin Y, X Tile Dim, Y Tile Dim, No Tiles X, No Tiles Y. We are interested only in the number of rows and columns and the tile size on OX and OY axes. Therefore, the file provided as input to this function should have at least the following 4 columns: No Tiles X , No Tiles Y, X Tile Dim, Y Tile Dim.

Value

Returns a list with the following items: nrow - the number of rows, i.e. the number of tiles in a column of the grid, ncol - the number of columns, i.e. the number of tiles in a row of the grid, tileX - the dimension of a tile on OX axis, tileY - the dimension of a tile on OY axis.


bogdanoancea/deduplication documentation built on Dec. 2, 2020, 11:22 p.m.