*/
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include "africa.h"
int africa_read_buffer(FILE *fp, Africa_buffer *buffer)
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
-#include <strings.h>
#include <string.h>
#define USE_RSL_VARS
#include "rsl.h"
}
-void main(int argc, char **argv)
+int main(int argc, char **argv)
{
Radar *radar;
Sweep *sweep;
* the RSL.
*
*/
+#include <stdlib.h>
#define USE_RSL_VARS
#include "rsl.h"
-void main(int argc, char **argv)
+int main(int argc, char **argv)
{
Radar *radar;
Sweep *sweep;
*/
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include "rsl.h"
#include <stdio.h>
+#include <stdlib.h>
#include "rsl.h"
int main(int argc, char **argv)
if (radar == NULL)
printf("radar == NULL\n");
else
- printf("radar == %x\n", radar);
+ printf("radar == %x\n", (unsigned int)radar);
exit(0);
}
}
}
-void main(int argc, char **argv)
+int main(int argc, char **argv)
{
Radar *radar;
Sweep *sweep;
+#include <stdlib.h>
#include "rsl.h"
/**********************************************************************/
* This program can read the file from stdin.
*/
+#include <stdlib.h>
#include "rsl.h"
-void main(int argc, char **argv)
+int main(int argc, char **argv)
{
Radar *radar;
*
*/
+#include <stdlib.h>
#include "rsl.h"
void print_link_list(Azimuth_hash *list)
}
-void main(int argc, char **argv)
+int main(int argc, char **argv)
{
Radar *radar;
Sweep *sweep;
printf(" vel_res %f\n", ray->h.vel_res); /* Doppler velocity resolution */
printf(" sweep_rate %f\n", ray->h.sweep_rate); /* Sweep rate. Full sweeps/min. */
-printf(" prf %f\n", ray->h.prf); /* Pulse repitition frequency, in Hz. */
+printf(" prf %d\n", ray->h.prf); /* Pulse repitition frequency, in Hz. */
printf(" azim_rate %f\n", ray->h.azim_rate);
printf(" fix_angle %f\n", ray->h.fix_angle);
-printf("pulse_count %f\n", ray->h.pulse_count);
+printf("pulse_count %d\n", ray->h.pulse_count);
printf("pulse_width %f\n", ray->h.pulse_width); /* Pulse width (micro-sec). */
printf(" beam_width %f\n", ray->h.beam_width); /* Beamwidth in degrees. */
printf(" frequency %f\n", ray->h.frequency); /* Bandwidth MHz. */
{
/* Make pathname by combining directory name, if given, with filename. */
- if (*dir == NULL) {
+ if (!dir || !dir[0]) {
strcpy(pathname, filename);
}
else {
char tape_id[100];
char in_file[100], site_id[100];
char filename[100], outfile[100], nexfile[100];
- char command[100], file_prefix[100], file_suffix[3];
+ char command[100], file_prefix[100], file_suffix[10];
char dir_string[100], red[120], grn[120], blu[120];
char time_string[14], site_string[10],img_base[20];
char pathname[256], gifdir[100], pgmdir[100], ufdir[100];
scale = 0.5;
ncbins = 21;
width = 10;
- printf("Calling RSL_rebin, %d %d %.2f\n", width);
+ printf("Calling RSL_rebin, %d\n", width);
RSL_rebin_volume(dr_volume, width);
if(verbose) printf("Loading zdr colortable...\n");
RSL_load_zdr_color_table();
#include <stdio.h>
+#include <stdlib.h>
#include "rsl.h"
/*
}
-void main(int argc, char **argv)
+int main(int argc, char **argv)
{
Radar *radar;
Sweep *sector;
* wsr88d_to_gif file [tape_header_file]
*/
+#include <stdlib.h>
#include "rsl.h"
-void main(int argc, char **argv)
+int main(int argc, char **argv)
{
Radar *radar;
*/
#include <stdio.h>
+#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <math.h>
*/
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include "rsl.h"
#include "rainbow.h"
*/
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include "rsl.h"
#include "rainbow.h"
RSL_ftype[0] = RSL_ftype[0];
/* Use yylval.token.s and yylval.token.len */
- memset(outbuf, sizeof(outbuf), '\0');
+ memset(outbuf, '\0', sizeof(outbuf));
rapic_decode((unsigned char *)yylval.token.s, yylval.token.len, outbuf, &outbytes,
&azim, &elev, &delta_time);
/* fprintf(stderr, "RAYDATA: ray %d, ivol %d, isweep %d, azim %f, elev %f, dtime %d, size=%d\n", nray, ivolume, isweep, azim, elev, delta_time, outbytes); */
* This file contains routines for processing Message Type 31, the digital
* radar message type introduced in WSR-88D Level II Build 10.
*/
+#include <stdlib.h>
+#include <string.h>
#include "rsl.h"
#include "wsr88d.h"