Go to the documentation of this file.
6 int rd_nav_t(int32 sdfid, int32 nscans, nav_t_str *nav_t)
30 int32
start[3], edge[3];
35 if ((nav_t->orb_vec = (float32 *) calloc(nscans * 3,
sizeof (float32))) ==
NULL) {
36 sprintf(
err_msg,
"chk_nav: cannot allocate memory for reading orb_vec");
40 if ((nav_t->sun_ref = (float32 *) calloc(nscans * 3,
sizeof (float32))) ==
NULL) {
41 sprintf(
err_msg,
"chk_nav: cannot allocate memory for reading sun_ref");
45 if ((nav_t->sen_mat = (float32 *) calloc(nscans * 3 * 3,
sizeof (float32))) ==
NULL) {
46 sprintf(
err_msg,
"chk_nav: cannot allocate memory for reading sen_mat");
50 if ((nav_t->scan_ell = (float32 *) calloc(nscans * 6,
sizeof (float32))) ==
NULL) {
51 sprintf(
err_msg,
"chk_nav: cannot allocate memory for reading scan_ell");
55 if ((nav_t->msec = (int32_t *) calloc(nscans,
sizeof (int32_t))) ==
NULL) {
56 sprintf(
err_msg,
"chk_nav: cannot allocate memory for reading msec");
59 if ((nav_t->nflag = (int32 *) calloc(nscans * 8,
sizeof (int32))) ==
NULL) {
60 sprintf(
err_msg,
"chk_nav: cannot allocate memory for reading nflag");
119 if ((
rdslice(sdfid,
"msec",
start, edge, (VOIDP) nav_t->msec)) < 0) {
int32 rdslice(int32 sdfid, char *name, int32 *start, int32 *edge, void *buf)
int rd_nav_t(int32 sdfid, int32 nscans, nav_t_str *nav_t)