This function reads in a Heidelberg (block or column) format file of ring widths (.fh).
read.fh(fname, BC_correction = FALSE, encoding = NULL)An object of class c("rwl", "data.frame") with the series in
columns and the years as rows. The keycodes are the column names and
the years are the row names. Depending on metadata available in the
input file, the following attributes may be present in the
data.frame:
A data.frame identifying the series. Always contains
columns "tree" and "core", may contain columns
"site", "radius", and "stemDisk". All
columns are numeric.
A data.frame containing pith offsets, formatted for
use in rcs.
a character vector giving the file name of the fh
file.
a logical. If TRUE the correction moves BC-dates one year forward.
the encoding of the file, used only if the file is not
valid UTF-8. Any name iconv accepts will
do, e.g. "latin1" or "ISO-8859-2". NULL, the
default, means no encoding has been declared: the file is then read as
"latin1" and a warning says so, naming the line and quoting the
text the assumption produced. This matters more for this format than for
most: Heidelberg files are widely used in European dendroarchaeology and
their HEADER blocks carry free text -- site, species, project and
operator names -- which is often not ASCII and often not
UTF-8. The tiers, and why the fallback does not run a charset
detector, are described under ‘Encoding’ in
read.tucson.
Christian Zang. New features and patches by Mikko Korpela and Ronald Visser.
This reads in a fh-file with ring widths in blocks (decadal format) or in columns (e.g., as with comment flags) as used by TSAP program. Chronologies or half-chronos in fh-format are not supported.
Rinn, F. (2003) TSAP-Win User Reference Manual. Rinntech, Heidelberg. https://rinntech.info/products/tsap-win/.
read.rwl