View source: R/result.extract.main.R
result.extract.main | R Documentation |
Extracts essential results from model.
result.extract.main(mask.grid, result.grid, model="pim", interpolate=TRUE, silent=FALSE, withOutliers=FALSE)
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 |
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. |
Extracts essential results (observed and modelled results and their difference and coordinates) from used model.
A data.frame containing the modelled values (‘doy.model’), the observed values (‘doy.observed’), their difference (‘doy.dif’) and related coordinates (‘x’,‘y’)
Daniel Doktor, Maximilian Lange
result.extract.sub
,result.extract.mask
,result.extract.interpolate
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.