FitReadRadarScan
Syntax | ||
int FitReadRadarScan(int fid,int *state, struct RadarScan *ptr, struct RadarParm *prm, struct FitData *fit, int tlen, int lock,int chn); | ||
Header | ||
superdarn/fitcfit.h | ||
Library | ||
fit | ||
Description | ||
The The data is read from the file with the descriptor given by the argument fid. 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 radar parameter block and the fit data pointed to by the arguments prm and fit. 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 | ||
|