]> Pileus Git - ~andy/rsl/blob - examples/lassen_to_gif.c
dd9a168a804bf5a661f167c28942e4fa24ebb241
[~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 "rsl.h"
8
9 void main(int argc, char **argv)
10 {
11   Radar *radar;
12
13   RSL_radar_verbose_on();
14   radar = RSL_lassen_to_radar(argv[1]);
15   if (radar == NULL) exit(-1);
16
17   RSL_load_refl_color_table();
18   RSL_volume_to_gif(radar->v[DZ_INDEX], "dz_sweep", 400, 400, 200.0);
19
20   RSL_load_vel_color_table();
21   RSL_rebin_velocity_volume(radar->v[VR_INDEX]); /* Modifies v[i]. */
22   RSL_volume_to_gif(radar->v[VR_INDEX], "vr_sweep", 400, 400, 200.0);
23
24   RSL_load_sw_color_table();
25   RSL_volume_to_gif(radar->v[SW_INDEX], "sw_sweep", 400, 400, 200.0);
26
27   exit(0);
28
29 }
30
31
32