CambridgeGraph.html - Source Code
This is the webpage for the Cambridge data interactive request form. This site can be used to obtain spreadsheets or graphs of this data for time intervals ranging from one hour to one year. It calls CambridgeGraph.php upon form submission.
Location: /Library/WebServer/Documents/ucla/.
CambridgeGraph.php
This is the php program that is called by CambridgeGraph.html in order to produce the spreadsheets (using Hread.out) and/or graphs (using Graph.java) of the Cambridge data for the web interface.
Location: /Library/WebServer/Documents/ucla/.
Hread.out
This program is called by the CambridgeGraph.php program whenever a spreadsheet needs to be made for the Cambridge data. It is the compiled C program whose source code is readitHour.c. It converts a variable length of UCLA mag files to a single spreadsheet file. File output is seconds in day , x, y and z magnetometer readings.
Usage: ./hread.out
Graph.java
This program is called by the CambridgeGraph.php program whenever a graph needs to be made for the Cambridge data. It takes the spreadsheet that is produced by the Hread.out program and creates a jpeg plot of that data.
Usage: Graph
spectrum.html - Source Code
This is the webpage for the Cambridge data FFT spectra request form. This site can be used to obtain spectra graphs of this data for a given day. It calls the spectrum.php upon form submission.
Location: /Library/WebServer/Documents/ucla/.
spectrum.php
This is the php program that is called by spectrum.html in order to produce the spectra graphs (using Hread.out followed by FastFourierTransform.java) of the Cambridge data for the web interface.
Location: /Library/WebServer/Documents/ucla/.
FastFourierTransform.java
This program is called by the spectrum.php program. It takes a spreadsheet (created by Hread.out) of one days worth of Cambridge data and performs a Fast Fourier Transform on intervals of that data. It then takes the transform results from each of the intervals and stacks them vertically next to each other using a rainbow color scale to distinquish high values from low values.