#!/bin/csh

rm -f H1636-536_gscall_mjd*_lc_neo_corrected.jpg

foreach mjd (55067.84 55069.16 55073.28 55087.72 55155.78 55189.97 55199.28 55205.91 55218.28 55272.59 55287.03 55339.97 55591.84 55708.09 55877.16 55924.34 55926.34 55972.59 56105.34 56342.41 56467.47)

convert H1636-536_gscall_mjd${mjd}_lc_neo_corrected.png H1636-536_gscall_mjd${mjd}_lc_neo_corrected.jpg
cd ../${mjd}
rm -f *.jpg
mv ../lib/H1636-536_gscall_mjd${mjd}_lc_neo_corrected.jpg .

echo "<html>" > index.html
echo "<title> MJD=${mjd} </title>" >> index.html
echo "<body>" >> index.html
echo "<body bgcolor=white>" >> index.html
echo "<img src=H1636-536_gscall_mjd${mjd}_lc_neo_corrected.jpg align="center">" >> index.html
echo "</body>" >> index.html
echo "</html>" >> index.html
cd ../lib

end
