#!/bin/bash

IDS="id5628651 id662424 id13145084 id14620483 id14594730 id550119 id14595225 id12776226 id2398386 id14722068
     id14573303 id547238 id12777335 id14155848"


echo '<html>
<head>
<title>ExClim</title>
<!-- <meta http-equiv="refresh" content="60;URL=oklab-timeseries-exclim.html"> -->
</head>
<body>
<center>
<h1>Temp / Experimental Climatology / Augsburg University data</h1>' >temp.html

echo '<html>
<head>
<title>ExClim</title>
<!-- <meta http-equiv="refresh" content="60;URL=oklab-timeseries-exclim.html"> -->
</head>
<body>
<center>
<h1>Rhum / Experimental Climatology / Augsburg University data</h1>' >rhum.html

echo '<html>
<head>
<title>ExClim</title>
<!-- <meta http-equiv="refresh" content="60;URL=oklab-timeseries-exclim.html"> -->
</head>
<body>
<center>
<h1>PM10 / Experimental Climatology / Augsburg University data</h1>' >pm10.html

echo '<html>
<head>
<title>ExClim</title>
<!-- <meta http-equiv="refresh" content="60;URL=oklab-timeseries-exclim.html"> -->
</head>
<body>
<center>
<h1>PM2.5 / Experimental Climatology / Augsburg University data</h1>' >pm25.html



for ID in ${IDS} ; do

HTML="${ID}.html"

echo '<html>
<head>
<title>ExClim</title>
<!-- <meta http-equiv="refresh" content="60;URL=oklab-timeseries-exclim.html"> -->
</head>
<body>
<center>
<h1>'${ID}' / Experimental Climatology / Augsburg University data</h1>

<h2>Temperature</h2>
<img src="https://saqn.geo.uni-augsburg.de/exclim/'${ID}'_temp_timeser.png" width=1200><br>
<img src="https://saqn.geo.uni-augsburg.de/exclim/'${ID}'_temp_scatter_raw.png" width=600>
<img src="https://saqn.geo.uni-augsburg.de/exclim/'${ID}'_temp_scatter_ann.png" width=600><br>
<img src="https://saqn.geo.uni-augsburg.de/exclim/'${ID}'_temp_recalser.png" width=1200><br>
<br>

<h2>Relative Humidity</h2>
<img src="https://saqn.geo.uni-augsburg.de/exclim/'${ID}'_rhum_timeser.png" width=1200><br>
<img src="https://saqn.geo.uni-augsburg.de/exclim/'${ID}'_rhum_scatter_raw.png" width=600>
<img src="https://saqn.geo.uni-augsburg.de/exclim/'${ID}'_rhum_scatter_ann.png" width=600><br>
<img src="https://saqn.geo.uni-augsburg.de/exclim/'${ID}'_rhum_recalser.png" width=1200><br>
<br>


<h2>PM10</h2>
<img src="https://saqn.geo.uni-augsburg.de/exclim/'${ID}'_pm10_timeser.png" width=1200><br>
<img src="https://saqn.geo.uni-augsburg.de/exclim/'${ID}'_pm10_scatter_raw.png" width=600>
<img src="https://saqn.geo.uni-augsburg.de/exclim/'${ID}'_pm10_scatter_ann.png" width=600><br>
<img src="https://saqn.geo.uni-augsburg.de/exclim/'${ID}'_pm10_recalser.png" width=1200><br>
<br>

<h2>PM2.5</h2>
<img src="https://saqn.geo.uni-augsburg.de/exclim/'${ID}'_pm25_timeser.png" width=1200><br>
<img src="https://saqn.geo.uni-augsburg.de/exclim/'${ID}'_pm25_scatter_raw.png" width=600>
<img src="https://saqn.geo.uni-augsburg.de/exclim/'${ID}'_pm25_scatter_ann.png" width=600><br>
<img src="https://saqn.geo.uni-augsburg.de/exclim/'${ID}'_pm25_recalser.png" width=1200><br>
<br>


</center>
</body>
</html>

' >${HTML}


echo '
<h2>'${ID}'</h2>
<img src="https://saqn.geo.uni-augsburg.de/exclim/'${ID}'_temp_timeser.png" width=1200><br>
<img src="https://saqn.geo.uni-augsburg.de/exclim/'${ID}'_temp_scatter_raw.png" width=600>
<img src="https://saqn.geo.uni-augsburg.de/exclim/'${ID}'_temp_scatter_ann.png" width=600><br>
<img src="https://saqn.geo.uni-augsburg.de/exclim/'${ID}'_temp_recalser.png" width=1200><br>
<br>
' >>temp.html

echo '
<h2>'${ID}'</h2>
<img src="https://saqn.geo.uni-augsburg.de/exclim/'${ID}'_rhum_timeser.png" width=1200><br>
<img src="https://saqn.geo.uni-augsburg.de/exclim/'${ID}'_rhum_scatter_raw.png" width=600>
<img src="https://saqn.geo.uni-augsburg.de/exclim/'${ID}'_rhum_scatter_ann.png" width=600><br>
<img src="https://saqn.geo.uni-augsburg.de/exclim/'${ID}'_rhum_recalser.png" width=1200><br>
<br>
' >>rhum.html

if [ "${ID}" != "id5628651" ] ; then


echo '
<h2>'${ID}'</h2>
<img src="https://saqn.geo.uni-augsburg.de/exclim/'${ID}'_pm10_timeser.png" width=1200><br>
<img src="https://saqn.geo.uni-augsburg.de/exclim/'${ID}'_pm10_scatter_raw.png" width=600>
<img src="https://saqn.geo.uni-augsburg.de/exclim/'${ID}'_pm10_scatter_ann.png" width=600><br>
<img src="https://saqn.geo.uni-augsburg.de/exclim/'${ID}'_pm10_recalser.png" width=1200><br>
<br>
' >>pm10.html

echo '
<h2>'${ID}'</h2>
<img src="https://saqn.geo.uni-augsburg.de/exclim/'${ID}'_pm25_timeser.png" width=1200><br>
<img src="https://saqn.geo.uni-augsburg.de/exclim/'${ID}'_pm25_scatter_raw.png" width=600>
<img src="https://saqn.geo.uni-augsburg.de/exclim/'${ID}'_pm25_scatter_ann.png" width=600><br>
<img src="https://saqn.geo.uni-augsburg.de/exclim/'${ID}'_pm25_recalser.png" width=1200><br>
<br>
' >>pm25.html

fi

done


echo '
</center>
</body>
</html>
' >>temp.html

echo '
</center>
</body>
</html>
' >>rhum.html

echo '
</center>
</body>
</html>
' >>pm10.html

echo '
</center>
</body>
</html>
' >>pm25.html

exit 0
