This repo serves as a distribution point for near realtime and archive access to global cloudmaps you can use with xplanet (see https://github.com/apollo-ng/xfce-planet) or as blender textures. Full pull not recommended :)
You can simply get the latest image from:
https://raw.githubusercontent.com/apollo-ng/cloudmap/master/global.jpg
If you want to automate the process, this snippet avoids abusing githubs delivery infrastructure and traffic budget:
#!/bin/sh
PATH=$PATH:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# Get latest remote checksum
ORIGINSHA=$(wget https://raw.githubusercontent.com/apollo-ng/cloudmap/master/global.sha256 --no-cache -q -O - | awk {'print $1;'})
# Generate local checksum
if [ -e clouds.jpg ];
then
LOCALSHA=$(sha256sum clouds.jpg | awk {'print $1;'})
fi
# Check if we're behind origin
if [ "${ORIGINSHA}" != "${LOCALSHA}" ];
then
# Download raw global.jpg from master
wget https://raw.githubusercontent.com/apollo-ng/cloudmap/master/global.jpg?${ORIGINSHA} --no-cache -q -O global.jpg
# Generate checksum of downloaded file
NEWSHA=$(sha256sum global.jpg | awk {'print $1;'})
# Check if download's chksum corresponds to origin
if [ "$NEWSHA" == "$ORIGINSHA" ];
then
mv global.jpg clouds.jpg
else
rm global.jpg
fi
fi
To get archived images, just check out the specific commit(s) for the timestamp(s) you're interested in.
The whole process is set up to work completely autonomously, pulling the latest images from the following satellites, to get full planet coverage (except polar regions)
-
MTSAT2 - Himawari 7 - L: 2006/02/18 - P: GEO E145°
- Channel 4: 6.5-7.0um water vapor channel (IR3) with a HgCdTe detector
-
MSG3 - Meteosat-10 - L: 2012/07/05 - P: GEO 0°
- Channel 9: 9.80-11.80um Spinning Enhanced Visible and InfraRed (HgCdTe) Imager (SEVIRI)
- https://directory.eoportal.org/web/eoportal/satellite-missions/m/meteosat-second-generation
-
MET7 - Meteosat-7 (IODC) - L: 2006/12/05 - P: GEO E57.3°
-
GOES13 - GOES-N - L: 2006/05/24 - P: GEO W75°
- Channel 4: IR Imager
-
GOES15 - GOES-P - L: 2010/03/04 - P: GEO W135°
- Channel 4: IR Imager
Dundee Satellite Receiving Station, Dundee University, UK https://www.sat.dundee.ac.uk/
https://github.com/jmozmoz/cloudmap
Just a cronjob, running every three hours beginning at 0115 executing:
#!/bin/bash
PREFT=$(stat -c %Y global.jpg)
nice -n 19 /usr/local/bin/create_map -c CreateCloudMap.ini
POSTFT=$(stat -c %Y global.jpg)
if [ "${PREFT}" != "${POSTFT}" ];
then
TIMESTAMP=$(ls -altr raw/*.jpeg | tail -n1 | awk {'print $9;'})
arTS=(${TIMESTAMP//_/ })
# Parse and pad dundee's unpadded file timestamps (yikes!)
YEAR=${arTS[0]:4:8};
MONTH=$(printf "%02d\n" ${arTS[1]});
DAY=$(printf "%02d\n" ${arTS[2]});
HOUR=$(printf "%04d\n" ${arTS[3]});
TIMESTAMP="${YEAR}-${MONTH}-${DAY}T${HOUR}Z"
/usr/bin/sha256sum global.jpg > global.sha256
git add global.jpg
git add global.sha256
git commit -m "Autogenerated global cloudmap @ ${TIMESTAMP}"
git push
fi
Since we all paid for construction & launch of those birds with our tax money the images belong to everyone. The actual creative work of stitching the images together is done by software, which cannot claim anything because it has no rights. Therefore you can do whatever you want with these images.
Created and operated by Apollo-NG Mobile Hackerspace https://apollo.open-resource.org/