extractvar: Extract variables for GEMPACK solution file(s).

Description Usage Arguments Value Examples

Description

extractvar uses GEMPACK's sltoht to extract the variables defined in var.map from a GEMPACK solution file (SL4: suffixed .sl4) and writes them to a HAR file (generally suffixed .sol).

Usage

1
extractvar(solution.dir, solution.name, var.map, solution.out)

Arguments

solution.dir

Directory where the solution file SL4 is stored.

solution.name

Name of the solution file SL4, without a suffix.

var.map

A GEMPACK variable map to be used with sltoht. See http://www.copsmodels.com/gpmanual.htm#gpd4.8 for details about sltoht.

solution.out

Path and name of the HAR with the variables from var.map. Must include a suffix, preferable .sol.

Value

A HAR file with variables in var.map.

Examples

1
2
3
4
5
6
7
Examples:
## Not run:  extractvar(solution.dir = "d:/nvilloria/Dropbox/papers/lusupply/SC2010Biofuels/",
solution.name = "Long",
var.map = "SC2010Biofuels.map",
solution.out = "../Results/Long.sol")

## End(Not run)

nvilloria/rgtap documentation built on May 24, 2019, 10:56 a.m.