| 
    AIRS Code Collection
    
   | 
 
AIRS Code Collection library definitions. More...
#include "libairs.h"Go to the source code of this file.
Functions | |
| void | add_att (int ncid, int varid, const char *unit, const char *long_name) | 
| Add variable attributes to netCDF file.  More... | |
| void | add_var (int ncid, const char *varname, const char *unit, const char *longname, int type, int dimid[], int *varid, int ndims) | 
| Add variable to netCDF file.  More... | |
| void | background_poly_help (double *xx, double *yy, int n, int dim) | 
| Get background based on polynomial fits.  More... | |
| void | background_poly (wave_t *wave, int dim_x, int dim_y) | 
| Get background based on polynomial fits.  More... | |
| void | background_smooth (wave_t *wave, int npts_x, int npts_y) | 
| Smooth background.  More... | |
| void | create_background (wave_t *wave) | 
| Set background...  More... | |
| void | create_noise (wave_t *wave, double nedt) | 
| Add noise to perturbations and temperatures...  More... | |
| void | create_wave (wave_t *wave, double amp, double lx, double ly, double phi, double fwhm) | 
| Add linear wave pattern...  More... | |
| void | day2doy (int year, int mon, int day, int *doy) | 
| Get day of year from date.  More... | |
| void | doy2day (int year, int doy, int *mon, int *day) | 
| Get date from day of year.  More... | |
| void | fit_wave (wave_t *wave, double amp, double phi, double kx, double ky, double *chisq) | 
| Evaluate wave fit...  More... | |
| void | fft_help (double *fcReal, double *fcImag, int n) | 
| Calculate 1-D FFT...  More... | |
| void | fft (wave_t *wave, double *Amax, double *phimax, double *lhmax, double *kxmax, double *kymax, double *alphamax, double *betamax, char *filename) | 
| Calculate 2-D FFT...  More... | |
| void | gauss (wave_t *wave, double fwhm) | 
| Apply Gaussian filter to perturbations...  More... | |
| void | hamming (wave_t *wave, int niter) | 
| Apply Hamming filter to perturbations...  More... | |
| void | intpol_x (wave_t *wave, int n) | 
| Interpolate to regular grid in x-direction.  More... | |
| void | median (wave_t *wave, int dx) | 
| Apply median filter to perturbations...  More... | |
| void | merge_y (wave_t *wave1, wave_t *wave2) | 
| Merge wave structs in y-direction.  More... | |
| void | noise (wave_t *wave, double *mu, double *sig) | 
| Estimate noise.  More... | |
| void | period (wave_t *wave, double lxymax, double dlxy, double *Amax, double *phimax, double *lhmax, double *kxmax, double *kymax, double *alphamax, double *betamax, char *filename) | 
| Compute periodogram.  More... | |
| void | pert2wave (pert_t *pert, wave_t *wave, int track0, int track1, int xtrack0, int xtrack1) | 
| Convert radiance perturbation data to wave analysis struct.  More... | |
| void | read_l1 (char *filename, airs_l1_t *l1) | 
| Read AIRS Level-1 data.  More... | |
| void | read_l2 (char *filename, airs_l2_t *l2) | 
| Read AIRS Level-2 data.  More... | |
| void | read_pert (char *filename, char *pertname, pert_t *pert) | 
| Read radiance perturbation data.  More... | |
| void | read_retr (char *filename, ret_t *ret) | 
| Read AIRS retrieval data.  More... | |
| void | read_retr_help (double *help, int nds, int np, double mat[NDS][NPG]) | 
| Convert array.  More... | |
| void | read_wave (char *filename, wave_t *wave) | 
| Read wave analysis data.  More... | |
| void | rad2wave (airs_rad_gran_t *gran, double *nu, int nd, wave_t *wave) | 
| Convert AIRS radiance data to wave analysis struct.  More... | |
| void | ret2wave (ret_t *ret, wave_t *wave, int dataset, int ip) | 
| Convert AIRS retrieval results to wave analysis struct.  More... | |
| void | variance (wave_t *wave, double dh) | 
| Compute local variance.  More... | |
| void | write_l1 (char *filename, airs_l1_t *l1) | 
| Write AIRS Level-1 data.  More... | |
| void | write_l2 (char *filename, airs_l2_t *l2) | 
| Write AIRS Level-2 data.  More... | |
| void | write_wave (char *filename, wave_t *wave) | 
| Write wave analysis data.  More... | |
AIRS Code Collection library definitions.
Definition in file libairs.c.
| void add_att | ( | int | ncid, | 
| int | varid, | ||
| const char * | unit, | ||
| const char * | long_name | ||
| ) | 
| void add_var | ( | int | ncid, | 
| const char * | varname, | ||
| const char * | unit, | ||
| const char * | longname, | ||
| int | type, | ||
| int | dimid[], | ||
| int * | varid, | ||
| int | ndims | ||
| ) | 
Add variable to netCDF file.
Definition at line 45 of file libairs.c.
| void background_poly_help | ( | double * | xx, | 
| double * | yy, | ||
| int | n, | ||
| int | dim | ||
| ) | 
Get background based on polynomial fits.
Definition at line 72 of file libairs.c.
| void background_poly | ( | wave_t * | wave, | 
| int | dim_x, | ||
| int | dim_y | ||
| ) | 
Get background based on polynomial fits.
Definition at line 126 of file libairs.c.

| void background_smooth | ( | wave_t * | wave, | 
| int | npts_x, | ||
| int | npts_y | ||
| ) | 
Smooth background.
Definition at line 176 of file libairs.c.
| void create_background | ( | wave_t * | wave | ) | 
Set background...
Definition at line 227 of file libairs.c.
| void create_noise | ( | wave_t * | wave, | 
| double | nedt | ||
| ) | 
Add noise to perturbations and temperatures...
Definition at line 254 of file libairs.c.
| void create_wave | ( | wave_t * | wave, | 
| double | amp, | ||
| double | lx, | ||
| double | ly, | ||
| double | phi, | ||
| double | fwhm | ||
| ) | 
Add linear wave pattern...
Definition at line 275 of file libairs.c.
| void day2doy | ( | int | year, | 
| int | mon, | ||
| int | day, | ||
| int * | doy | ||
| ) | 
Get day of year from date.
Definition at line 304 of file libairs.c.
| void doy2day | ( | int | year, | 
| int | doy, | ||
| int * | mon, | ||
| int * | day | ||
| ) | 
Get date from day of year.
Definition at line 324 of file libairs.c.
| void fit_wave | ( | wave_t * | wave, | 
| double | amp, | ||
| double | phi, | ||
| double | kx, | ||
| double | ky, | ||
| double * | chisq | ||
| ) | 
| void fft_help | ( | double * | fcReal, | 
| double * | fcImag, | ||
| int | n | ||
| ) | 
Calculate 1-D FFT...
Definition at line 380 of file libairs.c.
| void fft | ( | wave_t * | wave, | 
| double * | Amax, | ||
| double * | phimax, | ||
| double * | lhmax, | ||
| double * | kxmax, | ||
| double * | kymax, | ||
| double * | alphamax, | ||
| double * | betamax, | ||
| char * | filename | ||
| ) | 
Calculate 2-D FFT...
Definition at line 419 of file libairs.c.

| void gauss | ( | wave_t * | wave, | 
| double | fwhm | ||
| ) | 
Apply Gaussian filter to perturbations...
Definition at line 579 of file libairs.c.
| void hamming | ( | wave_t * | wave, | 
| int | niter | ||
| ) | 
Apply Hamming filter to perturbations...
Definition at line 619 of file libairs.c.
| void intpol_x | ( | wave_t * | wave, | 
| int | n | ||
| ) | 
Interpolate to regular grid in x-direction.
Definition at line 648 of file libairs.c.
| void median | ( | wave_t * | wave, | 
| int | dx | ||
| ) | 
Apply median filter to perturbations...
Definition at line 726 of file libairs.c.
Merge wave structs in y-direction.
Definition at line 765 of file libairs.c.
| void noise | ( | wave_t * | wave, | 
| double * | mu, | ||
| double * | sig | ||
| ) | 
Estimate noise.
Definition at line 798 of file libairs.c.
| void period | ( | wave_t * | wave, | 
| double | lxymax, | ||
| double | dlxy, | ||
| double * | Amax, | ||
| double * | phimax, | ||
| double * | lhmax, | ||
| double * | kxmax, | ||
| double * | kymax, | ||
| double * | alphamax, | ||
| double * | betamax, | ||
| char * | filename | ||
| ) | 
Compute periodogram.
Definition at line 842 of file libairs.c.
Convert radiance perturbation data to wave analysis struct.
Definition at line 999 of file libairs.c.
| void read_l1 | ( | char * | filename, | 
| airs_l1_t * | l1 | ||
| ) | 
Read AIRS Level-1 data.
Definition at line 1073 of file libairs.c.
| void read_l2 | ( | char * | filename, | 
| airs_l2_t * | l2 | ||
| ) | 
Read AIRS Level-2 data.
Definition at line 1107 of file libairs.c.
| void read_pert | ( | char * | filename, | 
| char * | pertname, | ||
| pert_t * | pert | ||
| ) | 
Read radiance perturbation data.
Definition at line 1137 of file libairs.c.
| void read_retr | ( | char * | filename, | 
| ret_t * | ret | ||
| ) | 
Read AIRS retrieval data.
Definition at line 1219 of file libairs.c.

| void read_retr_help | ( | double * | help, | 
| int | nds, | ||
| int | np, | ||
| double | mat[NDS][NPG] | ||
| ) | 
| void read_wave | ( | char * | filename, | 
| wave_t * | wave | ||
| ) | 
Read wave analysis data.
Definition at line 1400 of file libairs.c.
| void rad2wave | ( | airs_rad_gran_t * | gran, | 
| double * | nu, | ||
| int | nd, | ||
| wave_t * | wave | ||
| ) | 
Convert AIRS radiance data to wave analysis struct.
Definition at line 1461 of file libairs.c.
Convert AIRS retrieval results to wave analysis struct.
Definition at line 1531 of file libairs.c.
| void variance | ( | wave_t * | wave, | 
| double | dh | ||
| ) | 
Compute local variance.
Definition at line 1584 of file libairs.c.
| void write_l1 | ( | char * | filename, | 
| airs_l1_t * | l1 | ||
| ) | 
Write AIRS Level-1 data.
Definition at line 1634 of file libairs.c.

| void write_l2 | ( | char * | filename, | 
| airs_l2_t * | l2 | ||
| ) | 
Write AIRS Level-2 data.
Definition at line 1692 of file libairs.c.

| void write_wave | ( | char * | filename, | 
| wave_t * | wave | ||
| ) | 
Write wave analysis data.
Definition at line 1741 of file libairs.c.