result.extract.main: Essential result extraction

View source: R/result.extract.main.R

result.extract.mainR Documentation

Essential result extraction

Description

Extracts essential results from model.

Usage

result.extract.main(mask.grid, result.grid, model="pim", 
	interpolate=TRUE, silent=FALSE, withOutliers=FALSE)

Arguments

mask.grid

A grid containing spatial information related to values (which should be extracted) and their Gauss-Krueger-Coordinates. The values in the resulting data.frame will be ordered related to values in mask.grid.

result.grid

The grid created by pim.solve containing observated and modelled values.

model

A character value determining which model was used to create the results (either ‘pim’ or ‘tsm’).

interpolate

A boolean value determining wether the results should be interpolated (with spatial information of mask.grid) or not.

silent

A boolean value determining wether the function should generate output messages or not.

withOutliers

A boolean value determining wether outliers should be included in extraction and transformation or not.

Details

Extracts essential results (observed and modelled results and their difference and coordinates) from used model.

Value

A data.frame containing the modelled values (‘doy.model’), the observed values (‘doy.observed’), their difference (‘doy.dif’) and related coordinates (‘x’,‘y’)

Author(s)

Daniel Doktor, Maximilian Lange

See Also

result.extract.sub,result.extract.mask,result.extract.interpolate

Examples

  ## load preprocessed data
  data(dataFinal)
  ## load spatial information
  data(relatedGrid)

  ## set or load params
  params <- c(0, 0.058326, 0.109494, 0.039178, 
			-10.34, -0.89, 18.11,-10.03, 
			28.61, 44.49)

  ## apply model
  result <- pim.solve(params, dataFinal, model.no=11, 
			silent=FALSE, out2File=FALSE)
 
  ## extract essential results
  result.values <- result.extract.main(
				mask.grid=relatedGrid, 
				result.grid=result, model="pim", 
				interpolate=FALSE, silent=FALSE)

phenmod documentation built on April 14, 2022, 5:08 p.m.