Go to the documentation of this file.
4 int32_t
l1io_open(
char *fname, l1info_struct *l1info,
35 if ((l1info->fid = Hopen(fname, DFACC_RDONLY, 0)) < 0) {
36 printf(
"l1io_open: Failed on the Hopen of \n%s\n", fname);
45 if ((l1info->sdfid = SDstart(fname, DFACC_RDONLY)) < 0) {
46 printf(
"l1io_open: Failure at SDstart of \n%s\n", fname);
62 if ((attr_index = SDfindattr(l1info->sdfid,
"Pixels per Scan line"))
68 if ((attr_index = SDfindattr(l1info->sdfid,
"Pixels per Scan Line"))
70 printf(
"l1io_open: Error trying to get global attr Pixels per Scan line (or ...Line)\n");
82 if (SDreadattr(l1info->sdfid, attr_index,
npix) == -1) {
83 printf(
"l1io_open: Error trying to get data for: Pixels per Scan line\n");
92 if ((attr_index = SDfindattr(l1info->sdfid,
"Number of Scan Lines"))
98 printf(
"l1io_open: Error trying to get global attr: Number of Scan Lines\n");
103 if (SDreadattr(l1info->sdfid, attr_index,
nlin) == -1) {
104 printf(
"l1io_open: Error trying to get data for Number of Scan Lines\n");
int32_t l1io_open(char *fname, l1info_struct *l1info, int32_t *npix, int32_t *nlin)
void l1io_close(l1info_struct)