pfs_tools: PFS Tools

Description Usage Arguments Details Value Warning Author(s) See Also Examples

Description

Tools for working with MIKE by DHI PFS files

Usage

1
2
3
4
5
6
7
8
pfs_read(filename=NULL)
pfs_readsec(fid, nline=0)
pfs_dequote(string)
pfs_write_section(pfs, fid, indent=0, hlevel=NULL)
pfs_write_comment(pfs, fid, indent, hlevel)
pfs_write_keyvals(pfs, fid, indent, hlevel)
pfs_indent_str(indent)
pfs_format_val(key, val, hlevel)

Arguments

filename

A string. The file to write.

fid

An internal R file object.

nline

An integer. Denotes the line in the original PFS file.

string

A string. the string to format.

pfs

An R list, possibly of class pfs or ecolab. Contains PFS information.

indent

An integer. The level of indentation.

helevel

A string. The names of the higher level in the PFS heriachy.

key

A string. A PFS key

val

A string, possibly coercible to a numeric. A PFS key.

Details

TODO: Documentation

Value

TODO: Documentation

Warning

Currently pfs_read should work for most PFS formatted files. This might be useful in the future, but doing anything other than reading is very poorly supported. For example: pfs_format_val, which is needed to write out data in a MIKE compatible way, is currently very skewed towards specific ECOLab template intricacies, which might break in unpredictable ways in the future.

Author(s)

Daniel Pritchard

See Also

ecolab_tools

Examples

1
# TODO

dpritchard/dgmisc documentation built on May 15, 2019, 1:50 p.m.