ocssw
V2022
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "l12_proto.h"
#include "filehdr_struc.h"
#include "read_l3bin.h"
#include <gsl/gsl_math.h>
#include <gsl/gsl_spline.h>
Go to the source code of this file.
Functions | |
void | close_target (void) |
int | read_targethdr (filehandle *file) |
int | open_target (filehandle *file) |
int | read_target (filehandle *file, int32_t recnum, tgstr *tgrec) |
int32_t | bin_match (int32_t nbins, int32_t *bins, int32_t bin_num) |
int32_t | lonlat2bin (l3binstr *l3bin, float lon, float lat) |
int | read_target_l3 (filehandle *file, l1str *l1rec, int32_t nbands, tgstr *tgrec) |
Function Documentation
◆ bin_match()
int32_t bin_match | ( | int32_t | nbins, |
int32_t * | bins, | ||
int32_t | bin_num | ||
) |
bin_match - a binary search routine to find the nearest bin in a list of bin numbers. TODO: replace this function with code Don adding to libbin++
- Parameters
-
nbins - number of bins bins - list of bin numbers bin_num - bin number to seach
- Returns
Definition at line 146 of file target_io.c.
◆ close_target()
void close_target | ( | void | ) |
Definition at line 37 of file target_io.c.
◆ lonlat2bin()
int32_t lonlat2bin | ( | l3binstr * | l3bin, |
float | lon, | ||
float | lat | ||
) |
lonlat2bin - returns a L3 bin number given a longitude and latitude TODO: replace this function with code Don adding to libbin++
- Parameters
-
l3bin - l3bin structure lon - longitude lat - latitude
- Returns
Definition at line 176 of file target_io.c.
◆ open_target()
int open_target | ( | filehandle * | file | ) |
Definition at line 79 of file target_io.c.
◆ read_target()
int read_target | ( | filehandle * | file, |
int32_t | recnum, | ||
tgstr * | tgrec | ||
) |
Definition at line 105 of file target_io.c.
◆ read_target_l3()
int read_target_l3 | ( | filehandle * | file, |
l1str * | l1rec, | ||
int32_t | nbands, | ||
tgstr * | tgrec | ||
) |
read_target_l3 - loads a vicarous calibration target record, applying band shifting if necessary
- Parameters
-
file - filehandle structure for L3 bin target file l1rec nbands tgrec
- Returns
Definition at line 209 of file target_io.c.
◆ read_targethdr()
int read_targethdr | ( | filehandle * | file | ) |
Definition at line 46 of file target_io.c.