3 static const char _Cn2[] =
"loop_c";
4 static const char _Cn1[] =
"qid";
5 #line 1 "get_sensor_info.ec"
11 char *caller=
"get_stn_info: ";
20 #line 12 "get_sensor_info.ec"
21 #line 13 "get_sensor_info.ec"
30 #line 18 "get_sensor_info.ec"
34 sprintf(query,
"select elev, lat, lng, des from stn where "
35 "id = \"%s\" ", stn_id);
40 #line 24 "get_sensor_info.ec"
42 #line 24 "get_sensor_info.ec"
43 sqli_prep(ESQLINTVERSION,
_Cn1, query,(ifx_literal_t *)0, (ifx_namelist_t *)0, -1, 0, 0 );
44 #line 24 "get_sensor_info.ec"
55 #line 31 "get_sensor_info.ec"
57 #line 31 "get_sensor_info.ec"
58 sqli_curs_decl_dynm(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION,
_Cn2, 512),
_Cn2, sqli_curs_locate(ESQLINTVERSION,
_Cn1, 513), 0, 0);
59 #line 31 "get_sensor_info.ec"
67 #line 35 "get_sensor_info.ec"
69 #line 35 "get_sensor_info.ec"
70 sqli_curs_free(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION,
_Cn1, 770));
71 #line 35 "get_sensor_info.ec"
79 #line 39 "get_sensor_info.ec"
81 #line 39 "get_sensor_info.ec"
82 sqli_curs_open(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION,
_Cn2, 768), (ifx_sqlda_t *)0, (
char *)0, (
struct value *)0, 0, 0);
83 #line 39 "get_sensor_info.ec"
91 #line 43 "get_sensor_info.ec"
93 #line 43 "get_sensor_info.ec"
94 sqli_curs_free(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION,
_Cn2, 770));
95 #line 43 "get_sensor_info.ec"
100 #line 44 "get_sensor_info.ec"
102 #line 44 "get_sensor_info.ec"
103 sqli_curs_free(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION,
_Cn1, 770));
104 #line 44 "get_sensor_info.ec"
112 #line 48 "get_sensor_info.ec"
114 #line 48 "get_sensor_info.ec"
115 static ifx_sqlvar_t _sqobind[] =
117 { 102,
sizeof(stn_elev), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
118 { 100, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
119 { 100, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
120 { 100, 31, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
121 #line 48 "get_sensor_info.ec"
123 static ifx_sqlda_t _SD0 = { 4, _sqobind, {0}, 4, 0 };
124 static _FetchSpec _FS1 = { 0, 1, 0 };
125 #line 48 "get_sensor_info.ec"
126 _sqobind[0].sqldata = (
char *) &stn_elev;
127 #line 48 "get_sensor_info.ec"
128 _sqobind[1].sqldata = stn_lat;
129 #line 48 "get_sensor_info.ec"
130 _sqobind[2].sqldata = stn_lon;
131 #line 48 "get_sensor_info.ec"
132 _sqobind[3].sqldata = stn_des;
133 sqli_curs_fetch(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION,
_Cn2, 768), (ifx_sqlda_t *)0, &_SD0, (
char *)0, &_FS1);
134 #line 48 "get_sensor_info.ec"
142 #line 52 "get_sensor_info.ec"
144 #line 52 "get_sensor_info.ec"
145 sqli_curs_free(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION,
_Cn2, 770));
146 #line 52 "get_sensor_info.ec"
151 #line 53 "get_sensor_info.ec"
153 #line 53 "get_sensor_info.ec"
154 sqli_curs_free(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION,
_Cn1, 770));
155 #line 53 "get_sensor_info.ec"
175 #line 69 "get_sensor_info.ec"
177 #line 69 "get_sensor_info.ec"
178 sqli_curs_close(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION,
_Cn2, 768));
179 #line 69 "get_sensor_info.ec"
184 #line 70 "get_sensor_info.ec"
186 #line 70 "get_sensor_info.ec"
187 sqli_curs_free(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION,
_Cn2, 770));
188 #line 70 "get_sensor_info.ec"
193 #line 71 "get_sensor_info.ec"
195 #line 71 "get_sensor_info.ec"
196 sqli_curs_free(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION,
_Cn1, 770));
197 #line 71 "get_sensor_info.ec"
203 #line 74 "get_sensor_info.ec"
int get_sensor_info(char *stn_id, char *shef, struct sensor_file *sfile)
sprintf(fbuf,"/usr/mapper/nexrad/ngrid.%02d-%02d-%02d-%02d", year, month, day, hour)
printf("fbuf is %s\n", fbuf)
struct sensor_file * sfile
unsigned char hemisphere_lat
unsigned char hemisphere_long