Skip to content

Instantly share code, notes, and snippets.

@Gdahuks
Created March 2, 2024 19:01
Show Gist options
  • Save Gdahuks/ae97bebaaff937189a235f9dfecb41e1 to your computer and use it in GitHub Desktop.
Save Gdahuks/ae97bebaaff937189a235f9dfecb41e1 to your computer and use it in GitHub Desktop.
Download meteorological data archive from https://danepubliczne.imgw.pl/datastore (default Air temperature)
# Download meteorological data archive from https://danepubliczne.imgw.pl/datastore
# Code Name
# B00300S Air temperature (official)
# B00305A Ground temperature (sensor)
# B00202A Wind direction (sensor)
# B00702A Average wind speed 10 minutes (sensor)
# B00703A Maximum wind speed (sensor)
# B00608S Precipitation sum 10 minutes
# B00604S Daily precipitation sum
# B00606S Hourly precipitation sum
# B00802A Relative humidity (sensor)
# B00714A Maximum gust in 10 minutes from Synoptic Station
# B00910A Snow water equivalent (observer)
for yyyy in {2012..2022}; do
for mm in {01..12}; do
wget "https://danepubliczne.imgw.pl/datastore/getfiledown/Arch/Telemetria/Meteo/${yyyy}/Meteo_${yyyy}-${mm}.zip"
unzip Meteo_${yyyy}-${mm}.zip -d temp
rm Meteo_${yyyy}-${mm}.zip
mv temp/B00300S* . # Air temperature (official)
rm -r temp
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment