ocssw
V2022
|
Go to the source code of this file.
Classes | |
struct | hawkeye_t |
Functions | |
int | openl1a_hawkeye (filehandle *file) |
int | readl1a_hawkeye (filehandle *file, int32_t recnum, l1str *l1rec) |
int | closel1a_hawkeye (filehandle *file) |
Function Documentation
◆ closel1a_hawkeye()
int closel1a_hawkeye | ( | filehandle * | file | ) |
Close L1A file, GEO file, and free memory
- Parameters
-
file
- Returns
Definition at line 715 of file l1a_hawkeye.c.
◆ openl1a_hawkeye()
int openl1a_hawkeye | ( | filehandle * | file | ) |
Open the hawkeye L1A file and perform some one-time tasks (as opposed to tasks that are per scan), including: -Get L1A dimensions num_scans, num_bands, num_pixels, num_ccd_temps, num_tlm_blocks (static). Allocate memory for some static arrays based upon these dimensions. -Get L1A group ids e.g. l1aScanLineGrp, l1aEarthViewGrp and it's 8 "band_%d" var ids (static) -Get L1A CCD_temperatures and tlm_delta_time_ms, and call qc_hawkeye_CCD_T to create cleansed versions of these arrays (static). -Get L1A "time_coverage_start" and "time_coverage_end" to derive time_interval (static) etc.
Get
- Parameters
-
file
- Returns
Definition at line 161 of file l1a_hawkeye.c.
◆ readl1a_hawkeye()
int readl1a_hawkeye | ( | filehandle * | file, |
int32_t | oline, | ||
l1str * | l1rec | ||
) |
Read the specified scan line from the specified L1A file. If this is the first call, call read_cal_hawkeye to read the calibration file, which stores calibration coefficients (for instrument calibration) in static arrays. For each scan, get scan_delta_time_ms and use it to call interp_hawkeye_CCD_T, which sets CCD_temperatures_this_scan[num_ccd_temps]. Then, apply the instrument cal by calling calibrate_hawkeye. Store Lt in l1rec->Lt. Read GEO file.
- Parameters
-
file line l1rec
- Returns
Definition at line 499 of file l1a_hawkeye.c.