next up previous contents
Next: Function: find_locked() Up: GRASP Routines: Reading/using Caltech Previous: Function: read_block()   Contents

Example: reader program

0 This example uses the function read_block() described in the previous section to read the first 20 blocks out of the file channel.0. It prints the header information for each block of data, and the 100th data item from each block, along with the time associated with that data item.

The data is located with the utility function grasp_open(), which is documented in Section [*]. In order for this example program to work, you must set the environment variable GRASP_DATAPATH to point to a directory containing 40-meter data. You can do this with a command such as
setenv GRASP_DATAPATH /usr/local/data/19nov94.3
to access the data from run 3 on November 19th.


Bruce Allen 2000-11-19