Skip to content
Snippets Groups Projects
Commit df781e35 authored by Paolo Veglio's avatar Paolo Veglio
Browse files

added include folder for now

parent d3252d8f
No related branches found
No related tags found
No related merge requests found
/*******************************************************************************
Description:
Header file ancillary.h
Contains pointers to all ancillary data necessary for processing granule.
Access through structure variable 'grn_anc'.
Revision History:
10/2012 R. Frey Original version
*******************************************************************************/
// For obtaininig and processing ancillary data.
float *g_sfct1;
float *g_sfct2;
float *g_snow;
float *g_ice;
float *g_frocn;
float *g_frlandice;
float *g_phis;
float *g_tpw1;
float *g_tpw2;
float *g_lst;
float *ti_sfct;
float *ti_tpw;
int nwp_rows;
int nwp_cols;
long int nwp_cells;
// Ancillary data for entire granule.
struct granule_ancillary {
float *reynSST;
float *ndvibk;
unsigned char *eco;
float *sfct;
float *tpw;
float *snowfr;
float *landicefr;
float *icefr;
float *geos_ocnfr;
} grn_anc;
/*******************************************************************************
Description:
Header file mask_processing_constants.h
Contains definitions for various processing constants.
Revision History:
09/2012 R. Frey Original version
11/2012 R. Frey Changed 'badsza_data' to 'badgeo_data'.
08/2013 R. Frey Eliminated 'max_vza' and
added 'MODIS_max_vza' and 'VIIRS_max_vza'.
08/2015 R. Frey Added "min" and "max" macros.
*******************************************************************************/
#define nlcntx 3
#define necntx 3
#define lines_in_edge (nlcntx-1)/2
#define elems_in_edge (necntx-1)/2
#define num_diffs_surr (nlcntx * necntx) - 1
#define num_test_groups 5
#define min(a,b) ((a) < (b) ? (a) : (b))
#define MODIS_max_vza 65.49
#define VIIRS_max_vza 70.13
#define dtr (3.14159 / 180.0)
#define rtd (180.0 / 3.14159)
#define bad_data -999.0
#define badgeo_data -327.67
#define conf_clr_thresh 0.99
#define prob_clr_thresh 0.95
#define prob_cld_thresh 0.66
#ifndef min
#define min(a,b) ((a) < (b) ? (a) : (b))
#endif
#ifndef max
#define max(a,b) ((a) < (b) ? (b) : (a))
#endif
/**********************************************************************
Description:
Header file sst.h
Defines Reynolds "sst" structures.
Revision History:
10/2012 R. Frey Original version
***********************************************************************/
typedef struct {
int headerLen1;
int startYear;
int startMonth;
int startDay;
int endYear;
int endMonth;
int endDay;
int unknown1;
int unknown2;
int headerLen2;
int numSSTValues1;
float values[180][360];
int numSSTValues2;
} SST;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment