#!/bin/sh

EXE="/Hysplit/exec"
INP="."

rm -f consites.txt

let yy=1948
while [ $yy -le 2024 ];do
   echo $yy
   if [ $yy -eq 1948 ];then
      ${EXE}/con2stn -d1 -i${INP}/sfc${yy}.bin -sconsites.dat -oresults.txt
   else
      ${EXE}/con2stn -d2 -i${INP}/sfc${yy}.bin -sconsites.dat -oresults.txt
   fi    
   cat results.txt >>consites.txt
   rm results.txt
   let yy=$yy+1
done