OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
get_calib_sds.c
Go to the documentation of this file.
1 #include "proto.h"
2 #include "mfhdf.h"
3 
4 int get_calib_sds(int32 sd_id, int16 *dark_rest, int16 *gain, int16 *tdi, int16 *scan_temp, int16 *side, int32 *msec) {
5 
6  /* Read dark restore pixel */
7  if (read_sds(sd_id, "dark_rest", dark_rest) == -1) return -1;
8 
9  /* Read gain */
10  if (read_sds(sd_id, "gain", gain) == -1) return -1;
11 
12  /* Read time delay and integration settings */
13  if (read_sds(sd_id, "tdi", tdi) == -1) return -1;
14 
15  /* Read scan temperature */
16  if (read_sds(sd_id, "scan_temp", scan_temp) == -1) return -1;
17 
18  /* Read mirror side */
19  if (read_sds(sd_id, "side", side) == -1) return -1;
20 
21  /* Read scan time */
22  if (read_sds(sd_id, "msec", msec) == -1) return -1;
23 
24  return 0;
25 }
integer, parameter int16
Definition: cubeio.f90:3
int16 * gain
Definition: l1_czcs_hdf.c:33
int16_t * dark_rest
Definition: l1a_seawifs.c:89
int get_calib_sds(int32 sd_id, int16 *dark_rest, int16 *gain, int16 *tdi, int16 *scan_temp, int16 *side, int32 *msec)
Definition: get_calib_sds.c:4
int32 * msec
Definition: l1_czcs_hdf.c:31
int16_t tdi[BANDS_DIMS_1A]
Definition: l1a_seawifs.c:37
int16_t * side
Definition: l1a_seawifs.c:88
int32 read_sds(l1info_struct l1info, char *arr_name, int32 *exp_ntyp, void *array)
Definition: read_sds.c:5