CFitReadRadarScan
Syntax | ||
int CFitReadRadarScan(struct CFitfp *fp,int *state,struct RadarScan *ptr,struct CFitdata *cfit,int tlen, int lock,int chn); | ||
Header | ||
superdarn/cfitscan.h | ||
Library | ||
cfit | ||
Description | ||
The The data is read from the open file pointed to by the argument fp. The argument state is a pointer to an integer that is used internally by the function to track progress through the The scan data is written to the structure pointed to by the argument ptr. Memory is automatically allocated within this structure to store the beam data. In order for the function to correctly identify a scan boundary, it must read the first beam from the subsequent scan. This data must be preserved so that it can be included in the next block of scan data returned by the next call to the function. This is done by providing storage for the If the argument tlen has a non-zero value then the function will ignore the scan flag and instead assume the the scan has a length of tlen seconds. If the argument lock has a non-zero value it is also assumed that the scan boundaries are fixed relative to the start of the day. If the final argument chn, is compared against the channel number recorded in the radar parameter block, if the two numbers do not match then the data record is excludef from the scan. | ||
Returns | ||
Returns zero on success, or (1) if the end of file was reached. On error, (-1) is returned. | ||
Errors | ||
On error, (-1) is returned. | ||
Example | ||
|