next up previous contents
Next: Function: GRnormalize() Up: GRASP Routines: Reading/using FRAME Previous: Function: GRcalibrate()   Contents

Example: print_ssF program

0 This example uses the function GRcalibrate() to read the swept sine calibration information from a frame, and then prints out a list of frequencies, real, and imaginary parts interpolated from this data. The frequencies are appropriate for the FFT of a 4096 point data set with sample rate srate. The technique used is spline interpolation. To run this program, and display a graph, type
setenv GRASP_FRAMEPATH /usr/local/GRASP/18nov94.1frame
print_ssF > outputfile
xmgr -nxy outputfile


Figure: A swept sine calibration curve, showing the real and imaginary parts, produced by the example program print_ssF.

Bruce Allen 2000-11-19