Globe draws an map of the world rotated to present the
the iluminated side, thus you can judge who is asleep and
shouldn't be phoned ☺
Credit to Jef Poskanzer for the idea (ascii map version).
Relies on Doug McIlroy's map databases, which can be downloaded via:
mkdir /lib/map
cd /lib/map
hget http://www.cs.dartmouth.edu/~doug/wdbii.tar.gz | gunzip | tar x
-Steve
care should be taken... it gets light at 5am in summer around here!
BTW we already had the same contents of /lib/map here
which people might wish to check before downloading wdbii.tar.gz
globe won't work in canada, no matter how much i try to persuade it that
the great white north is still part of the colonies :)
please add a '-u' to the date to work for other time zones:
#!/bin/rc
gmt=`{date -u}
angle=`{echo $gmt | awk -F'[ :]' '{print (360*(($4*60+$5)/(24*60))-180)}'}
map orthographic -o 0 $angle 0 | plot
examples with and without '-u':
http://pages.cpsc.ucalgary.ca/~mirtchov/screenshtos/globe-u.gif
http://pages.cpsc.ucalgary.ca/~mirtchov/screenshtos/globe.gif
andrey
http://pages.cpsc.ucalgary.ca/~mirtchov/p9/nasat/
meteorological analysis not included :)
oops, s/shtos/shots/
my bad...
Quite right,
I had a -u but must have deleted it when I
"tidied it up" prior to posting (Ugh).
-Steve
:(
I don't get it. Do you mean
timezone=`{cat /adm/timezone/local}
?
Your variant is a no-op. Think about how the timezone stuff works.
you're right... on the other hand the fact that i can run to the
university and reboot the machine every time i crash it is no excuse
for being stupid. this time it hung because it simply ran out of
processes calling the same script over and over again recursively.
this morning i faced a terminal spewing 'no procs' messages over and
over.
signed: silly
I found one little thing in globe.c:
> yaw = (tm->hour+ (tm->min/60) -12) * degperhour;
yaw = (tm->hour+ (tm->min/60.0) -12) * degperhour;
(without the .0 in 60.0 yaw would change once per hour on the hour)
I attached my current globeloop script; it assumes that
globe.c has been installed as games/globeangle .
I don't script in rc very often (guess it shows; feedback welcome)
Axel.