forked from noqsi/WWVB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwwvbaq.sh
executable file
·42 lines (40 loc) · 1.86 KB
/
wwvbaq.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/sh
# $Id$
./wwvbaq | python wwvbred.py
# $Log$
# Revision 1.3 2010-08-03 14:54:55 jpd
# Added Matt's revisions:
# - Data acquisition code in wwvbaq.c now uses real time priority; Makefile hacked accordingly
#
# - wwvbred.py no longer uses memmap; wwvbred now reads single lines of data
# off of a bitstream piped to it from wwvbaq. The scrupt wwvbaq.sh is now pipelined
#
# - wwvbred.py reads the time off of the signal piped to it to it using the
# codes described here: http://en.wikipedia.org/wiki/WWVB#Time_Code_Format
# - Initially, wwvbred throws data into a buffer until it detects the time,
# then opens a file wwvb-YYYYMMDDhhmmss-epoch.tsv where "epoch" is the number
# of seconds since midnight January 1, 1970
# - Every day at midnight UTC, wwvbred.py changes to outputting to a new file
#
# - wwvbred.py corrects for the 45 degree phase shift that happens between 10
# and 15 minutes on the hour, as documented here:
# http://en.wikipedia.org/wiki/WWVB#Station_ID
#
# - wwvbaq_rename.py renames legacy datafiles using the same logic and conventions from in wwvbred.py
#
# - Created directory "fermi":
# - proc_fermi_grbs.sh is a toplevel script that does the following:
# - Grabs http://gcn.gsfc.nasa.gov/fermi_grbs.html with curl
# - pipes that to parse_fermi_grbs.awk
# - optionally pipes that to find_fermi_events.py (currently disabled)
# - parse_fermi_grbs.awk generates an XEphem database of fermi gamma-ray burst events
# - find_fermi_events.py reads the database generated by parse fermi grbs, uses the local
# latitude and longitude of Noqsi aerospace (40.00953472, -105.20454705)
# and calculates whether the event was above the local horizon using PyEphem
#
# Revision 1.2 2010-07-25 16:32:39 jpd
# First real production versions.
#
# Revision 1.1 2010-03-29 20:01:26 jpd
# Further fixes for coherent decimation.
#