next up previous contents
Next: Example: read_grid program Up: GRASP Routines: Template Bank Previous: Function: transform_cubic   Contents


Example: make_grid program

This example program uses the function generate_cubic() to create a grid of match function coefficients over the mass range of 0.8 to 3.2 solar masses, down to a match level of 0.98, using the smooth fit to the LIGO noise power spectrum in computing the match function. The resulting grid structure is stored in the data file cubic_coef_40meter_m=0.8-3.2.ascii. Note that the program can take quite a long time to run: approximately 20 hours on a 100 MHz Pentium computer. The program's progress is tracked in the log file cubic_coef_40meter_m=0.8-3.2.log.

The program makes frequent calls to the routine match_cubic(), which generates a lot of messages in stderr, which are generally unimportant unless things go wrong. You'll probably want to redirect stderr to some junk file. The important progress record is stored in cubic_coef_40meter_m=0.8-3.2.log, which, when complete, looks like this:

Using Caltech-40 noise curve from the file noise_40smooth.dat.
Generating match coefficients at 91 points:
.
..
...
....
.....
......
.......
........
.........
..........
...........
............
.............

The source code for make_grid.c is listed below:

Includes/make_grid.tex

Author: Teviet Creighton, teviet@tapir.caltech.edu



Bruce Allen 2000-11-19