Go to the documentation of this file.
6 #define PI 3.141592653589793
7 #define RADCONV PI/180.L
34 int res_val[5] = {1, 2, 4, 9, 36};
35 int numrows[5] = {17280, 8640, 4320, 2160, 540};
42 for (
i = 0;
i < 5;
i++) {
43 if (resolve == res_val[
i]) {
44 l3_org->numrows = numrows[
i];
52 l3_org->bins_eq = (int32) l3_org->numrows * 2;
53 l3_org->vsize = (float64) (180.L / l3_org->numrows);
58 l3_org->hsize = (float64 *) malloc(l3_org->numrows * sizeof ( float64));
59 l3_org->start_bin = (int32 *) malloc(l3_org->numrows * sizeof ( int32));
60 l3_org->max_bin = (int32 *) malloc(l3_org->numrows * sizeof ( int32));
62 l3_org->start_bin[0] = 1;
63 latbin = (90.0L / l3_org->numrows) - 90.0
L;
64 l3_org->max_bin[0] = (int32) (cos(latbin *
RADCONV) *
65 l3_org->bins_eq + 0.5);
66 l3_org->hsize[0] = 360. / l3_org->max_bin[0];
73 for (
i = 1;
i < l3_org->numrows;
i++) {
74 latbin = ((float64)
i + 0.5) * (180.0L / l3_org->numrows) - 90.0
L;
75 l3_org->max_bin[
i] = (int32) (cos(latbin *
RADCONV) *
76 l3_org->bins_eq + 0.5);
77 l3_org->start_bin[
i] = l3_org->start_bin[
i - 1] +
78 l3_org->max_bin[
i - 1];
79 l3_org->hsize[
i] = 360. / l3_org->max_bin[
i];
void l3_get_org(int resolve, l3_org_str *l3_org)