This writes a standard rwl file as defined according to the standards
of the ITRDB at
http://www.ncdc.noaa.gov/paleo/treeinfo.html. This is the
decadal or Tucson format. It is an ASCII file and machine
readable by the standard dendrochronology programs. Header information
for the rwl can be written according to the International Tree Ring
Data Bank (ITRDB) standard. The header standard is not very
reliable however and should be thought of as experimental here. Do not
try to write headers using dplR to submit to the ITRDB. When
submitting to the ITRDB, you can enter the metadata via
their website. If you insist however, the header information is given
as a list
and must be formatted with the following:
Description |
Name |
Class |
Max Width |
Site ID |
site.id |
character |
5 |
Site Name |
site.name |
character |
52 |
Species Code |
spp.code |
character |
4 |
State or Country |
state.country |
character |
13 |
Species |
spp |
character |
18 |
Elevation |
elev |
character |
5 |
Latitude |
lat |
character or numeric |
5 |
Longitude |
long |
character or numeric |
5 |
First Year |
first.yr |
character or numeric |
4 |
Last Year |
last.yr |
character or numeric |
4 |
Lead Investigator |
lead.invs |
character |
63 |
Completion Date |
comp.date |
character |
8 |
See examples for a correctly formatted header list. If the width of
the fields is less than the max width, then the fields will be padded
to the right length when written. Note that lat
and
long
are really lat * 100
or
long * 100
and given as integral values. E.g., 37 degrees
30 minutes would be given as 3750.
Series can be appended to the bottom of an existing file with a second
call to write.tucson
. The output from this file is suitable for
publication on the ITRDB.
The function is capable of altering excessively long and/or duplicate
series IDs to fit the Tucson specification. Additionally,
characters other than numbers or English letters will be removed. If
series IDs are changed, one or more warnings are shown. In
that case, the user may wish to print a list of the renamings (see
Arguments).
Setting long.names = TRUE
allows series IDs to
be 8 characters long, or 7 in case there are year numbers using 5
characters. Note that in the latter case the limit of 7 characters
applies to all IDs, not just the one corresponding to the
series with long year numbers. The default (long.names =
FALSE
) is to allow 6 characters. Long IDs may cause
incompatibility with other software.