A sphere with three ocean waves in differing shades of blue. Next to the sphere, there is the bolded text "Ocean Color". Under that, there are two acronyms, separated by a vertical pipe: OB.DAAC (Ocean Biology Distributed Active Archive Center) and OBPG (Ocean Biology Processing Group).
Lorem
ipsum
dolor
sit
amet
Toggle navigation
Ocean Color Science Software
Jump to content
ocssw
V2022
web
ocssw
ocssw_src
include
ViirsGeo
VcstGeoRctnglStruct.h
Go to the documentation of this file.
1
/******************************************************************************
2
*
3
* NAME: VcstGeoRctnglStruct.h
4
*
5
* DESCRIPTION: Contains interpolation rectangle structure and decimated
6
* geolocation data structure as well as constants used in these.
7
*
8
*
9
******************************************************************************/
10
#ifndef VCST_GEO_RCTNGL_STRUCT_H
11
#define VCST_GEO_RCTNGL_STRUCT_H
12
13
#include <
VcstGeoDataStructs.h
>
14
#include <
VcstGeoParameters.h
>
15
#include <vector>
16
17
18
const
int
REC_ROWS
= 3;
19
const
int
REC_COLS
=
REC_ROWS
;
20
21
// Geolocation data for the decimated interpolation rectangles.
22
// NOTE: The GEO field height is not in the Decimated Geo structure because
23
// it is set from the Terrain Info in the storeGranule() method for IMG data
24
// and copied directly into the DMS buffer in calcModFromImg() for MOD data.
25
26
typedef
struct
{
27
double
lat
[
VIIRS_SCANS
][
VIIRSI_MAX_NRCTNGL
][
REC_ROWS
][
REC_COLS
];
28
double
lon
[
VIIRS_SCANS
][
VIIRSI_MAX_NRCTNGL
][
REC_ROWS
][
REC_COLS
];
29
double
satazm[
VIIRS_SCANS
][
VIIRSI_MAX_NRCTNGL
][
REC_ROWS
][
REC_COLS
];
30
double
satzen[
VIIRS_SCANS
][
VIIRSI_MAX_NRCTNGL
][
REC_ROWS
][
REC_COLS
];
31
double
sunazm[
VIIRS_SCANS
][
VIIRSI_MAX_NRCTNGL
][
REC_ROWS
][
REC_COLS
];
32
double
sunzen[
VIIRS_SCANS
][
VIIRSI_MAX_NRCTNGL
][
REC_ROWS
][
REC_COLS
];
33
double
moonazm[
VIIRS_SCANS
][
VIIRSI_MAX_NRCTNGL
][
REC_ROWS
][
REC_COLS
];
34
double
moonzen[
VIIRS_SCANS
][
VIIRSI_MAX_NRCTNGL
][
REC_ROWS
][
REC_COLS
];
35
double
range
[
VIIRS_SCANS
][
VIIRSI_MAX_NRCTNGL
][
REC_ROWS
][
REC_COLS
];
36
//Add pixel phase and fraction.
37
//0.0 to 100, percentage of Moon illuminated
38
double
moonFrac[
VIIRS_SCANS
][
VIIRSI_MAX_NRCTNGL
][
REC_ROWS
][
REC_COLS
];
39
//In radians, 0.0=full to +pi=new
40
double
moonPhase[
VIIRS_SCANS
][
VIIRSI_MAX_NRCTNGL
][
REC_ROWS
][
REC_COLS
];
41
unsigned
char
qFlags[
VIIRS_SCANS
][
VIIRSI_MAX_NRCTNGL
][
REC_ROWS
][
REC_COLS
];
42
unsigned
char
rectQFlags[
VIIRS_SCANS
][
VIIRSI_MAX_NRCTNGL
];
43
}
ViirsGeoDecimType
;
44
45
46
#endif
47
ViirsGeoDecimType
Definition:
VcstGeoRctnglStruct.h:26
REC_COLS
const int REC_COLS
Definition:
VcstGeoRctnglStruct.h:19
run_local.lat
lat
Definition:
run_local.py:69
run_local.lon
lon
Definition:
run_local.py:69
REC_ROWS
const int REC_ROWS
Definition:
VcstGeoRctnglStruct.h:18
VcstGeoParameters.h
VcstGeoDataStructs.h
VIIRS_SCANS
const int VIIRS_SCANS
Definition:
VcstCmnConsts.h:58
color_dtdb.range
range
Definition:
color_dtdb.py:331
VIIRSI_MAX_NRCTNGL
const int VIIRSI_MAX_NRCTNGL
Definition:
VcstGeoParameters.h:103