Go to the documentation of this file.
5 static int32_t
npix = -1;
9 int alloc_vcal(int32_t npix, int32_t nbands, vcstr *rec);
14 for (ip = 0; ip <
npix; ip++) {
16 if (vrec.vLt[ipb] > 0.0 && l2rec->l1rec->Lt[ipb] > 0.0) {
25 void vcal(l2str *l2rec, l2prodstr *
p,
float prod[]) {
26 static int firstCall = 1;
27 static int32_t lastScan = -1;
30 int32_t
band =
p->prod_ix;
33 npix = l2rec->l1rec->npix;
34 nbands = l2rec->l1rec->l1file->nbands;
36 printf(
"-E- %s: Unable to allocate vcal record.\n", __FILE__);
42 if (l2rec->l1rec->iscan != lastScan) {
43 convl21(l2rec, l2rec->tgrec, 0,
npix - 1, vrec.vLt, &vrec);
44 lastScan = l2rec->l1rec->iscan;
52 for (ip = 0; ip <
npix; ip++) {
54 prod[ip] = vrec.vLt[ipb];
58 for (ip = 0; ip <
npix; ip++) {
60 prod[ip] = vrec.tLw[ipb];
64 for (ip = 0; ip <
npix; ip++) {
66 prod[ip] = vrec.Lw[ipb];
70 for (ip = 0; ip <
npix; ip++) {
72 prod[ip] = vrec.nLw[ipb];
76 for (ip = 0; ip <
npix; ip++) {
78 prod[ip] = vrec.brdfsat[ipb];
82 for (ip = 0; ip <
npix; ip++) {
84 prod[ip] = vrec.brdftgt[ipb];
int alloc_vcal(int32_t npix, int32_t nbands, vcstr *rec)
void vcal(l2str *l2rec, l2prodstr *p, float prod[])
PARAM_TYPE_NONE Default value No parameter is buried in the product name name_prefix is case insensitive string compared to the product name PARAM_TYPE_VIS_WAVE The visible wavelength bands from the sensor are buried in the product name The product name is compared by appending and name_suffix ie aph_412_giop where prod_ix will be set to PARAM_TYPE_IR_WAVE same search method as PARAM_TYPE_VIS_WAVE except only wavelength above are looped through but prod_ix is still based ie aph_2_giop for the second band
void vgain(l2str *l2rec, int band, float vgain[])
int convl21(l2str *l2rec, tgstr *tgrec, int32_t spix, int32_t epix, float *vLt, vcstr *vrec)