Skip to content. | Skip to navigation

 Back to Classic
Personal tools

airs_chan_props.h

#define NUM_AIRS_CHANS 2378

typedef enum {
None,
Dead,
Noise,
Popping,
SRF_Fit,
SRF_Shape,
Spatial
} comment_t;

/*
* Structure to hold the contents of the channel properties file (CP file).
* Most fields are explained in detail there and so are not explained here.
*/
typedef struct {
short num; /* described in comment block at top of CP file */
float freq; /* described in comment block at top of CP file */
float wavelength_um; /* conversion from freq = frequency in cm**-1 to
* wavelength in microns */
char array[10]; /* described in comment block at top of CP file */
short cal_num; /* described in comment block at top of CP file */
float NeDT; /* described in comment block at top of CP file */
float NeN; /* conversion from:
* NeDT = Noise equivalent Delta Temperature
* for a 250 K scene
* to:
* NeN = Noise equivalent Radiance
* -9999.0 used to flag cases where no value can
* be calculated.
*/
float FWHM; /* described in comment block at top of CP file */
float Cij; /* described in comment block at top of CP file */
float centroid_x; /* described in comment block at top of CP file */
float centroid_y; /* described in comment block at top of CP file */
float RTA_fitting_error; /* described in comment block at top of CP file */
short AB_State; /* described in comment block at top of CP file */
short Rad_Qual; /* described in comment block at top of CP file */
short L2_ignore; /* described in comment block at top of CP file */
char comment_str[24]; /* described in comment block at top of CP file */
comment_t comment; /* comments as an enum for convenience */
} airs_chan_props_t;


int read_chan_props(
char * file_name,
airs_chan_props_t chan_props[NUM_AIRS_CHANS]);

int select_chan_props(
char * file_name,
char const * const dir_name,
const int data_year,
const int data_month,
const int data_day);

Document Actions
NASA Logo - nasa.gov
NASA Privacy Policy and Important Notices
Last updated: Sep 09, 2009 02:25 PM ET
Top