]> Pileus Git - ~andy/rsl/blob - examples/lassen_to_gif.c
RSL v1.44
[~andy/rsl] / examples / lassen_to_gif.c
1 /*
2  * lassen_to_gif [file]
3  *
4  * This program can read the file from stdin.
5  */
6
7 #include <stdlib.h>
8 #include "rsl.h"
9
10 int main(int argc, char **argv)
11 {
12   Radar *radar;
13
14   RSL_radar_verbose_on();
15   radar = RSL_lassen_to_radar(argv[1]);
16   if (radar == NULL) exit(-1);
17
18   RSL_load_refl_color_table();
19   RSL_volume_to_gif(radar->v[DZ_INDEX], "dz_sweep", 400, 400, 200.0);
20
21   RSL_load_vel_color_table();
22   RSL_rebin_velocity_volume(radar->v[VR_INDEX]); /* Modifies v[i]. */
23   RSL_volume_to_gif(radar->v[VR_INDEX], "vr_sweep", 400, 400, 200.0);
24
25   RSL_load_sw_color_table();
26   RSL_volume_to_gif(radar->v[SW_INDEX], "sw_sweep", 400, 400, 200.0);
27
28   exit(0);
29
30 }
31
32
33