OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
emeta_api.h
Go to the documentation of this file.
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <string.h>
4 #include <math.h>
5 #include <limits.h>
6 #include "ias_logging.h" /* IAS logging library */
7 #include "emeta_exploit.h" /* EMETA file read routine */
8 #include "emeta_geometry.h" /* Geometric operations using EMETA structure */
9 
10 #ifndef _EMETA_API_
11 #define _EMETA_API_
12 
13 /* Initialize Enhanced Metadata Access */
14 int emeta_init(
15  char *emeta_filename ); /* Enhanced metadata file name */
16 
17 /* Retrieve scene framing information from the EMETA structure */
18 int emeta_get_frame(
19  int band, /* Input band number */
20  EMETA_FRAME *frame ); /* Output image frame info */
21 
22 
23 /* Calculate view and sun angles for a L1T pixel */
24 int emeta_calc(
25  int in_line, /* L1T line coordinate */
26  int in_samp, /* L1T sample coordinate */
27  int in_band, /* Spectral band number */
28  short *sat_zn, /* Satellite zenith angle */
29  short *sat_az, /* Satellite azimuth angle */
30  short *sun_zn, /* Solar zenith angle */
31  short *sun_az ); /* Solar azimuth angle */
32 
33 /* Disconnect from the EMD interface */
34 void emeta_close();
35 
36 #endif
int emeta_init(char *emeta_filename)
Definition: emeta_api.c:5
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 emeta_close()
Definition: emeta_api.c:91
int emeta_get_frame(int band, EMETA_FRAME *frame)
Definition: emeta_api.c:18
int emeta_calc(int in_line, int in_samp, int in_band, short *sat_zn, short *sat_az, short *sun_zn, short *sun_az)
Definition: emeta_api.c:42