# Analog program run description file

# Blank lines are ignored.
# '#' and all chars to end of line are ignored.
# Leading whitespace is ignored
#
# Names can be in upper or lower case or a mixture, but UNIX file names
# must be given with the correct letter case, or the program won't find
# them.
#
# Items may be listed in any order, but the grouping described by braces
# must be maintained.  This keeps related information together.

# The input files are either basis files or sample files.  Basis files are
# the modern samples for which environmental data are available.  Sample
# files are the fossil samples whose environmental data we want to
# estimate.
#
# To specify a file, give its group (basis or sample), and begin a group
# that contains
#  1. the name of the file containing the data and (optionally) a
#     description of the file's format as "data <name>: <format>"
#     where the colon, if present, must be followed by whitespace, and the
#     name must not contain whitespace,
#  2. the name of the file containing the transformation rules.
#  3. The name and, optionally, the format of the file containing meta
#     data for the samples, as "meta <name>: <format>", like the data file.

basis {
	data climap.raw: tab
	transform climap.rule
	meta climap.meta: tab
	}

# "distance" may take the values
#     manhattan
#     euclidean
#     squared_euclidean
#     canberra
#     squared_chord
#     squared_chisquared
#     jaccard
#     dot_product
#     correlation

distance squared_chord

# "report" specifies what will be output.  In this section you can specify
# how many of the closest basis samples to report for each fossil sample,
# and which meta data variables from the modern samples to include in the
# description of the matches.
#
# "name" is optional (if omitted, results go to stdout); its syntax is the
# same as "data" and "meta" in input file specifications.
#
# "closest" should be followed by an integer; if "closest" is not followed
# by an integer, the number is assumed to be 1.
#
# "meta" should be followed by the name of a meta data variable, in which
# case the statement can be repeated, or "all" if you want all of them
# added to the output for each matching modern sample.  If the meta data
# variable's name contains any spaces, you must use underscores instead.

# Meta variables specific to the climap data set are listed below.  Note
# that the underscore is used in these names where a space occurs in the
# actual meta data file.
#
#Core_ID
#Latitude_degrees
#Latitude_minutes
#Longitude_degrees
#Longitude_minutes
#SST_cool
#SST_warm
#

report {
	name analog.out: tab
	closest 10
	meta Core_ID
	meta Latitude_degrees
	meta Latitude_minutes
	meta Longitude_degrees
	meta Longitude_minutes
	meta SST_cool
	meta SST_warm
	}

# "verbose", if present, causes the program to describe the input and
# report its progress.

verbose

# (end)
