next up previous contents
Next: Function: get_chirp_templates Up: GRASP Routines: Template Bank Previous: Function: get_chirp_boundary   Contents


Function: get_chirp_grid

int get_chirp_grid(struct chirp_space *space, const char *gridfile);
This routine sets the field (*space).grid, which contains pre-computed coefficients of the cubic fit to the match function at various points over the parameter space. It returns 0 if no warnings were generated, 1 if parameters used to generate the coefficient grid differed in some nontrivial way from those of the parameter space, or 2 if the coefficient grid could not be read in; in the latter case, (*space).grid is unchanged. Otherwise, this routine will allocate memory for the coefficient grid; to free this memory, call free_cubic((*space).grid).

The arguments are:

space: Input/Output. The parameter space over which the coefficient grid is being assigned. The fields m_mn and m_mx are used only to check that the grid covers the space. The fields ftau, angle, and match are used to check, rotate, and rescale the grid's coordinate system (repsectively). The field grid is the one which is set by this routine.

gridfile: Input. The name of a file containing the pre-computed coefficients of the match function; see the routine generate_cubic() in section [*].

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


next up previous contents
Next: Function: get_chirp_templates Up: GRASP Routines: Template Bank Previous: Function: get_chirp_boundary   Contents
Bruce Allen 2000-11-19