#!/bin/sh
set -e
#
# convert a global average expressed per cm^2 to a
# global integral by multiplying by the surface
# area of the Earth (cm^2) and then converting 
# to moles by dividing by Avogadro's number
#
#  with R_earth = 6.37122E+08 cm
#  factor = 5.100997E+18/6.0221413E+23

if [ $# -ne 3 ] ; then
  echo "Error in $0: invalid number of arguments $#"
  exit 1
fi

pfx=$1
inp=$2
out=$3

release inp
access  inp ${pfx}_${inp}
echo "          8.4704E-06" | ccc xlin inp ${pfx}_${out}

release inp
