#!/bin/sh
#-------------------------------------------------------------------------
# Bourne shell script to create monthly and composite monthly averages of
# sea ice concentration data
#
# Peter N. Schweitzer (U.S. Geological Survey, Reston, VA 22092)
#-------------------------------------------------------------------------
#
# Set the values of the following variables to the full names of the
# directories containing the appropriate files

# BIN contains the (compiled) executable version of average.c

BIN=/var/ftp/pub/data/sea_ice/bin

# DST is the directory whose subdirectories will contain the averages

DST=/var/ftp/pub/data/sea_ice/Core/raw

# SSMI is the directory whose subdirectories contain the original data

SSMI=/var/ftp/gch/ice/ssmi

# SMMR is the directory whose subdirectories contain the SMMR data

SMMR=/var/ftp/gch/ice/smmr

#-------------------------------------------------------------------------
#
# Averages of the northern hemisphere and southern hemisphere are
# calculated in exactly the same way using essentially the same commands,
# but the destinations and file names are modified to reflect the
# hemisphere.  Consequently, the procedures are spelled out below.

#-------------------------------------------------------------------------
#- NORTHERN HEMISPHERE ---------------------------------------------------
#-------------------------------------------------------------------------
#
# Monthly averages for each year are calculated from the data for that
# year alone

for Y in 78 79 80 81 82 83 84 85 86 87
do
	for M in 01 02 03 04 05 06 07 08 09 10 11 12
	do
		$BIN/average -v -o $DST/north/19$Y/$Y$M"n.hdf" \
			$SMMR/icecon_n/19$Y/$Y$M??n.hdf
		done
	done

# To avoid overwriting the SMMR data for July and August of 1987,
mv $DST/north/1987/8707n.hdf $DST/north/1987/8707na.hdf
mv $DST/north/1987/8708n.hdf $DST/north/1987/8708na.hdf

for Y in 87 88 89 90 91
do
	for M in jan feb mar apr may jun jul aug sep oct nov dec
	do
		$BIN/average -v -o $DST/north/19$Y/$M$Y"_n.hdf" \
			$SSMI/north/19$Y/$M/*.tot
		done

	# Rename the files to make the names consistent with SMMR data

	mv $DST/north/19$Y/jan$Y"_n.hdf" $DST/north/19$Y/$Y"01n.hdf"
	mv $DST/north/19$Y/feb$Y"_n.hdf" $DST/north/19$Y/$Y"02n.hdf"
	mv $DST/north/19$Y/mar$Y"_n.hdf" $DST/north/19$Y/$Y"03n.hdf"
	mv $DST/north/19$Y/apr$Y"_n.hdf" $DST/north/19$Y/$Y"04n.hdf"
	mv $DST/north/19$Y/may$Y"_n.hdf" $DST/north/19$Y/$Y"05n.hdf"
	mv $DST/north/19$Y/jun$Y"_n.hdf" $DST/north/19$Y/$Y"06n.hdf"
	mv $DST/north/19$Y/jul$Y"_n.hdf" $DST/north/19$Y/$Y"07n.hdf"
	mv $DST/north/19$Y/aug$Y"_n.hdf" $DST/north/19$Y/$Y"08n.hdf"
	mv $DST/north/19$Y/sep$Y"_n.hdf" $DST/north/19$Y/$Y"09n.hdf"
	mv $DST/north/19$Y/oct$Y"_n.hdf" $DST/north/19$Y/$Y"10n.hdf"
	mv $DST/north/19$Y/nov$Y"_n.hdf" $DST/north/19$Y/$Y"11n.hdf"
	mv $DST/north/19$Y/dec$Y"_n.hdf" $DST/north/19$Y/$Y"12n.hdf"
	done

# Because there are only two days of valid data for December 1987, this
# average should be discarded.

rm $DST/north/1987/8712n.hdf

# One might argue that enough of October 1978, July 1987, and January 1988
# are missing to warrant exclusion of these files as well; I chose not to
# exclude them from the composite averages.  If you disagree, uncomment the
# following three lines:

# rm $DST/north/1978/7810n.hdf
# rm $DST/north/1987/8707n.hdf
# rm $DST/north/1988/8801n.hdf

# If you want to use the SMMR data for July 1987 rather than SSM/I,
# mv $DST/north/1987/8707na.hdf $DST/north/1987/8707n.hdf

# Composite monthly averages are calculated from the monthly averages
# themselves

for M in 01 02 03 04 05 06 07 08 09 10 11 12
do
	$BIN/average -v -o $DST/north/$M"n.hdf" \
		$DST/north/1978/78$M"n.hdf" \
		$DST/north/1979/79$M"n.hdf" \
		$DST/north/1980/80$M"n.hdf" \
		$DST/north/1981/81$M"n.hdf" \
		$DST/north/1982/82$M"n.hdf" \
		$DST/north/1983/83$M"n.hdf" \
		$DST/north/1984/84$M"n.hdf" \
		$DST/north/1985/85$M"n.hdf" \
		$DST/north/1986/86$M"n.hdf" \
		$DST/north/1987/87$M"n.hdf" \
		$DST/north/1988/88$M"n.hdf" \
		$DST/north/1989/89$M"n.hdf" \
		$DST/north/1990/90$M"n.hdf" \
		$DST/north/1991/91$M"n.hdf"
	done

# Since October 1978 and January 1988 have significant missing data,
# I modified their names to emphasize their difference from other averages.

mv $DST/north/1978/7810n.hdf $DST/north/1978/%7810n.hdf
mv $DST/north/1988/8801n.hdf $DST/north/1988/%8801n.hdf

#- ANNOTATION and PALETTE ASSIGNMENT -------------------------------------
#
# This operation adds information to the data files containing the monthly
# and composite monthly averages.  Each image is associated with a
# standard sea-ice concentration palette, and are annotated with a label
# that is specific to it.  Consequently this operation cannot be enclosed
# in a loop.

# Monthly averages

$BIN/add_pal $DST/north/1978/7810n.hdf "Average October 1978 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1978/7811n.hdf "Average November 1978 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1978/7812n.hdf "Average December 1978 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."

$BIN/add_pal $DST/north/1979/7901n.hdf "Average January 1979 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1979/7902n.hdf "Average February 1979 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1979/7903n.hdf "Average March 1979 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1979/7904n.hdf "Average April 1979 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1979/7905n.hdf "Average May 1979 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1979/7906n.hdf "Average June 1979 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1979/7907n.hdf "Average July 1979 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1979/7908n.hdf "Average August 1979 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1979/7909n.hdf "Average September 1979 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1979/7910n.hdf "Average October 1979 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1979/7911n.hdf "Average November 1979 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1979/7912n.hdf "Average December 1979 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."

$BIN/add_pal $DST/north/1980/8001n.hdf "Average January 1980 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1980/8002n.hdf "Average February 1980 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1980/8003n.hdf "Average March 1980 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1980/8004n.hdf "Average April 1980 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1980/8005n.hdf "Average May 1980 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1980/8006n.hdf "Average June 1980 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1980/8007n.hdf "Average July 1980 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1980/8008n.hdf "Average August 1980 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1980/8009n.hdf "Average September 1980 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1980/8010n.hdf "Average October 1980 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1980/8011n.hdf "Average November 1980 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1980/8012n.hdf "Average December 1980 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."

$BIN/add_pal $DST/north/1981/8101n.hdf "Average January 1981 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1981/8102n.hdf "Average February 1981 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1981/8103n.hdf "Average March 1981 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1981/8104n.hdf "Average April 1981 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1981/8105n.hdf "Average May 1981 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1981/8106n.hdf "Average June 1981 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1981/8107n.hdf "Average July 1981 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1981/8108n.hdf "Average August 1981 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1981/8109n.hdf "Average September 1981 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1981/8110n.hdf "Average October 1981 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1981/8111n.hdf "Average November 1981 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1981/8112n.hdf "Average December 1981 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."

$BIN/add_pal $DST/north/1982/8201n.hdf "Average January 1982 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1982/8202n.hdf "Average February 1982 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1982/8203n.hdf "Average March 1982 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1982/8204n.hdf "Average April 1982 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1982/8205n.hdf "Average May 1982 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1982/8206n.hdf "Average June 1982 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1982/8207n.hdf "Average July 1982 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1982/8208n.hdf "Average August 1982 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1982/8209n.hdf "Average September 1982 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1982/8210n.hdf "Average October 1982 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1982/8211n.hdf "Average November 1982 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1982/8212n.hdf "Average December 1982 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."

$BIN/add_pal $DST/north/1983/8301n.hdf "Average January 1983 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1983/8302n.hdf "Average February 1983 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1983/8303n.hdf "Average March 1983 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1983/8304n.hdf "Average April 1983 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1983/8305n.hdf "Average May 1983 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1983/8306n.hdf "Average June 1983 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1983/8307n.hdf "Average July 1983 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1983/8308n.hdf "Average August 1983 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1983/8309n.hdf "Average September 1983 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1983/8310n.hdf "Average October 1983 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1983/8311n.hdf "Average November 1983 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1983/8312n.hdf "Average December 1983 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."

$BIN/add_pal $DST/north/1984/8401n.hdf "Average January 1984 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1984/8402n.hdf "Average February 1984 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1984/8403n.hdf "Average March 1984 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1984/8404n.hdf "Average April 1984 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1984/8405n.hdf "Average May 1984 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1984/8406n.hdf "Average June 1984 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1984/8407n.hdf "Average July 1984 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1984/8408n.hdf "Average August 1984 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1984/8409n.hdf "Average September 1984 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1984/8410n.hdf "Average October 1984 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1984/8411n.hdf "Average November 1984 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1984/8412n.hdf "Average December 1984 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."

$BIN/add_pal $DST/north/1985/8501n.hdf "Average January 1985 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1985/8502n.hdf "Average February 1985 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1985/8503n.hdf "Average March 1985 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1985/8504n.hdf "Average April 1985 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1985/8505n.hdf "Average May 1985 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1985/8506n.hdf "Average June 1985 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1985/8507n.hdf "Average July 1985 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1985/8508n.hdf "Average August 1985 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1985/8509n.hdf "Average September 1985 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1985/8510n.hdf "Average October 1985 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1985/8511n.hdf "Average November 1985 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1985/8512n.hdf "Average December 1985 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."

$BIN/add_pal $DST/north/1986/8601n.hdf "Average January 1986 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1986/8602n.hdf "Average February 1986 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1986/8603n.hdf "Average March 1986 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1986/8604n.hdf "Average April 1986 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1986/8605n.hdf "Average May 1986 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1986/8606n.hdf "Average June 1986 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1986/8607n.hdf "Average July 1986 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1986/8608n.hdf "Average August 1986 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1986/8609n.hdf "Average September 1986 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1986/8610n.hdf "Average October 1986 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1986/8611n.hdf "Average November 1986 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1986/8612n.hdf "Average December 1986 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."

$BIN/add_pal $DST/north/1987/8701n.hdf "Average January 1987 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1987/8702n.hdf "Average February 1987 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1987/8703n.hdf "Average March 1987 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1987/8704n.hdf "Average April 1987 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1987/8705n.hdf "Average May 1987 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1987/8706n.hdf "Average June 1987 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1987/8707na.hdf "Average July 1987 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/north/1987/8708na.hdf "Average August 1987 Arctic sea ice concentration from SMMR data originally supplied by NSIDC."

$BIN/add_pal $DST/north/1987/8707n.hdf "Average July 1987 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC.  Missing July 1 through 8, 1987."
$BIN/add_pal $DST/north/1987/8708n.hdf "Average August 1987 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC.  Missing August 25 and 26, 1987."
$BIN/add_pal $DST/north/1987/8709n.hdf "Average September 1987 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1987/8710n.hdf "Average October 1987 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC.  Missing October 6 and 7, 1987."
$BIN/add_pal $DST/north/1987/8711n.hdf "Average November 1987 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"

$BIN/add_pal $DST/north/1988/%8801n.hdf "Average January 1988 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC.  Missing January 1 through 12, 1988."
$BIN/add_pal $DST/north/1988/8802n.hdf "Average February 1988 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1988/8803n.hdf "Average March 1988 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1988/8804n.hdf "Average April 1988 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1988/8805n.hdf "Average May 1988 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC.  Missing May 6 through 9, 1988."
$BIN/add_pal $DST/north/1988/8806n.hdf "Average June 1988 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC.  Missing June 18 and 25, 1988."
$BIN/add_pal $DST/north/1988/8807n.hdf "Average July 1988 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1988/8808n.hdf "Average August 1988 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1988/8809n.hdf "Average September 1988 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC.  Missing September 23, 1988."
$BIN/add_pal $DST/north/1988/8810n.hdf "Average October 1988 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1988/8811n.hdf "Average November 1988 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1988/8812n.hdf "Average December 1988 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC.  Missing December 25 through 27, 1988."

$BIN/add_pal $DST/north/1989/8901n.hdf "Average January 1989 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC.  Missing January 14, 1989."
$BIN/add_pal $DST/north/1989/8902n.hdf "Average February 1989 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1989/8903n.hdf "Average March 1989 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1989/8904n.hdf "Average April 1989 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1989/8905n.hdf "Average May 1989 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1989/8906n.hdf "Average June 1989 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC.  Missing June 7, 1989."
$BIN/add_pal $DST/north/1989/8907n.hdf "Average July 1989 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC.  Missing July 23 and 25, 1989."
$BIN/add_pal $DST/north/1989/8908n.hdf "Average August 1989 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1989/8909n.hdf "Average September 1989 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1989/8910n.hdf "Average October 1989 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC.  Missing October 23, 1989."
$BIN/add_pal $DST/north/1989/8911n.hdf "Average November 1989 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1989/8912n.hdf "Average December 1989 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"

$BIN/add_pal $DST/north/1990/9001n.hdf "Average January 1990 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1990/9002n.hdf "Average February 1990 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1990/9003n.hdf "Average March 1990 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1990/9004n.hdf "Average April 1990 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1990/9005n.hdf "Average May 1990 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1990/9006n.hdf "Average June 1990 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1990/9007n.hdf "Average July 1990 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1990/9008n.hdf "Average August 1990 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC.  Missing August 13, 25, and 26, 1990."
$BIN/add_pal $DST/north/1990/9009n.hdf "Average September 1990 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1990/9010n.hdf "Average October 1990 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC.  Missing October 21, 22, 26, 27, and 28, 1990."
$BIN/add_pal $DST/north/1990/9011n.hdf "Average November 1990 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1990/9012n.hdf "Average December 1990 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC.  Missing December 22 through 26, 1990."

$BIN/add_pal $DST/north/1991/9101n.hdf "Average January 1991 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1991/9102n.hdf "Average February 1991 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1991/9103n.hdf "Average March 1991 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1991/9104n.hdf "Average April 1991 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1991/9105n.hdf "Average May 1991 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1991/9106n.hdf "Average June 1991 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1991/9107n.hdf "Average July 1991 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1991/9108n.hdf "Average August 1991 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1991/9109n.hdf "Average September 1991 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1991/9110n.hdf "Average October 1991 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1991/9111n.hdf "Average November 1991 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/1991/9112n.hdf "Average December 1991 Arctic sea ice concentration from SSM/I data originally supplied by NSIDC.  Missing December 27, 1991."

# Composite monthly averages

$BIN/add_pal $DST/north/01n.hdf "Average January Arctic sea ice concentration 1979 through 1991 from SMMR and SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/02n.hdf "Average February Arctic sea ice concentration 1979 through 1991 from SMMR and SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/03n.hdf "Average March Arctic sea ice concentration 1979 through 1991 from SMMR and SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/04n.hdf "Average April Arctic sea ice concentration 1979 through 1991 from SMMR and SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/05n.hdf "Average May Arctic sea ice concentration 1979 through 1991 from SMMR and SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/06n.hdf "Average June Arctic sea ice concentration 1979 through 1991 from SMMR and SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/07n.hdf "Average July Arctic sea ice concentration 1979 through 1991 from SMMR and SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/08n.hdf "Average August Arctic sea ice concentration 1979 through 1991 from SMMR and SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/09n.hdf "Average September Arctic sea ice concentration 1979 through 1991 from SMMR and SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/10n.hdf "Average October Arctic sea ice concentration 1978 through 1991 from SMMR and SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/11n.hdf "Average November Arctic sea ice concentration 1978 through 1991 from SMMR and SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/north/12n.hdf "Average December Arctic sea ice concentration 1978 through 1991 from SMMR and SSM/I data originally supplied by NSIDC"

#-------------------------------------------------------------------------
#- SOUTHERN HEMISPHERE ---------------------------------------------------
#-------------------------------------------------------------------------
#
# Monthly averages for each year are calculated from the data for that
# year alone

for Y in 78 79 80 81 82 83 84 85 86 87
do
	for M in 01 02 03 04 05 06 07 08 09 10 11 12
	do
		$BIN/average -v -o $DST/south/19$Y/$Y$M"s.hdf" \
			$SMMR/icecon_s/19$Y/$Y$M??s.hdf
		done
	done

# To avoid overwriting the SMMR data for July and August of 1987,
mv $DST/south/1987/8707s.hdf $DST/south/1987/8707sa.hdf
mv $DST/south/1987/8708s.hdf $DST/south/1987/8708sa.hdf

for Y in 87 88 89 90 91
do
	for M in jan feb mar apr may jun jul aug sep oct nov dec
	do
		$BIN/average -v -o $DST/south/19$Y/$M$Y"_s.hdf" \
			$SSMI/south/19$Y/$M/*.tot
		done

	# Rename the files to make the names consistent with SMMR data

	mv $DST/south/19$Y/jan$Y"_s.hdf" $DST/south/19$Y/$Y"01s.hdf"
	mv $DST/south/19$Y/feb$Y"_s.hdf" $DST/south/19$Y/$Y"02s.hdf"
	mv $DST/south/19$Y/mar$Y"_s.hdf" $DST/south/19$Y/$Y"03s.hdf"
	mv $DST/south/19$Y/apr$Y"_s.hdf" $DST/south/19$Y/$Y"04s.hdf"
	mv $DST/south/19$Y/may$Y"_s.hdf" $DST/south/19$Y/$Y"05s.hdf"
	mv $DST/south/19$Y/jun$Y"_s.hdf" $DST/south/19$Y/$Y"06s.hdf"
	mv $DST/south/19$Y/jul$Y"_s.hdf" $DST/south/19$Y/$Y"07s.hdf"
	mv $DST/south/19$Y/aug$Y"_s.hdf" $DST/south/19$Y/$Y"08s.hdf"
	mv $DST/south/19$Y/sep$Y"_s.hdf" $DST/south/19$Y/$Y"09s.hdf"
	mv $DST/south/19$Y/oct$Y"_s.hdf" $DST/south/19$Y/$Y"10s.hdf"
	mv $DST/south/19$Y/nov$Y"_s.hdf" $DST/south/19$Y/$Y"11s.hdf"
	mv $DST/south/19$Y/dec$Y"_s.hdf" $DST/south/19$Y/$Y"12s.hdf"
	done

# Because there are only two days of valid data for December 1987, this
# average should be discarded.

rm $DST/south/1987/8712s.hdf

# One might argue that enough of October 1978, July 1987, and January 1988
# are missing to warrant exclusion of these files as well; I chose not to
# exclude them from the composite averages.  If you disagree, uncomment the
# following three lines:

# rm $DST/south/1978/7810s.hdf
# rm $DST/south/1987/8707s.hdf
# rm $DST/south/1988/8801s.hdf

# If you want to use the SMMR data for July 1987 rather than SSM/I,
# mv $DST/south/1987/8707sa.hdf $DST/south/1987/8707s.hdf

# Composite monthly averages are calculated from the monthly averages
# themselves

for M in 01 02 03 04 05 06 07 08 09 10 11 12
do
	$BIN/average -v -o $DST/south/$M"n.hdf" \
		$DST/south/1978/78$M"s.hdf" \
		$DST/south/1979/79$M"s.hdf" \
		$DST/south/1980/80$M"s.hdf" \
		$DST/south/1981/81$M"s.hdf" \
		$DST/south/1982/82$M"s.hdf" \
		$DST/south/1983/83$M"s.hdf" \
		$DST/south/1984/84$M"s.hdf" \
		$DST/south/1985/85$M"s.hdf" \
		$DST/south/1986/86$M"s.hdf" \
		$DST/south/1987/87$M"s.hdf" \
		$DST/south/1988/88$M"s.hdf" \
		$DST/south/1989/89$M"s.hdf" \
		$DST/south/1990/90$M"s.hdf" \
		$DST/south/1991/91$M"s.hdf"
	done

# Since October 1978 and January 1988 have significant missing data,
# I modified their names to emphasize their difference from other averages.

mv $DST/south/1978/7810s.hdf $DST/south/1978/%7810s.hdf
mv $DST/south/1988/8801s.hdf $DST/south/1988/%8801s.hdf

#- ANNOTATION and PALETTE ASSIGNMENT -------------------------------------
#
# This operation adds information to the data files containing the monthly
# and composite monthly averages.  Each image is associated with a
# standard sea-ice concentration palette, and are annotated with a label
# that is specific to it.  Consequently this operation cannot be enclosed
# in a loop.

# Monthly averages

$BIN/add_pal $DST/south/1978/7810s.hdf "Average October 1978 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1978/7811s.hdf "Average November 1978 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1978/7812s.hdf "Average December 1978 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."

$BIN/add_pal $DST/south/1979/7901s.hdf "Average January 1979 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1979/7902s.hdf "Average February 1979 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1979/7903s.hdf "Average March 1979 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1979/7904s.hdf "Average April 1979 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1979/7905s.hdf "Average May 1979 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1979/7906s.hdf "Average June 1979 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1979/7907s.hdf "Average July 1979 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1979/7908s.hdf "Average August 1979 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1979/7909s.hdf "Average September 1979 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1979/7910s.hdf "Average October 1979 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1979/7911s.hdf "Average November 1979 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1979/7912s.hdf "Average December 1979 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."

$BIN/add_pal $DST/south/1980/8001s.hdf "Average January 1980 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1980/8002s.hdf "Average February 1980 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1980/8003s.hdf "Average March 1980 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1980/8004s.hdf "Average April 1980 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1980/8005s.hdf "Average May 1980 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1980/8006s.hdf "Average June 1980 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1980/8007s.hdf "Average July 1980 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1980/8008s.hdf "Average August 1980 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1980/8009s.hdf "Average September 1980 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1980/8010s.hdf "Average October 1980 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1980/8011s.hdf "Average November 1980 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1980/8012s.hdf "Average December 1980 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."

$BIN/add_pal $DST/south/1981/8101s.hdf "Average January 1981 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1981/8102s.hdf "Average February 1981 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1981/8103s.hdf "Average March 1981 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1981/8104s.hdf "Average April 1981 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1981/8105s.hdf "Average May 1981 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1981/8106s.hdf "Average June 1981 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1981/8107s.hdf "Average July 1981 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1981/8108s.hdf "Average August 1981 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1981/8109s.hdf "Average September 1981 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1981/8110s.hdf "Average October 1981 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1981/8111s.hdf "Average November 1981 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1981/8112s.hdf "Average December 1981 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."

$BIN/add_pal $DST/south/1982/8201s.hdf "Average January 1982 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1982/8202s.hdf "Average February 1982 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1982/8203s.hdf "Average March 1982 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1982/8204s.hdf "Average April 1982 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1982/8205s.hdf "Average May 1982 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1982/8206s.hdf "Average June 1982 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1982/8207s.hdf "Average July 1982 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1982/8208s.hdf "Average August 1982 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1982/8209s.hdf "Average September 1982 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1982/8210s.hdf "Average October 1982 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1982/8211s.hdf "Average November 1982 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1982/8212s.hdf "Average December 1982 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."

$BIN/add_pal $DST/south/1983/8301s.hdf "Average January 1983 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1983/8302s.hdf "Average February 1983 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1983/8303s.hdf "Average March 1983 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1983/8304s.hdf "Average April 1983 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1983/8305s.hdf "Average May 1983 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1983/8306s.hdf "Average June 1983 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1983/8307s.hdf "Average July 1983 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1983/8308s.hdf "Average August 1983 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1983/8309s.hdf "Average September 1983 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1983/8310s.hdf "Average October 1983 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1983/8311s.hdf "Average November 1983 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1983/8312s.hdf "Average December 1983 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."

$BIN/add_pal $DST/south/1984/8401s.hdf "Average January 1984 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1984/8402s.hdf "Average February 1984 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1984/8403s.hdf "Average March 1984 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1984/8404s.hdf "Average April 1984 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1984/8405s.hdf "Average May 1984 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1984/8406s.hdf "Average June 1984 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1984/8407s.hdf "Average July 1984 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1984/8408s.hdf "Average August 1984 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1984/8409s.hdf "Average September 1984 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1984/8410s.hdf "Average October 1984 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1984/8411s.hdf "Average November 1984 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1984/8412s.hdf "Average December 1984 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."

$BIN/add_pal $DST/south/1985/8501s.hdf "Average January 1985 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1985/8502s.hdf "Average February 1985 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1985/8503s.hdf "Average March 1985 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1985/8504s.hdf "Average April 1985 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1985/8505s.hdf "Average May 1985 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1985/8506s.hdf "Average June 1985 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1985/8507s.hdf "Average July 1985 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1985/8508s.hdf "Average August 1985 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1985/8509s.hdf "Average September 1985 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1985/8510s.hdf "Average October 1985 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1985/8511s.hdf "Average November 1985 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1985/8512s.hdf "Average December 1985 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."

$BIN/add_pal $DST/south/1986/8601s.hdf "Average January 1986 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1986/8602s.hdf "Average February 1986 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1986/8603s.hdf "Average March 1986 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1986/8604s.hdf "Average April 1986 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1986/8605s.hdf "Average May 1986 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1986/8606s.hdf "Average June 1986 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1986/8607s.hdf "Average July 1986 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1986/8608s.hdf "Average August 1986 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1986/8609s.hdf "Average September 1986 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1986/8610s.hdf "Average October 1986 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1986/8611s.hdf "Average November 1986 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1986/8612s.hdf "Average December 1986 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."

$BIN/add_pal $DST/south/1987/8701s.hdf "Average January 1987 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1987/8702s.hdf "Average February 1987 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1987/8703s.hdf "Average March 1987 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1987/8704s.hdf "Average April 1987 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1987/8705s.hdf "Average May 1987 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1987/8706s.hdf "Average June 1987 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1987/8707sa.hdf "Average July 1987 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."
$BIN/add_pal $DST/south/1987/8708sa.hdf "Average August 1987 Antarctic sea ice concentration from SMMR data originally supplied by NSIDC."

$BIN/add_pal $DST/south/1987/jul87_s.hdf "Average July 1987 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC.  Missing July 1 through 8, 1987."
$BIN/add_pal $DST/south/1987/aug87_s.hdf "Average August 1987 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC.  Missing August 25 and 26, 1987."
$BIN/add_pal $DST/south/1987/sep87_s.hdf "Average September 1987 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1987/oct87_s.hdf "Average October 1987 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC.  Missing October 6 and 7, 1987."
$BIN/add_pal $DST/south/1987/nov87_s.hdf "Average November 1987 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"

$BIN/add_pal $DST/south/1988/%jan88_s.hdf "Average January 1988 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC.  Missing January 1 through 12, 1988."
$BIN/add_pal $DST/south/1988/feb88_s.hdf "Average February 1988 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1988/mar88_s.hdf "Average March 1988 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1988/apr88_s.hdf "Average April 1988 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1988/may88_s.hdf "Average May 1988 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC.  Missing May 6 through 9, 1988."
$BIN/add_pal $DST/south/1988/jun88_s.hdf "Average June 1988 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC.  Missing June 18 and 25, 1988."
$BIN/add_pal $DST/south/1988/jul88_s.hdf "Average July 1988 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1988/aug88_s.hdf "Average August 1988 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1988/sep88_s.hdf "Average September 1988 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC.  Missing September 23, 1988."
$BIN/add_pal $DST/south/1988/oct88_s.hdf "Average October 1988 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1988/nov88_s.hdf "Average November 1988 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1988/dec88_s.hdf "Average December 1988 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC.  Missing December 25 through 27, 1988."

$BIN/add_pal $DST/south/1989/jan89_s.hdf "Average January 1989 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC.  Missing January 14, 1989."
$BIN/add_pal $DST/south/1989/feb89_s.hdf "Average February 1989 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1989/mar89_s.hdf "Average March 1989 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1989/apr89_s.hdf "Average April 1989 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1989/may89_s.hdf "Average May 1989 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1989/jun89_s.hdf "Average June 1989 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC.  Missing June 7, 1989."
$BIN/add_pal $DST/south/1989/jul89_s.hdf "Average July 1989 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC.  Missing July 23 and 25, 1989."
$BIN/add_pal $DST/south/1989/aug89_s.hdf "Average August 1989 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1989/sep89_s.hdf "Average September 1989 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1989/oct89_s.hdf "Average October 1989 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC.  Missing October 23, 1989."
$BIN/add_pal $DST/south/1989/nov89_s.hdf "Average November 1989 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1989/dec89_s.hdf "Average December 1989 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"

$BIN/add_pal $DST/south/1990/jan90_s.hdf "Average January 1990 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1990/feb90_s.hdf "Average February 1990 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1990/mar90_s.hdf "Average March 1990 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1990/apr90_s.hdf "Average April 1990 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1990/may90_s.hdf "Average May 1990 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1990/jun90_s.hdf "Average June 1990 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1990/jul90_s.hdf "Average July 1990 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1990/aug90_s.hdf "Average August 1990 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC.  Missing August 13, 25, and 26, 1990."
$BIN/add_pal $DST/south/1990/sep90_s.hdf "Average September 1990 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1990/oct90_s.hdf "Average October 1990 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC.  Missing October 21, 22, 26, 27, and 28, 1990."
$BIN/add_pal $DST/south/1990/nov90_s.hdf "Average November 1990 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1990/dec90_s.hdf "Average December 1990 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC.  Missing December 22 through 26, 1990."

$BIN/add_pal $DST/south/1991/jan91_s.hdf "Average January 1991 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1991/feb91_s.hdf "Average February 1991 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1991/mar91_s.hdf "Average March 1991 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1991/apr91_s.hdf "Average April 1991 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1991/may91_s.hdf "Average May 1991 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1991/jun91_s.hdf "Average June 1991 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1991/jul91_s.hdf "Average July 1991 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1991/aug91_s.hdf "Average August 1991 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1991/sep91_s.hdf "Average September 1991 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1991/oct91_s.hdf "Average October 1991 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1991/nov91_s.hdf "Average November 1991 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/1991/dec91_s.hdf "Average December 1991 Antarctic sea ice concentration from SSM/I data originally supplied by NSIDC.  Missing December 27, 1991."

# Composite monthly averages

$BIN/add_pal $DST/south/jan_s.hdf "Average January Antarctic sea ice concentration 1979 through 1991 from SMMR and SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/feb_s.hdf "Average February Antarctic sea ice concentration 1979 through 1991 from SMMR and SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/mar_s.hdf "Average March Antarctic sea ice concentration 1979 through 1991 from SMMR and SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/apr_s.hdf "Average April Antarctic sea ice concentration 1979 through 1991 from SMMR and SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/may_s.hdf "Average May Antarctic sea ice concentration 1979 through 1991 from SMMR and SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/jun_s.hdf "Average June Antarctic sea ice concentration 1979 through 1991 from SMMR and SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/jul_s.hdf "Average July Antarctic sea ice concentration 1979 through 1991 from SMMR and SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/aug_s.hdf "Average August Antarctic sea ice concentration 1979 through 1991 from SMMR and SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/sep_s.hdf "Average September Antarctic sea ice concentration 1979 through 1991 from SMMR and SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/oct_s.hdf "Average October Antarctic sea ice concentration 1978 through 1991 from SMMR and SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/nov_s.hdf "Average November Antarctic sea ice concentration 1978 through 1991 from SMMR and SSM/I data originally supplied by NSIDC"
$BIN/add_pal $DST/south/dec_s.hdf "Average December Antarctic sea ice concentration 1978 through 1991 from SMMR and SSM/I data originally supplied by NSIDC"

#-------------------------------------------------------------------------