#https://www.ncei.noaa.gov/data/integrated-global-radiosonde-archive/doc/igra2-station-list.txt
#GMM00010739  48.8333    9.2000  314.0    STUTTGART/SCHNARRENBERG        1957 2023  66654
#GMM00010771  49.4283   11.9022  417.0    KUEMMERSBRUCK                  1969 2023  55934
#GMM00010868  48.2442   11.5525  484.0    MUENCHEN-OBERSCHLEISSHEIM      1976 2023  53898
#GMM00010954  47.8342   10.8667  756.0    ALTENSTADT                     1977 2023  19619
#GMM00010962  47.8019   11.0119  977.0    HOHENPEISSENBERG               1982 2023   4240

STATS="GMM00010739 GMM00010771 GMM00010868 GMM00010954 GMM00010962"
URL="https://www.ncei.noaa.gov/data/integrated-global-radiosonde-archive/access/data-y2d/"

for STAT in $STATS ; do

ZIP="${STAT}-data-beg2021.txt.zip"
FILE="${STAT}-data.txt"

echo "${URL}${ZIP}"

#curl -o "${ZIP}" "${URL}${ZIP}"
curl -o "${ZIP}" -z "${ZIP}" "${URL}${ZIP}"

unzip -f "${ZIP}"

TIME=`tail -n 1 ${FILE} | sed 's|;| |g' | awk '{print $2}'`
echo TIME = $TIME


exit 0

done
