#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
#include "rsl.h"
#include "rainbow.h"
Rainbow_hdr rainbow_hdr;
struct dms latdms, londms;
+ void read_rainbow_header(Rainbow_hdr *, FILE *);
+
/* These next lines allow program to read from a regular file, a
* compressed file, or standard input. I lifted them from RSL_uf_to_radar
* by John Merritt.
* and sweeps continues for the remainder of sweeps in the volume scan.
*/
- int iray, isweep, nread, nsweeps, nrays, nbins, vol_index;
+ int iray, isweep, nread, nsweeps, nrays, nbins;
unsigned char *rainbow_ray;
Volume *v;
Sweep *sweep;
Ray *ray;
int i;
float azim_rate, beam_width, dz, elev_angle, prf, unam_rng;
+ int vol_index = VR_INDEX;
beam_width = 1.0; /* for now */
fprintf(stderr,"WARNING: number of rays computed is not the number "
"expected.\n");
fprintf(stderr,"Computed = nrays: "
- "azstart = %d, az_stop = %d, az_step = %%f\n",
+ "azstart = %d, az_stop = %d, az_step = %f\n",
rainbow_hdr.az_start, rainbow_hdr.az_stop, rainbow_hdr.az_step);
fprintf(stderr,"Expected 360\n");
}