Shower Filter Code - Aug. 3
I have the complete list of showers for 2004. (See July
31.) Unfortunately I am having trouble running the uptime program on
months after May 2004. Could this be because of data being moved over to
/opt?
In any case, I am calculating the "good" shower times month-by-month
and including the resulting files in the showers directory along with the
data. Before continuing with this, however, I realized I need to implement
the option to not write the .health file when CheckHealth is called, because
the program which finds the total uptime of the array is creating large
numbers of health files (one per minute). I am planning to go in and delete
the ones created when I ran the program on the first half of 2004. (Selecting
on the creation date of the file so that all of the shower .health files
created by analysiscut2 will still be there.)
Good showers, Jan-May 2004
Unfiltered text file of good showers
Filtered text file of good showers
Code used for getting a text file of "good" showers from the the
complete list of shower data:
- uptime.cc - Finds time periods when all CIT
sites were healthy. Output:
- totaluptime.pl - Finds the total time during
the selected period that all CIT sites were healthy. (Prints to screen.)
- getshowers.pl - Gets list of showers from
web page and makes a text file of times. Output:
- goodshowers.pl - Compares the output of
getshowers.pl to the output of uptime.cc to make a list of showers that
happened when all sites were online. Output:
These are concatenated into jan-may-goodshowers.txt.
- makelinks.pl - Takes the output of
goodshowers.pl and makes an html file of links to the good showers
as well as a text file to feed to the following shell script. Output:
- doit.sh - Runs get.sh on all the
search URLs in links.txt. (Call with "bash doit.sh links.txt".)
- get.sh - Runs wget on a search URL and passes the output to strip.pl and then to output.txt
- strip.pl - Strips html formatting from the page
returned by the search URL
- filtershowers.pl - Takes a text file
of shower data (output.txt) and removes accidentals
(defined to be non-chiquita sites, sites hit more than 10 microseconds
away from the trigger, and afterpulses arriving more than 1 microsecond
after the first hit at a site). Output: filtered.txt