ocssw V2020
l12_proto.h File Reference
#include <stdint.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <libgen.h>
#include <string.h>
#include <ctype.h>
#include <netcdf.h>
#include "input_struc.h"
#include "l12_parms.h"
#include "l1_struc.h"
#include "l1q_struc.h"
#include "l2_struc.h"
#include "target_struc.h"
#include "vcal_struc.h"
#include "filehandle.h"
#include "filter.h"
#include "l2_flags.h"
#include <timeutils.h>
#include "genutils.h"
#include "aer_struc.h"
#include "l2prod.h"
#include "l2prod_struc.h"
#include "dfutils.h"
#include "allocate2d.h"
#include "xcal.h"
#include "epr_api.h"
#include "scene_meta.h"
#include "l2_hdf_generic.h"
#include "flags_iop.h"
#include "table_io_wrapper.h"
#include <clo.h>
#include "navigation.h"
#include "read_l3bin.h"
#include "par_utils.h"
#include "smile.h"
#include "get_nitrate.h"
Include dependency graph for l12_proto.h:

Go to the source code of this file.

Macros

#define AGZONE0   0
 
#define AGZONE1   640
 
#define AGZONE2   1008
 
#define AGZONE3   1600
 
#define AGZONE4   2192
 
#define AGZONE5   2560
 
#define INSTITUTION   "NASA Goddard Space Flight Center, Ocean Ecology Laboratory, Ocean Biology Processing Group"
 
#define LICENSE   "https://science.nasa.gov/earth-science/earth-science-data/data-information-policy/"
 
#define NAMING_AUTHORITY   "gov.nasa.gsfc.sci.oceandata"
 
#define KEYWORDS_VOCABULARY   "NASA Global Change Master Directory (GCMD) Science Keywords"
 
#define STDNAME_VOCABULARY   "CF Standard Name Table v36"
 
#define CREATOR_NAME   "NASA/GSFC/OBPG"
 
#define CREATOR_EMAIL   "data@oceancolor.gsfc.nasa.gov"
 
#define CREATOR_URL   "https://oceandata.sci.gsfc.nasa.gov"
 
#define PROJECT   "Ocean Biology Processing Group (NASA/GSFC/OBPG)"
 
#define PUBLISHER_NAME   "NASA/GSFC/OBPG"
 
#define PUBLISHER_EMAIL   "data@oceancolor.gsfc.nasa.gov"
 
#define PUBLISHER_URL   "https://oceandata.sci.gsfc.nasa.gov"
 

Functions

void filehandle_init (filehandle *file)
 
int getl1rec (int32_t recnum, int32_t dscan, l1str *l1rec)
 
int loadl1 (filehandle *l1file, l1str *l1rec)
 
int openl1 (filehandle *l1file)
 
int readl1 (filehandle *l1file, int32_t recnum, l1str *l1rec)
 
int readl1_lonlat (filehandle *l1file, int32_t recnum, l1str *l1rec)
 
int writel1 (filehandle *l1file, int32_t recnum, l1str *l1rec)
 
void closel1 (filehandle *l1file)
 
void closel1_generic (filehandle *l1file)
 
int openl1_read_hdf (filehandle *l1file)
 
int openl1_write_hdf (filehandle *l1file)
 
int openl1_write (filehandle *l1file)
 
int writel1_hdf (filehandle *l1file, int32_t recnum, l1str *l1rec)
 
void closel1_hdf (filehandle *l1file)
 
int openl2 (filehandle *l2file)
 
int writel2 (filehandle *l2file, int32_t recnum, l2str *l2rec, int outfile_number)
 
int closel2 (filehandle *l2file)
 
void update_flag_cnts (int32_t *flag_cnt, int32_t *flags, int32_t nflags, int32_t npix, uint32_t init_mask)
 
void update_flag_cnts16 (int32_t *flag_cnt, int16_t *flags, int32_t nflags, int32_t npix, uint32_t init_mask)
 
void update_qual_cnts (int32_t *flag_cnt, int8_t *flags, int32_t nflags, int32_t npix)
 
int write_flag_pcnts (idDS ds_id, FILE *fpmeta, int32_t *flag_cnt, int32_t nflags, const char *const flag_lname[], int32_t numScans, int32_t numPixels)
 
int write_qual_flag_pcnts (idDS ds_id, FILE *fpmeta, int32_t *flag_cnt, int32_t nflags, const char *const flag_lname[])
 
int open_target (filehandle *file)
 
int read_target (filehandle *file, int32_t recnum, tgstr *tgrec)
 
void close_target (void)
 
int open_aer (filehandle *file)
 
int read_aer (filehandle *file, int32_t recnum, aestr *aerec)
 
void close_aer (filehandle *file)
 
void init_l1 (l1str *l1rec)
 
void init_l2 (l2str *l2rec, int32_t nbands)
 
void free_l1q (void)
 
int32_t alloc_l1 (filehandle *l1file, l1str *l1rec)
 
void free_l1 (l1str *l1rec)
 
int32_t alloc_l2 (l1str *l1rec, l2str *l2rec)
 
void free_l2 (l2str *l2rec)
 
int32_t alloc_target (int32_t npix, int32_t nbands, tgstr *tgrec)
 
int32_t alloc_aer (int32_t npix, int32_t nbands, aestr *aerec)
 
void init_l2prod ()
 
l2prodstr * get_l2prod_index (char *name, int32 sensorID, int32 numBands, int32 numPixels, int32 numScans, int32_t *wave)
 
void write_product_XML_file (char *filename)
 
int32 prodlist (int32 sensorID, int32 evalmask, const char *inprod, const char *defprod, char outprod[MAXPROD][32])
 
int convl12 (l1str *l1rec, l2str *l2rec, int32_t spix, int32_t epix, aestr *aerec)
 
int convl21 (l2str *l2rec, tgstr *tgrec, int32_t spix, int32_t epix, float *Lt, vcstr *vrec)
 
int32 l2_seawifs (filehandle *l1file, filehandle *l2file)
 
int32 l1b_seawifs (filehandle *l1file, filehandle *ofile, int32 sscan, int32 escan, int32 dscan, int32 spixl, int32 epixl, int32 dpixl)
 
int32 get_modis_calfile (int32 sd_id, char *file)
 
int setanc (l1str *l1rec)
 
int setflags (l1str *l1rec)
 
void setflagbits (int level, l1str *l1rec, l2str *l2rec, int32_t ipix)
 
void l1_mask_set (l1str *l1rec, int32_t ip)
 
int modis_cloud_mask (l1str *l1rec, int32_t ip)
 
int modis_cirrus_mask (l1str *l1rec, int32_t ip)
 
void cpl1rec (l1str *l1new, l1str *l1old)
 
int b128_msk_init (char *landfile, int msknum)
 
int b128_msk_get (float lat, float lon, int msknum)
 
int land_mask_init (char *file)
 
int land_mask (float lat, float lon)
 
int bath_mask_init (char *file)
 
int bath_mask (float lat, float lon)
 
int get_height (char *demfile, l1str *l1rec, int32_t ip, int terrain_corrected)
 
void free_deminfo ()
 
int32_t rdsensorinfo (int32_t sensorID, int32_t evalmask, const char *pname, void **pval)
 
void lowercase (char *s)
 
void atmocor1 (l1str *l1rec, int32_t ip)
 
int atmocor2 (l2str *l2rec, aestr *aerec, int32_t ip)
 
void whitecaps (int32_t sensorID, int32_t evalmask, int32_t nwave, float ws, float ws_max, float rhof[])
 
void rayleigh (l1str *l1rec, int32_t ip)
 
int aerosol (l2str *l2rec, int32_t aer_opt_in, aestr *aerec, int32_t ip, float wave[], int32_t nwave, int32_t nir_s_in, int32_t nir_l_in, float F0_in[], float La1_in[], float La2_out[], float t_sol_out[], float t_sen_out[], float *eps, float taua_out[], int32_t *modmin, int32_t *modmax, float *modrat, int32_t *modmin2, int32_t *modmax2, float *modrat2)
 
void gaseous_transmittance (l1str *l1rec, int32_t ip)
 
float ky_airmass (float theta)
 
float pp_airmass (float theta)
 
void get_rhown_nir (char *fqfile, float Rrs[], float wave[], int32_t nir_s, int32_t nir_l, float aw[], float bbw[], float chl, float rhown[])
 
void get_rhown_eval (char *fqfile, float Rrs[], float wave[], int32_t nir_s, int32_t nir_l, int32_t nwave, float aw[], float bbw[], float chl, float solz, float senz, float phi, float rhown[])
 
void get_rho_mumm (l2str *l2rec, int32_t ip, int32_t iw, float *rhom)
 
void get_rhown_mumm (l2str *l2rec, int32_t ip, int32_t nir_s, int32_t nir_l, float rhown[])
 
void glint_rad (int32_t num_iter, int32_t nband, int32_t nir_s, int32_t nir_l, float glint_coef, float air_mass, float mu0, float F0[], float taur[], float taua[], float La[], float TLg[])
 
float fresnel_coef (float mu, float n)
 
float fresnel_sen (float senz, int return_tf)
 
void fresnel_sol (float wave[], int32_t nwave, float solz, float ws, float brdf[], int return_tf)
 
void foqint_morel (char *file, float wave[], int32_t nwave, float solz, float senzp, float phi, float chl, float brdf[])
 
void qint_morel (float wave[], int32_t nwave, float solz, float chl, float Qn[])
 
void gothic_R (float wave[], int32_t nwave, float solz, float senz, float ws, float R[])
 
int ocbrdf (l2str *l2rec, int32_t ip, int32_t brdf_opt, float wave[], int32_t nwave, float solz, float senz, float phi, float ws, float chl, float nLw[], float Fo[], float brdf[])
 
void nlw_outband (int32_t evalmask, int32_t sensorID, float wave[], int32_t nwave, float Lw[], float nLw[])
 
int l2gen_usage (const char *prog)
 
int msl12_input_defaults (filehandle *l1file)
 
void msl12_input_init ()
 
int l2gen_init_options (clo_optionList_t *list, const char *prog)
 
int msl12_option_input (int argc, char *argv[], clo_optionList_t *list, char *progName, filehandle *l1file)
 
int msl12_input (int argc, char *argv[], const char *progName, filehandle *l1file)
 
int l1subpix (filehandle *l1file, l1str *l1rec)
 
int windex (float wave, float twave[], int ntwave)
 
int invbindx (int band, int32_t *bindx, int nbands)
 
void bindex_set (int32_t wave[], int nwave, int dwave)
 
int windex_get (int32_t wave)
 
int bindex_get (int32_t wave)
 
int bindex_get_555 (void)
 
float bin_climatology (char *l3file, int32_t day, float lon, float lat, char *prodname)
 
float get_default_chl (l2str *l2rec, float Rrs[])
 
void get_chl (l2str *l2rec, int prodnum, float prod[])
 
void get_las (l2str *l2rec, l2prodstr *p, float prod[])
 
void get_tsm (l2str *l2rec, int prodnum, float prod[])
 
void get_poc (l2str *l2rec, int prodnum, float prod[])
 
void get_flh (l2str *l2rec, float flh[])
 
void get_fsat (l2str *l2rec, float flh[])
 
void get_fsat2 (l2str *l2rec, float flh[])
 
void get_fqy (l2str *l2rec, float fqy[])
 
void get_fqy2 (l2str *l2rec, float fqy[])
 
void get_ipar (l2str *l2rec, float ipar[])
 
void get_ipar2 (l2str *l2rec, float ipar[])
 
void get_depth (l2str *l2rec, float depth[])
 
void get_par (l2str *l2rec, float par[])
 
void get_bsi (l2str *l2rec, float BSi[])
 
void get_ssn (l2str *l2rec, float ssn[])
 
void get_angstrom (l2str *l2rec, int band, float angst[])
 
void get_ms_epsilon (l2str *l2rec, float eps[])
 
void get_es (l2str *l2rec, int band, float es[])
 
void get_toa_refl (l2str *l2rec, int band, float rhot[])
 
void get_dust_index (l2str *l2rec, float dust[])
 
void get_ndvi_evi (l1str *l1rec, int prodnum, float prod[])
 
void get_ndvi (l1str *l1rec, float ndvi[])
 
void get_evi (l1str *l1rec, float evi[])
 
void get_evi2 (l1str *l1rec, float evi2[])
 
void get_evi3 (l1str *l1rec, float evi3[])
 
void get_smoke (l2str *l2rec, float smoke[])
 
void get_Kd (l2str *l2rec, l2prodstr *p, float Kd[])
 
void get_photic_depth (l2str *l2rec, l2prodstr *p, float Z[])
 
void cdom_morel (l2str *l2rec, l2prodstr *p, float prod[])
 
void cdom_mannino (l2str *l2rec, int prodnum, float prod[])
 
void vcal (l2str *l2rec, l2prodstr *p, float vcal[])
 
double * get_xcal (l1str *l1rec, int type, int bandnum)
 
double * get_fpm_xcal (char *fpm_file)
 
float aw_spectra (int32_t wl, int32_t width)
 
float bbw_spectra (int32_t wl, int32_t width)
 
void get_aw_bbw (l2str *l2rec, float wave[], int nwave, float *aw, float *bbw)
 
float seawater_nsw (float wave, float sst, float sss, float *dnswds)
 
float seawater_bb (float wave, float sst, float sss, double delta)
 
void seawater_set (l1str *l1rec)
 
float seawater_get_n (int32_t ip, int32_t ib)
 
float seawater_get_a (int32_t ip, int32_t ib)
 
float seawater_get_bb (int32_t ip, int32_t ib)
 
void get_bbws (l2str *l2rec, l2prodstr *p, float prod[])
 
int atmocor1_land (l1str *l1rec, int32_t ip)
 
void polcor (l1str *l1rec, int32_t ip)
 
int get_rhos (l1str *l1rec, int32_t ip)
 
int8 * get_qual_sst (l2str *l2rec)
 
int8 * get_qual_sst4 (l2str *l2rec)
 
int8 * get_qual_sst_triple (l2str *l2rec)
 
int16 * get_flags_sst (l2str *l2rec)
 
int16 * get_flags_sst4 (l2str *l2rec)
 
int16 * get_flags_sst_triple (l2str *l2rec)
 
float * get_sst_dust_correction (l2str *l2rec)
 
float * get_sst (l2str *l2rec)
 
float * get_sst4 (l2str *l2rec)
 
float * get_sst_triple (l2str *l2rec)
 
float * get_bias_sst (l2str *l2rec)
 
float * get_bias_sst4 (l2str *l2rec)
 
float * get_bias_sst_triple (l2str *l2rec)
 
float * get_stdv_sst (l2str *l2rec)
 
float * get_stdv_sst4 (l2str *l2rec)
 
float * get_stdv_sst_triple (l2str *l2rec)
 
float * get_bias_mean_sst (l2str *l2rec)
 
float * get_bias_mean_sst4 (l2str *l2rec)
 
float * get_bias_mean_sst_triple (l2str *l2rec)
 
int16 * get_counts_sst (l2str *l2rec)
 
int16 * get_counts_sst4 (l2str *l2rec)
 
int16 * get_counts_sst_triple (l2str *l2rec)
 
void radiance2bt (l1str *l1rec, int resolution)
 
float get_sstref (short reftyp, char *file, l1str *l1rec, int32_t ip)
 
float get_sssref (char *file, float lon, float lat, int day)
 
void calcite (l2str *l2rec, l2prodstr *p, float caco3[])
 
void tindx_morel (l2str *l2rec, int32_t ip, float *tindx)
 
void tindx_shi (l2str *l2rec, int32_t ip, float *tindx)
 
float conv_rrs_to_555 (float Rrs, float wave)
 
float water_vapor (int ib, float wv, float airmass)
 
int ice_mask_init (char *file, int year, int day, float threshold)
 
char ice_mask (float lon, float lat)
 
float ice_fraction (float lon, float lat)
 
void get_ice_frac (l2str *l2rec, float ice[])
 
void get_tauc (l2str *l2rec, float tauc[])
 
void get_mgiop (l2str *l2rec, l2prodstr *p, float prod[])
 
void get_gsm (l2str *l2rec, l2prodstr *p, float prod[])
 
int16 * get_iter_gsm (l2str *l2rec)
 
void iops_gsm (l2str *l2rec)
 
void get_giop (l2str *l2rec, l2prodstr *p, float prod[])
 
int16 * get_iter_giop (l2str *l2rec)
 
int16 * get_flags_giop (l2str *l2rec)
 
void iops_giop (l2str *l2rec)
 
void get_carder (l2str *l2rec, l2prodstr *p, float prod[])
 
int16 * get_flags_carder (l2str *l2rec)
 
void iops_carder (l2str *l2rec)
 
void chl_carder_empirical (l2str *l2rec, float prod[])
 
void get_pml (l2str *l2rec, l2prodstr *p, float prod[])
 
void iops_pml (l2str *l2rec)
 
void get_qaa (l2str *l2rec, l2prodstr *p, float prod[])
 
unsigned char * get_flags_qaa (l2str *l2rec)
 
void iops_qaa (l2str *l2rec)
 
void get_niwa (l2str *l2rec, l2prodstr *p, float prod[])
 
void iops_niwa (l2str *l2rec)
 
int16 * get_flags_niwa (l2str *l2rec)
 
void iops_las (l2str *l2rec)
 
int get_bbp_qaa (l2str *l2rec, int ip, float tab_wave[], float tab_bbp[], int tab_nwave)
 
int get_bbp_las (l2str *l2rec, int ip, float tab_wave[], float tab_bbp[], int tab_nwave)
 
float get_bbp_las_eta (l2str *l2rec, int ip)
 
float get_bbp_las_eta_ksm (l2str *l2rec, int ip)
 
void get_iops (l2str *l2rec, int32_t iop_opt)
 
void set_iop_flag (float32 wave[], int32 nwave, float32 a[], float32 aph[], float32 adg[], float32 bb[], float32 bbp[], int16 *flag)
 
float aph_bricaud (float wave, float chl)
 
float aph_ciotti (float wave, float sf)
 
float get_aphstar (float wave, int dwave, int ftype, float proxy)
 
float rrs_above_to_below (float Rrs)
 
void optical_class (l2str *l2rec, l2prodstr *p, float prod[])
 
float * get_class_ward_owmc (l2str *l2rec)
 
float * get_class_k_owmc (l2str *l2rec)
 
float * get_class_34k_w_owmc (l2str *l2rec)
 
int get_f0_neckel (int32_t wl, int32_t width, float *f0)
 
int get_f0_thuillier (int32_t wl, int32_t width, float *f0)
 
void get_f0_thuillier_ext (int32_t wl, int32_t width, float *f0)
 
float32 westernmost (float32 lon1, float32 lon2)
 
float32 easternmost (float32 lon1, float32 lon2)
 
void fctl_init (fctlstr *fctl)
 
int fctl_set (fctlstr *fctl, int32_t npix, char *fname, int32_t band, int32_t nx, int32_t ny, int32_t minfill, int32_t nbands)
 
void filter (fctlstr *fctl, l1qstr *l1que, l1str *l1rec, int32_t dscan)
 
int rdfilter (char *file, fctlstr *fctl, int32_t nbands)
 
void fdilate (l1qstr *l1que, int32_t nx, int32_t ny, int flag, char kernel[], l1str *l1rec)
 
void fclean (l1qstr *l1que, int32_t nx, int32_t ny, int flag, char kernel[], l1str *l1rec)
 
void fLTmean (l1qstr *l1que, int32_t nx, int32_t ny, int ib, int32_t minfill, char kernel[], l1str *l1rec)
 
void fLTRmean (l1qstr *l1que, int32_t nx, int32_t ny, int ib, int32_t minfill, char kernel[], l1str *l1rec)
 
void fLTmed (l1qstr *l1que, int32_t nx, int32_t ny, int ib, int32_t minfill, char kernel[], l1str *l1rec)
 
void fLTRmed (l1qstr *l1que, int32_t nx, int32_t ny, int ib, int32_t minfill, char kernel[], l1str *l1rec)
 
void fEPSmean (l1qstr *l1que, int32_t nx, int32_t ny, int ib, int32_t minfill, char kernel[], l1str *l1rec)
 
void fEPSiqmean (l1qstr *l1que, int32_t nx, int32_t ny, int ib, int32_t minfill, char kernel[], l1str *l1rec)
 
void fLTRiqmean (l1qstr *l1que, int32_t nx, int32_t ny, int ib, int32_t minfill, char kernel[], l1str *l1rec)
 
void fLTrat (l1qstr *l1que, int32_t nx, int32_t ny, l1str *l1rec)
 
void viirs_pxcvt_2uag (int, int *, int *)
 
void viirs_pxcvt_2ag (int, int *)
 
void viirs_pxcvt_agdel (int, int, int *)
 
void flag_bowtie_deleted (l1str *l1rec, size_t ipix, int extract_offset)
 
void sunangs_ (int *iyr, int *iday, float *gmt, float *xlon, float *ylat, float *sunz, float *suna)
 
int getglint_ (float *, float *, float *, float *, float *, float *)
 
int getglint_iqu_ (float *, float *, float *, float *, float *, float *, float *, float *)
 
double esdist_ (int32_t *year, int32_t *day, int32_t *msec)
 
void get_um_prod_ (int32_t *idProd, int32_t *pix, float *val)
 
void clear_um_prod_ ()
 
void get_fdiff (l2str *l2rec, float fdiff[])
 
void get_cdom_morel (l2str *l2rec, l2prodstr *p, float prod[])
 
void optical_water_type (l2str *l2rec, l2prodstr *p, void *vptr)
 
VOIDP prodgen (l2prodstr *p, l2str *l2rec)
 
void virtual_constellation (l2str *l2rec, l2prodstr *p, float prod[])
 
void bioOptBandShift (l2str *l2rec, l2prodstr *p, float prod[])
 
void get_swim (l2str *l2rec, l2prodstr *p, float prod[])
 
void iops_swim (l2str *l2rec)
 
int compfloat (float *x, float *y)
 
void elev_init (char *elevFilename, char *elevAuxFilename)
 
float get_elev (float lat, float lon)
 
int read_target_l3 (filehandle *file, l1str *l1rec, int32_t nbands, tgstr *tgrec)
 
int ncio_dim_siz (int, char *)
 
int ncio_grab_f_ds (int, char *, float *)
 
int ncio_grab_stdsclf_ds (int, char *, float, float *)
 
float get_mld (char *mldfile, float lon, float lat, int day)
 
void get_pft_hirata (l2str *l2rec, l2prodstr *p, float prod[])
 
void get_pft_uitz (l2str *l2rec, l2prodstr *p, float prod[])
 
void get_npp (l2str *l2rec, int32_t, float prod[])
 
float chl_abi (l2str *l2rec, float nLw[])
 
void run_raman_cor (l2str *l2rec, int ip)
 
void get_bpar (l2str *l2rec, l2prodstr *p, float prod[])
 
void get_habs_ci (l2str *l2rec, l2prodstr *p, float ci[])
 
void get_habs_mph (l2str *l2rec, l2prodstr *p, float mph_chl[])
 
uint8_t * get_flags_habs_mph (l2str *l2rec)
 
uint8_t * get_flags_habs (l2str *l2rec)
 
char get_cldmask (l1str *l1rec, int32_t ip)
 
void get_psd_ksm (l2str *l2rec, l2prodstr *p, float prod[])
 
int init_geom_per_band (l1str *)
 
int geom_per_band_deriv (l1str *)
 
int destroy_geom_per_band (geom_struc *)
 
float * giop_get_aph_pointer ()
 
float * giop_get_adg_pointer ()
 
float * giop_get_bbp_pointer ()
 
float * giop_get_bbp_s_pointer ()
 
void run_giop (l2str *l2rec)
 
int giop_ran (int recnum)
 

Variables

instr * input
 

Macro Definition Documentation

◆ AGZONE0

#define AGZONE0   0

Definition at line 53 of file l12_proto.h.

◆ AGZONE1

#define AGZONE1   640

Definition at line 54 of file l12_proto.h.

◆ AGZONE2

#define AGZONE2   1008

Definition at line 55 of file l12_proto.h.

◆ AGZONE3

#define AGZONE3   1600

Definition at line 56 of file l12_proto.h.

◆ AGZONE4

#define AGZONE4   2192

Definition at line 57 of file l12_proto.h.

◆ AGZONE5

#define AGZONE5   2560

Definition at line 58 of file l12_proto.h.

◆ CREATOR_EMAIL

#define CREATOR_EMAIL   "data@oceancolor.gsfc.nasa.gov"

Definition at line 67 of file l12_proto.h.

◆ CREATOR_NAME

#define CREATOR_NAME   "NASA/GSFC/OBPG"

Definition at line 66 of file l12_proto.h.

◆ CREATOR_URL

#define CREATOR_URL   "https://oceandata.sci.gsfc.nasa.gov"

Definition at line 68 of file l12_proto.h.

◆ INSTITUTION

#define INSTITUTION   "NASA Goddard Space Flight Center, Ocean Ecology Laboratory, Ocean Biology Processing Group"

Definition at line 61 of file l12_proto.h.

◆ KEYWORDS_VOCABULARY

#define KEYWORDS_VOCABULARY   "NASA Global Change Master Directory (GCMD) Science Keywords"

Definition at line 64 of file l12_proto.h.

◆ LICENSE

#define LICENSE   "https://science.nasa.gov/earth-science/earth-science-data/data-information-policy/"

Definition at line 62 of file l12_proto.h.

◆ NAMING_AUTHORITY

#define NAMING_AUTHORITY   "gov.nasa.gsfc.sci.oceandata"

Definition at line 63 of file l12_proto.h.

◆ PROJECT

#define PROJECT   "Ocean Biology Processing Group (NASA/GSFC/OBPG)"

Definition at line 69 of file l12_proto.h.

◆ PUBLISHER_EMAIL

#define PUBLISHER_EMAIL   "data@oceancolor.gsfc.nasa.gov"

Definition at line 71 of file l12_proto.h.

◆ PUBLISHER_NAME

#define PUBLISHER_NAME   "NASA/GSFC/OBPG"

Definition at line 70 of file l12_proto.h.

◆ PUBLISHER_URL

#define PUBLISHER_URL   "https://oceandata.sci.gsfc.nasa.gov"

Definition at line 72 of file l12_proto.h.

◆ STDNAME_VOCABULARY

#define STDNAME_VOCABULARY   "CF Standard Name Table v36"

Definition at line 65 of file l12_proto.h.

Function Documentation

◆ aerosol()

int aerosol ( l2str *  l2rec,
int32_t  aer_opt_in,
aestr *  aerec,
int32_t  ip,
float  wave[],
int32_t  nwave,
int32_t  nir_s_in,
int32_t  nir_l_in,
float  F0_in[],
float  La1_in[],
float  La2_out[],
float  t_sol_out[],
float  t_sen_out[],
float *  eps,
float  taua_out[],
int32_t *  modmin,
int32_t *  modmax,
float *  modrat,
int32_t *  modmin2,
int32_t *  modmax2,
float *  modrat2 
)

Definition at line 4134 of file aerosol.c.

◆ alloc_aer()

int32_t alloc_aer ( int32_t  npix,
int32_t  nbands,
aestr *  aerec 
)

Definition at line 12 of file alloc_aer.c.

◆ alloc_l1()

int32_t alloc_l1 ( filehandle *  l1file,
l1str *  l1rec 
)

Definition at line 17 of file alloc_l1.c.

◆ alloc_l2()

int32_t alloc_l2 ( l1str *  l1rec,
l2str *  l2rec 
)

Definition at line 17 of file alloc_l2.c.

◆ alloc_target()

int32_t alloc_target ( int32_t  npix,
int32_t  nbands,
tgstr *  tgrec 
)

Definition at line 12 of file alloc_target.c.

◆ aph_bricaud()

float aph_bricaud ( float  wave,
float  chl 
)

Definition at line 181 of file aph.c.

◆ aph_ciotti()

float aph_ciotti ( float  wave,
float  sf 
)

Definition at line 190 of file aph.c.

◆ atmocor1()

void atmocor1 ( l1str *  l1rec,
int32_t  ip 
)

Definition at line 39 of file atmocor1.c.

◆ atmocor1_land()

int atmocor1_land ( l1str *  l1rec,
int32_t  ip 
)

Definition at line 16 of file atmocor1_land.c.

◆ atmocor2()

int atmocor2 ( l2str *  l2rec,
aestr *  aerec,
int32_t  ip 
)

Definition at line 11 of file atmocor2.c.

◆ aw_spectra()

float aw_spectra ( int32_t  wl,
int32_t  width 
)

Definition at line 105 of file water_spectra.c.

◆ b128_msk_get()

int b128_msk_get ( float  lat,
float  lon,
int  msknum 
)

Definition at line 183 of file b128_msk_get.c.

◆ b128_msk_init()

int b128_msk_init ( char *  landfile,
int  msknum 
)

Definition at line 30 of file b128_msk_get.c.

◆ bath_mask()

int bath_mask ( float  lat,
float  lon 
)

Definition at line 59 of file read_mask.c.

◆ bath_mask_init()

int bath_mask_init ( char *  file)

Definition at line 53 of file read_mask.c.

◆ bbw_spectra()

float bbw_spectra ( int32_t  wl,
int32_t  width 
)

Definition at line 142 of file water_spectra.c.

◆ bin_climatology()

float bin_climatology ( char *  l3file,
int32_t  day,
float  lon,
float  lat,
char *  prodname 
)

Definition at line 287 of file bin_climatology.c.

◆ bindex_get()

int bindex_get ( int32_t  wave)

Definition at line 43 of file windex.c.

◆ bindex_get_555()

int bindex_get_555 ( void  )

Definition at line 55 of file windex.c.

◆ bindex_set()

void bindex_set ( int32_t  wave[],
int  nwave,
int  dwave 
)

Definition at line 13 of file windex.c.

◆ bioOptBandShift()

void bioOptBandShift ( l2str *  l2rec,
l2prodstr *  p,
float  prod[] 
)

Definition at line 52 of file bioOptBandShift.c.

◆ calcite()

void calcite ( l2str *  l2rec,
l2prodstr *  p,
float  caco3[] 
)

Definition at line 514 of file calcite.c.

◆ cdom_mannino()

void cdom_mannino ( l2str *  l2rec,
int  prodnum,
float  prod[] 
)

Definition at line 7 of file cdom_mannino.c.

◆ cdom_morel()

void cdom_morel ( l2str *  l2rec,
l2prodstr *  p,
float  prod[] 
)

◆ chl_abi()

float chl_abi ( l2str *  l2rec,
float  nLw[] 
)

Definition at line 432 of file get_chl.c.

◆ chl_carder_empirical()

void chl_carder_empirical ( l2str *  l2rec,
float  prod[] 
)

Definition at line 1168 of file carder.c.

◆ clear_um_prod_()

void clear_um_prod_ ( )

◆ close_aer()

void close_aer ( filehandle *  file)

◆ close_target()

void close_target ( void  )

Definition at line 35 of file target_io.c.

◆ closel1()

void closel1 ( filehandle *  l1file)

Definition at line 69 of file l1_io.c.

◆ closel1_generic()

void closel1_generic ( filehandle *  l1file)

Definition at line 765 of file l1_generic_write.c.

◆ closel1_hdf()

void closel1_hdf ( filehandle *  l1file)

Definition at line 701 of file l1_hdf_generic_write.c.

◆ closel2()

int closel2 ( filehandle *  l2file)

Definition at line 1444 of file l2_generic.c.

◆ compfloat()

int compfloat ( float *  x,
float *  y 
)

Definition at line 728 of file filter.c.

◆ conv_rrs_to_555()

float conv_rrs_to_555 ( float  Rrs,
float  wave 
)

Definition at line 17 of file convert_band.c.

◆ convl12()

int convl12 ( l1str *  l1rec,
l2str *  l2rec,
int32_t  spix,
int32_t  epix,
aestr *  aerec 
)

Definition at line 16 of file convl12.c.

◆ convl21()

int convl21 ( l2str *  l2rec,
tgstr *  tgrec,
int32_t  spix,
int32_t  epix,
float *  Lt,
vcstr *  vrec 
)

Definition at line 15 of file convl21.c.

◆ cpl1rec()

void cpl1rec ( l1str *  l1new,
l1str *  l1old 
)

Definition at line 6 of file cpl1rec.c.

◆ destroy_geom_per_band()

int destroy_geom_per_band ( geom_struc *  )

◆ easternmost()

float32 easternmost ( float32  lon1,
float32  lon2 
)

Definition at line 37 of file scene_meta.c.

◆ elev_init()

void elev_init ( char *  elevFilename,
char *  elevAuxFilename 
)

Definition at line 66 of file elev.c.

◆ esdist_()

double esdist_ ( int32_t *  year,
int32_t *  day,
int32_t *  msec 
)

◆ fclean()

void fclean ( l1qstr *  l1que,
int32_t  nx,
int32_t  ny,
int  flag,
char  kernel[],
l1str *  l1rec 
)

Definition at line 534 of file filter.c.

◆ fctl_init()

void fctl_init ( fctlstr *  fctl)

Definition at line 19 of file filter.c.

◆ fctl_set()

int fctl_set ( fctlstr *  fctl,
int32_t  npix,
char *  fname,
int32_t  band,
int32_t  nx,
int32_t  ny,
int32_t  minfill,
int32_t  nbands 
)

Definition at line 92 of file filter.c.

◆ fdilate()

void fdilate ( l1qstr *  l1que,
int32_t  nx,
int32_t  ny,
int  flag,
char  kernel[],
l1str *  l1rec 
)

Definition at line 361 of file filter.c.

◆ fEPSiqmean()

void fEPSiqmean ( l1qstr *  l1que,
int32_t  nx,
int32_t  ny,
int  ib,
int32_t  minfill,
char  kernel[],
l1str *  l1rec 
)

Definition at line 1247 of file filter.c.

◆ fEPSmean()

void fEPSmean ( l1qstr *  l1que,
int32_t  nx,
int32_t  ny,
int  ib,
int32_t  minfill,
char  kernel[],
l1str *  l1rec 
)

Definition at line 851 of file filter.c.

◆ filehandle_init()

void filehandle_init ( filehandle *  file)

Definition at line 4 of file filehandle_init.c.

◆ filter()

void filter ( fctlstr *  fctl,
l1qstr *  l1que,
l1str *  l1rec,
int32_t  dscan 
)

Definition at line 1396 of file filter.c.

◆ flag_bowtie_deleted()

void flag_bowtie_deleted ( l1str *  l1rec,
size_t  ipix,
int  extract_offset 
)

Definition at line 879 of file l1b_viirs_nc.c.

◆ fLTmean()

void fLTmean ( l1qstr *  l1que,
int32_t  nx,
int32_t  ny,
int  ib,
int32_t  minfill,
char  kernel[],
l1str *  l1rec 
)

Definition at line 614 of file filter.c.

◆ fLTmed()

void fLTmed ( l1qstr *  l1que,
int32_t  nx,
int32_t  ny,
int  ib,
int32_t  minfill,
char  kernel[],
l1str *  l1rec 
)

Definition at line 1020 of file filter.c.

◆ fLTrat()

void fLTrat ( l1qstr *  l1que,
int32_t  nx,
int32_t  ny,
l1str *  l1rec 
)

◆ fLTRiqmean()

void fLTRiqmean ( l1qstr *  l1que,
int32_t  nx,
int32_t  ny,
int  ib,
int32_t  minfill,
char  kernel[],
l1str *  l1rec 
)

Definition at line 1164 of file filter.c.

◆ fLTRmean()

void fLTRmean ( l1qstr *  l1que,
int32_t  nx,
int32_t  ny,
int  ib,
int32_t  minfill,
char  kernel[],
l1str *  l1rec 
)

Definition at line 671 of file filter.c.

◆ fLTRmed()

void fLTRmed ( l1qstr *  l1que,
int32_t  nx,
int32_t  ny,
int  ib,
int32_t  minfill,
char  kernel[],
l1str *  l1rec 
)

Definition at line 1091 of file filter.c.

◆ foqint_morel()

void foqint_morel ( char *  file,
float  wave[],
int32_t  nwave,
float  solz,
float  senzp,
float  phi,
float  chl,
float  brdf[] 
)

Definition at line 314 of file brdf.c.

◆ free_deminfo()

void free_deminfo ( )

Definition at line 224 of file get_nc_height.c.

◆ free_l1()

void free_l1 ( l1str *  l1rec)

Definition at line 8 of file alloc_l1.c.

◆ free_l1q()

void free_l1q ( void  )

Definition at line 13 of file getl1rec.c.

◆ free_l2()

void free_l2 ( l2str *  l2rec)

Definition at line 7 of file alloc_l2.c.

◆ fresnel_coef()

float fresnel_coef ( float  mu,
float  n 
)

Definition at line 1027 of file aerosol.c.

◆ fresnel_sen()

float fresnel_sen ( float  senz,
int  return_tf 
)

Definition at line 127 of file brdf.c.

◆ fresnel_sol()

void fresnel_sol ( float  wave[],
int32_t  nwave,
float  solz,
float  ws,
float  brdf[],
int  return_tf 
)

Definition at line 160 of file brdf.c.

◆ gaseous_transmittance()

void gaseous_transmittance ( l1str *  l1rec,
int32_t  ip 
)

Definition at line 438 of file gas_trans.c.

◆ geom_per_band_deriv()

int geom_per_band_deriv ( l1str *  )

Definition at line 52 of file geom_per_band.c.

◆ get_angstrom()

void get_angstrom ( l2str *  l2rec,
int  band,
float  angst[] 
)

Definition at line 4737 of file aerosol.c.

◆ get_aphstar()

float get_aphstar ( float  wave,
int  dwave,
int  ftype,
float  proxy 
)

Definition at line 296 of file aph.c.

◆ get_aw_bbw()

void get_aw_bbw ( l2str *  l2rec,
float  wave[],
int  nwave,
float *  aw,
float *  bbw 
)

Definition at line 179 of file water_spectra.c.

◆ get_bbp_las()

int get_bbp_las ( l2str *  l2rec,
int  ip,
float  tab_wave[],
float  tab_bbp[],
int  tab_nwave 
)

Definition at line 605 of file las_iop.c.

◆ get_bbp_las_eta()

float get_bbp_las_eta ( l2str *  l2rec,
int  ip 
)

Definition at line 627 of file las_iop.c.

◆ get_bbp_las_eta_ksm()

float get_bbp_las_eta_ksm ( l2str *  l2rec,
int  ip 
)

Definition at line 745 of file las_iop_ksm.c.

◆ get_bbp_qaa()

int get_bbp_qaa ( l2str *  l2rec,
int  ip,
float  tab_wave[],
float  tab_bbp[],
int  tab_nwave 
)

Definition at line 367 of file get_qaa.c.

◆ get_bbws()

void get_bbws ( l2str *  l2rec,
l2prodstr *  p,
float  prod[] 
)

function to return spectral slope parameter for bbw

Parameters
l2recl2rec structure
pproduct sturcture
prodoutput bbw slope parameter

The slope is computed on the log transformed data for the visible wavelengths only. This works, because bbw can be approximated by a power function.

Definition at line 254 of file seawater.c.

◆ get_bias_mean_sst()

float* get_bias_mean_sst ( l2str *  l2rec)

Definition at line 7657 of file sst.c.

◆ get_bias_mean_sst4()

float* get_bias_mean_sst4 ( l2str *  l2rec)

Definition at line 7670 of file sst.c.

◆ get_bias_mean_sst_triple()

float* get_bias_mean_sst_triple ( l2str *  l2rec)

Definition at line 7688 of file sst.c.

◆ get_bias_sst()

float* get_bias_sst ( l2str *  l2rec)

Definition at line 7391 of file sst.c.

◆ get_bias_sst4()

float* get_bias_sst4 ( l2str *  l2rec)

Definition at line 7404 of file sst.c.

◆ get_bias_sst_triple()

float* get_bias_sst_triple ( l2str *  l2rec)

Definition at line 7422 of file sst.c.

◆ get_bpar()

void get_bpar ( l2str *  l2rec,
l2prodstr *  p,
float  prod[] 
)

Definition at line 482 of file get_bpar.c.

◆ get_bsi()

void get_bsi ( l2str *  l2rec,
float  BSi[] 
)

◆ get_carder()

void get_carder ( l2str *  l2rec,
l2prodstr *  p,
float  prod[] 
)

Definition at line 957 of file carder.c.

◆ get_cdom_morel()

void get_cdom_morel ( l2str *  l2rec,
l2prodstr *  p,
float  prod[] 
)

Definition at line 319 of file cdom_morel.c.

◆ get_chl()

void get_chl ( l2str *  l2rec,
int  prodnum,
float  prod[] 
)

Definition at line 546 of file get_chl.c.

◆ get_class_34k_w_owmc()

float* get_class_34k_w_owmc ( l2str *  l2rec)

Definition at line 214 of file get_owmc.c.

◆ get_class_k_owmc()

float* get_class_k_owmc ( l2str *  l2rec)

Definition at line 209 of file get_owmc.c.

◆ get_class_ward_owmc()

float* get_class_ward_owmc ( l2str *  l2rec)

Definition at line 204 of file get_owmc.c.

◆ get_cldmask()

char get_cldmask ( l1str *  l1rec,
int32_t  ip 
)

Definition at line 345 of file cloud_flag.c.

◆ get_counts_sst()

int16* get_counts_sst ( l2str *  l2rec)

Definition at line 7449 of file sst.c.

◆ get_counts_sst4()

int16* get_counts_sst4 ( l2str *  l2rec)

Definition at line 7461 of file sst.c.

◆ get_counts_sst_triple()

int16* get_counts_sst_triple ( l2str *  l2rec)

Definition at line 7474 of file sst.c.

◆ get_default_chl()

float get_default_chl ( l2str *  l2rec,
float  Rrs[] 
)

Definition at line 478 of file get_chl.c.

◆ get_depth()

void get_depth ( l2str *  l2rec,
float  depth[] 
)

Definition at line 20 of file get_depth.c.

◆ get_dust_index()

void get_dust_index ( l2str *  l2rec,
float  dust[] 
)

◆ get_elev()

float get_elev ( float  lat,
float  lon 
)

Definition at line 108 of file elev.c.

◆ get_es()

void get_es ( l2str *  l2rec,
int  band,
float  Es[] 
)

now returns in W/m2/um

Definition at line 24 of file get_es.c.

◆ get_evi()

void get_evi ( l1str *  l1rec,
float  evi[] 
)

Definition at line 63 of file get_ndvi.c.

◆ get_evi2()

void get_evi2 ( l1str *  l1rec,
float  evi2[] 
)

Definition at line 122 of file get_ndvi.c.

◆ get_evi3()

void get_evi3 ( l1str *  l1rec,
float  evi3[] 
)

Definition at line 156 of file get_ndvi.c.

◆ get_f0_neckel()

int get_f0_neckel ( int32_t  wl,
int32_t  width,
float *  f0 
)

Definition at line 5 of file get_f0.c.

◆ get_f0_thuillier()

int get_f0_thuillier ( int32_t  wl,
int32_t  width,
float *  f0 
)

Definition at line 71 of file get_f0.c.

◆ get_f0_thuillier_ext()

void get_f0_thuillier_ext ( int32_t  wl,
int32_t  width,
float *  f0 
)

Definition at line 137 of file get_f0.c.

◆ get_fdiff()

void get_fdiff ( l2str *  l2rec,
float  fdiff[] 
)

◆ get_flags_carder()

int16* get_flags_carder ( l2str *  l2rec)

Definition at line 948 of file carder.c.

◆ get_flags_giop()

int16* get_flags_giop ( l2str *  l2rec)

Definition at line 2722 of file giop.c.

◆ get_flags_habs()

uint8_t* get_flags_habs ( l2str *  l2rec)

Definition at line 664 of file get_habs.c.

◆ get_flags_habs_mph()

uint8_t* get_flags_habs_mph ( l2str *  l2rec)

Definition at line 347 of file get_habs.c.

◆ get_flags_niwa()

int16* get_flags_niwa ( l2str *  l2rec)

Definition at line 99 of file get_niwa_iop.c.

◆ get_flags_qaa()

unsigned char* get_flags_qaa ( l2str *  l2rec)

Definition at line 253 of file get_qaa.c.

◆ get_flags_sst()

int16* get_flags_sst ( l2str *  l2rec)

Definition at line 7561 of file sst.c.

◆ get_flags_sst4()

int16* get_flags_sst4 ( l2str *  l2rec)

Definition at line 7574 of file sst.c.

◆ get_flags_sst_triple()

int16* get_flags_sst_triple ( l2str *  l2rec)

Definition at line 7592 of file sst.c.

◆ get_flh()

void get_flh ( l2str *  l2rec,
float  flh[] 
)

get_flh - calls the appropriate flh function for the given mission

Parameters
l2rec
flh

Definition at line 269 of file fluorescence.c.

◆ get_fpm_xcal()

double* get_fpm_xcal ( char *  fpm_file)

Definition at line 331 of file xcal.c.

◆ get_fqy()

void get_fqy ( l2str *  l2rec,
float  fqy[] 
)

get_fqy - calls the appropriate fluorescense quantum yeild function for the given mission

Parameters
l2rec
fqy

Definition at line 251 of file fluorescence.c.

◆ get_fqy2()

void get_fqy2 ( l2str *  l2rec,
float  fqy[] 
)

◆ get_fsat()

void get_fsat ( l2str *  l2rec,
float  flh[] 
)

get_fsat - calls the appropriate fsat function for the given mission "fsat" is the flh algorithm described in Behrenfeld 2009 (doi:10.5194/bg-6-779-2009)

Parameters
l2rec
flh

Definition at line 289 of file fluorescence.c.

◆ get_fsat2()

void get_fsat2 ( l2str *  l2rec,
float  flh[] 
)

◆ get_giop()

void get_giop ( l2str *  l2rec,
l2prodstr *  p,
float  prod[] 
)

Definition at line 2538 of file giop.c.

◆ get_gsm()

void get_gsm ( l2str *  l2rec,
l2prodstr *  p,
float  prod[] 
)

Definition at line 717 of file gsm.c.

◆ get_habs_ci()

void get_habs_ci ( l2str *  l2rec,
l2prodstr *  p,
float  ci[] 
)

Definition at line 80 of file get_habs.c.

◆ get_habs_mph()

void get_habs_mph ( l2str *  l2rec,
l2prodstr *  p,
float  mph_chl[] 
)

Definition at line 252 of file get_habs.c.

◆ get_height()

int get_height ( char *  demfile,
l1str *  l1rec,
int32_t  ip,
int  terrain_corrected 
)

Load DEM height for one pixel

Parameters
[in]demfile
[in,out]l1str
[in]ip
[in]terrain_corrected
Returns

Definition at line 34 of file get_height.c.

◆ get_ice_frac()

void get_ice_frac ( l2str *  l2rec,
float  ice[] 
)

Definition at line 17 of file get_ice_frac.c.

◆ get_iops()

void get_iops ( l2str *  l2rec,
int32_t  iop_opt 
)

Definition at line 113 of file convl12.c.

◆ get_ipar()

void get_ipar ( l2str *  l2rec,
float  ipar[] 
)

Definition at line 18 of file ipar.c.

◆ get_ipar2()

void get_ipar2 ( l2str *  l2rec,
float  ipar[] 
)

◆ get_iter_giop()

int16* get_iter_giop ( l2str *  l2rec)

Definition at line 2710 of file giop.c.

◆ get_iter_gsm()

int16* get_iter_gsm ( l2str *  l2rec)

Definition at line 875 of file gsm.c.

◆ get_Kd()

void get_Kd ( l2str *  l2rec,
l2prodstr *  p,
float  Kd[] 
)

Definition at line 981 of file get_Kd.c.

◆ get_l2prod_index()

l2prodstr* get_l2prod_index ( char *  name,
int32  sensorID,
int32  numBands,
int32  numPixels,
int32  numScans,
int32_t *  wave 
)

◆ get_las()

void get_las ( l2str *  l2rec,
l2prodstr *  p,
float  prod[] 
)

Definition at line 492 of file las_iop.c.

◆ get_mgiop()

void get_mgiop ( l2str *  l2rec,
l2prodstr *  p,
float  prod[] 
)

Definition at line 10 of file mgiop.c.

◆ get_mld()

float get_mld ( char *  mldfile,
float  lon,
float  lat,
int  day 
)

Definition at line 347 of file get_mld.cpp.

◆ get_modis_calfile()

int32 get_modis_calfile ( int32  sd_id,
char *  file 
)

◆ get_ms_epsilon()

void get_ms_epsilon ( l2str *  l2rec,
float  eps[] 
)

Definition at line 4785 of file aerosol.c.

◆ get_ndvi()

void get_ndvi ( l1str *  l1rec,
float  ndvi[] 
)

Definition at line 31 of file get_ndvi.c.

◆ get_ndvi_evi()

void get_ndvi_evi ( l1str *  l1rec,
int  prodnum,
float  prod[] 
)

Definition at line 203 of file get_ndvi.c.

◆ get_niwa()

void get_niwa ( l2str *  l2rec,
l2prodstr *  p,
float  prod[] 
)

Definition at line 67 of file get_niwa_iop.c.

◆ get_npp()

void get_npp ( l2str *  l2rec,
int32_t  ,
float  prod[] 
)

◆ get_par()

void get_par ( l2str *  l2rec,
float  par[] 
)

Definition at line 34 of file get_par.c.

◆ get_pft_hirata()

void get_pft_hirata ( l2str *  l2rec,
l2prodstr *  p,
float  prod[] 
)

Definition at line 145 of file get_pft_hirata.c.

◆ get_pft_uitz()

void get_pft_uitz ( l2str *  l2rec,
l2prodstr *  p,
float  prod[] 
)

Definition at line 387 of file get_pft_uitz.c.

◆ get_photic_depth()

void get_photic_depth ( l2str *  l2rec,
l2prodstr *  p,
float  Z[] 
)

Definition at line 303 of file photic_depth.c.

◆ get_pml()

void get_pml ( l2str *  l2rec,
l2prodstr *  p,
float  prod[] 
)

Definition at line 268 of file get_pml.c.

◆ get_poc()

void get_poc ( l2str *  l2rec,
int  prodnum,
float  prod[] 
)

Definition at line 81 of file get_poc.c.

◆ get_psd_ksm()

void get_psd_ksm ( l2str *  l2rec,
l2prodstr *  p,
float  prod[] 
)

Definition at line 432 of file get_psd_ksm.c.

◆ get_qaa()

void get_qaa ( l2str *  l2rec,
l2prodstr *  p,
float  prod[] 
)

Definition at line 260 of file get_qaa.c.

◆ get_qual_sst()

int8* get_qual_sst ( l2str *  l2rec)

Definition at line 7517 of file sst.c.

◆ get_qual_sst4()

int8* get_qual_sst4 ( l2str *  l2rec)

Definition at line 7530 of file sst.c.

◆ get_qual_sst_triple()

int8* get_qual_sst_triple ( l2str *  l2rec)

Definition at line 7548 of file sst.c.

◆ get_rho_mumm()

void get_rho_mumm ( l2str *  l2rec,
int32_t  ip,
int32_t  iw,
float *  rhom 
)

Definition at line 25 of file mumm.c.

◆ get_rhos()

int get_rhos ( l1str *  l1rec,
int32_t  ip 
)

Definition at line 23 of file get_rhos.c.

◆ get_rhown_eval()

void get_rhown_eval ( char *  fqfile,
float  Rrs[],
float  wave[],
int32_t  nir_s,
int32_t  nir_l,
int32_t  nwave,
float  aw[],
float  bbw[],
float  chl,
float  solz,
float  senz,
float  phi,
float  rhown[] 
)

Definition at line 218 of file get_rhown_nir.c.

◆ get_rhown_mumm()

void get_rhown_mumm ( l2str *  l2rec,
int32_t  ip,
int32_t  nir_s,
int32_t  nir_l,
float  rhown[] 
)

Definition at line 74 of file mumm.c.

◆ get_rhown_nir()

void get_rhown_nir ( char *  fqfile,
float  Rrs[],
float  wave[],
int32_t  nir_s,
int32_t  nir_l,
float  aw[],
float  bbw[],
float  chl,
float  rhown[] 
)

◆ get_smoke()

void get_smoke ( l2str *  l2rec,
float  smoke[] 
)

Definition at line 20 of file get_smoke.c.

◆ get_ssn()

void get_ssn ( l2str *  l2rec,
float  ssn[] 
)

◆ get_sssref()

float get_sssref ( char *  file,
float  lon,
float  lat,
int  day 
)

Definition at line 360 of file sssref.c.

◆ get_sst()

float* get_sst ( l2str *  l2rec)

Definition at line 7605 of file sst.c.

◆ get_sst4()

float* get_sst4 ( l2str *  l2rec)

Definition at line 7624 of file sst.c.

◆ get_sst_dust_correction()

float* get_sst_dust_correction ( l2str *  l2rec)

Definition at line 7379 of file sst.c.

◆ get_sst_triple()

float* get_sst_triple ( l2str *  l2rec)

Definition at line 7643 of file sst.c.

◆ get_sstref()

float get_sstref ( short  reftyp,
char *  file,
l1str *  l1rec,
int32_t  ip 
)

Definition at line 1592 of file sstref.c.

◆ get_stdv_sst()

float* get_stdv_sst ( l2str *  l2rec)

Definition at line 7436 of file sst.c.

◆ get_stdv_sst4()

float* get_stdv_sst4 ( l2str *  l2rec)

Definition at line 7487 of file sst.c.

◆ get_stdv_sst_triple()

float* get_stdv_sst_triple ( l2str *  l2rec)

Definition at line 7504 of file sst.c.

◆ get_swim()

void get_swim ( l2str *  l2rec,
l2prodstr *  p,
float  prod[] 
)

Definition at line 741 of file swim.c.

◆ get_tauc()

void get_tauc ( l2str *  l2rec,
float  tauc[] 
)

◆ get_toa_refl()

void get_toa_refl ( l2str *  l2rec,
int  band,
float  rhot[] 
)

Definition at line 19 of file get_toa_refl.c.

◆ get_tsm()

void get_tsm ( l2str *  l2rec,
int  prodnum,
float  prod[] 
)

◆ get_um_prod_()

void get_um_prod_ ( int32_t *  idProd,
int32_t *  pix,
float *  val 
)

◆ get_xcal()

double* get_xcal ( l1str *  l1rec,
int  type,
int  bandnum 
)

Definition at line 30 of file xcal.c.

◆ getglint_()

int getglint_ ( float *  ,
float *  ,
float *  ,
float *  ,
float *  ,
float *   
)

◆ getglint_iqu_()

int getglint_iqu_ ( float *  ,
float *  ,
float *  ,
float *  ,
float *  ,
float *  ,
float *  ,
float *   
)

◆ getl1rec()

int getl1rec ( int32_t  recnum,
int32_t  dscan,
l1str *  l1rec 
)

Definition at line 119 of file getl1rec.c.

◆ giop_get_adg_pointer()

float* giop_get_adg_pointer ( )

Definition at line 2768 of file giop.c.

◆ giop_get_aph_pointer()

float* giop_get_aph_pointer ( )

Definition at line 2782 of file giop.c.

◆ giop_get_bbp_pointer()

float* giop_get_bbp_pointer ( )

Definition at line 2775 of file giop.c.

◆ giop_get_bbp_s_pointer()

float* giop_get_bbp_s_pointer ( )

Definition at line 2797 of file giop.c.

◆ giop_ran()

int giop_ran ( int  recnum)

Definition at line 569 of file giop.c.

◆ glint_rad()

void glint_rad ( int32_t  num_iter,
int32_t  nband,
int32_t  nir_s,
int32_t  nir_l,
float  glint_coef,
float  air_mass,
float  mu0,
float  F0[],
float  taur[],
float  taua[],
float  La[],
float  TLg[] 
)

Definition at line 40 of file glint.c.

◆ gothic_R()

void gothic_R ( float  wave[],
int32_t  nwave,
float  solz,
float  senz,
float  ws,
float  R[] 
)

Definition at line 266 of file brdf.c.

◆ ice_fraction()

float ice_fraction ( float  lon,
float  lat 
)

function to return the ice fraction

Parameters
lonlongitude of interest
latlatitude of interest
Returns
ice fraction coverage at this position (range of 0 to 1)

Definition at line 1017 of file ice_mask.c.

◆ ice_mask()

char ice_mask ( float  lon,
float  lat 
)

Get the ice mask at this location. 1=ice, 0=water

Parameters
lonlongitude of interest
latlatitude of interest
Returns
1 if icefrac above ice threshold else return 0

Definition at line 992 of file ice_mask.c.

◆ ice_mask_init()

int ice_mask_init ( char *  file,
int  year,
int  day,
float  threshold 
)

Definition at line 899 of file ice_mask.c.

◆ init_geom_per_band()

int init_geom_per_band ( l1str *  )

Definition at line 8 of file geom_per_band.c.

◆ init_l1()

void init_l1 ( l1str *  l1rec)

Definition at line 12 of file init_l1.c.

◆ init_l2()

void init_l2 ( l2str *  l2rec,
int32_t  nbands 
)

Definition at line 11 of file init_l2.c.

◆ init_l2prod()

void init_l2prod ( )

Definition at line 222 of file get_l2prod_index.c.

◆ invbindx()

int invbindx ( int  band,
int32_t *  bindx,
int  nbands 
)

Definition at line 104 of file windex.c.

◆ iops_carder()

void iops_carder ( l2str *  l2rec)

Definition at line 1013 of file carder.c.

◆ iops_giop()

void iops_giop ( l2str *  l2rec)

Definition at line 2734 of file giop.c.

◆ iops_gsm()

void iops_gsm ( l2str *  l2rec)

Definition at line 885 of file gsm.c.

◆ iops_las()

void iops_las ( l2str *  l2rec)

Definition at line 581 of file las_iop.c.

◆ iops_niwa()

void iops_niwa ( l2str *  l2rec)

Definition at line 109 of file get_niwa_iop.c.

◆ iops_pml()

void iops_pml ( l2str *  l2rec)

Definition at line 313 of file get_pml.c.

◆ iops_qaa()

void iops_qaa ( l2str *  l2rec)

Definition at line 335 of file get_qaa.c.

◆ iops_swim()

void iops_swim ( l2str *  l2rec)

Definition at line 799 of file swim.c.

◆ ky_airmass()

float ky_airmass ( float  theta)

Definition at line 4 of file airmass.c.

◆ l1_mask_set()

void l1_mask_set ( l1str *  l1rec,
int32_t  ip 
)

Definition at line 23 of file setflags.c.

◆ l1b_seawifs()

int32 l1b_seawifs ( filehandle *  l1file,
filehandle *  ofile,
int32  sscan,
int32  escan,
int32  dscan,
int32  spixl,
int32  epixl,
int32  dpixl 
)

◆ l1subpix()

int l1subpix ( filehandle *  l1file,
l1str *  l1rec 
)

Definition at line 19 of file l1subpix.c.

◆ l2_seawifs()

int32 l2_seawifs ( filehandle *  l1file,
filehandle *  l2file 
)

◆ l2gen_init_options()

int l2gen_init_options ( clo_optionList_t list,
const char *  prog 
)

add all of the accepted command line options to list

Definition at line 717 of file msl12_input.c.

◆ l2gen_usage()

int l2gen_usage ( const char *  prog)

Definition at line 4775 of file msl12_input.c.

◆ land_mask()

int land_mask ( float  lat,
float  lon 
)

Definition at line 31 of file read_mask.c.

◆ land_mask_init()

int land_mask_init ( char *  file)

Definition at line 14 of file read_mask.c.

◆ loadl1()

int loadl1 ( filehandle *  l1file,
l1str *  l1rec 
)

Definition at line 198 of file loadl1.c.

◆ lowercase()

void lowercase ( char *  s)

◆ modis_cirrus_mask()

int modis_cirrus_mask ( l1str *  l1rec,
int32_t  ip 
)

Definition at line 94 of file cloud_flag.c.

◆ modis_cloud_mask()

int modis_cloud_mask ( l1str *  l1rec,
int32_t  ip 
)

Definition at line 9 of file cloud_flag.c.

◆ msl12_input()

int msl12_input ( int  argc,
char *  argv[],
const char *  progName,
filehandle *  l1file 
)

Definition at line 4722 of file msl12_input.c.

◆ msl12_input_defaults()

int msl12_input_defaults ( filehandle *  l1file)

Definition at line 4746 of file msl12_input.c.

◆ msl12_input_init()

void msl12_input_init ( )

Definition at line 506 of file msl12_input.c.

◆ msl12_option_input()

int msl12_option_input ( int  argc,
char *  argv[],
clo_optionList_t list,
char *  progName,
filehandle *  l1file 
)

◆ ncio_dim_siz()

int ncio_dim_siz ( int  ,
char *   
)

Definition at line 18 of file ncio.c.

◆ ncio_grab_f_ds()

int ncio_grab_f_ds ( int  ,
char *  ,
float *   
)

Definition at line 57 of file ncio.c.

◆ ncio_grab_stdsclf_ds()

int ncio_grab_stdsclf_ds ( int  ,
char *  ,
float  ,
float *   
)

Definition at line 101 of file ncio.c.

◆ nlw_outband()

void nlw_outband ( int32_t  evalmask,
int32_t  sensorID,
float  wave[],
int32_t  nwave,
float  Lw[],
float  nLw[] 
)

Definition at line 3 of file nlw_outband.c.

◆ ocbrdf()

int ocbrdf ( l2str *  l2rec,
int32_t  ip,
int32_t  brdf_opt,
float  wave[],
int32_t  nwave,
float  solz,
float  senz,
float  phi,
float  ws,
float  chl,
float  nLw[],
float  Fo[],
float  brdf[] 
)

Definition at line 40 of file brdf.c.

◆ open_aer()

int open_aer ( filehandle *  file)

Definition at line 73 of file aer_io.c.

◆ open_target()

int open_target ( filehandle *  file)

Definition at line 77 of file target_io.c.

◆ openl1()

int openl1 ( filehandle *  l1file)

Definition at line 207 of file l1_io.c.

◆ openl1_read_hdf()

int openl1_read_hdf ( filehandle *  l1file)

◆ openl1_write()

int openl1_write ( filehandle *  l1file)

Definition at line 174 of file l1_generic_write.c.

◆ openl1_write_hdf()

int openl1_write_hdf ( filehandle *  l1file)

Definition at line 502 of file l1_hdf_generic_write.c.

◆ openl2()

int openl2 ( filehandle *  l2file)

Definition at line 220 of file l2_generic.c.

◆ optical_class()

void optical_class ( l2str *  l2rec,
l2prodstr *  p,
float  prod[] 
)

◆ optical_water_type()

void optical_water_type ( l2str *  l2rec,
l2prodstr *  p,
void *  vptr 
)

Definition at line 325 of file owt.c.

◆ polcor()

void polcor ( l1str *  l1rec,
int32_t  ip 
)

Definition at line 15 of file polcor.c.

◆ pp_airmass()

float pp_airmass ( float  theta)

Definition at line 14 of file airmass.c.

◆ prodgen()

VOIDP prodgen ( l2prodstr *  p,
l2str *  l2rec 
)

Definition at line 89 of file prodgen.c.

◆ prodlist()

int32 prodlist ( int32  sensorID,
int32  evalmask,
const char *  inprod,
const char *  defprod,
char  outprod[MAXPROD][32] 
)

Definition at line 3 of file prodlist.c.

◆ qint_morel()

void qint_morel ( float  wave[],
int32_t  nwave,
float  solz,
float  chl,
float  Qn[] 
)

Definition at line 672 of file brdf.c.

◆ radiance2bt()

void radiance2bt ( l1str *  l1rec,
int  resolution 
)

Definition at line 168 of file brightness.c.

◆ rayleigh()

void rayleigh ( l1str *  l1rec,
int32_t  ip 
)

Definition at line 42 of file rayleigh.c.

◆ rdfilter()

int rdfilter ( char *  file,
fctlstr *  fctl,
int32_t  nbands 
)

Definition at line 300 of file filter.c.

◆ rdsensorinfo()

int32_t rdsensorinfo ( int32_t  sensorID,
int32_t  evalmask,
const char *  pname,
void **  pval 
)

lookup information about a sensor.

Parameters
sensorIDid of the sensor to lookup
evalmaskset to 32 to get info out of the "eval" directory
pnamename of the parameter to retrieve
pvalpointer to the requested data
Returns
the number of bands, -1 if error

Definition at line 69 of file rdsensorinfo.c.

◆ read_aer()

int read_aer ( filehandle *  file,
int32_t  recnum,
aestr *  aerec 
)

Definition at line 99 of file aer_io.c.

◆ read_target()

int read_target ( filehandle *  file,
int32_t  recnum,
tgstr *  tgrec 
)

Definition at line 103 of file target_io.c.

◆ read_target_l3()

int read_target_l3 ( filehandle *  file,
l1str *  l1rec,
int32_t  nbands,
tgstr *  tgrec 
)

read_target_l3 - loads a vicarous calibration target record, applying band shifting if necessary

Parameters
file- filehandle structure for L3 bin target file
l1rec
nbands
tgrec
Returns

Definition at line 207 of file target_io.c.

◆ readl1()

int readl1 ( filehandle *  l1file,
int32_t  recnum,
l1str *  l1rec 
)

Definition at line 400 of file l1_io.c.

◆ readl1_lonlat()

int readl1_lonlat ( filehandle *  l1file,
int32_t  recnum,
l1str *  l1rec 
)

Definition at line 587 of file l1_io.c.

◆ rrs_above_to_below()

float rrs_above_to_below ( float  Rrs)

Definition at line 1598 of file giop.c.

◆ run_giop()

void run_giop ( l2str *  l2rec)

Definition at line 1616 of file giop.c.

◆ run_raman_cor()

void run_raman_cor ( l2str *  l2rec,
int  ip 
)

Definition at line 1069 of file raman.c.

◆ seawater_bb()

float seawater_bb ( float  wave,
float  sst,
float  sss,
double  delta 
)

Definition at line 176 of file seawater.c.

◆ seawater_get_a()

float seawater_get_a ( int32_t  ip,
int32_t  ib 
)

Definition at line 21 of file seawater_get.c.

◆ seawater_get_bb()

float seawater_get_bb ( int32_t  ip,
int32_t  ib 
)

Definition at line 25 of file seawater_get.c.

◆ seawater_get_n()

float seawater_get_n ( int32_t  ip,
int32_t  ib 
)

Definition at line 17 of file seawater_get.c.

◆ seawater_nsw()

float seawater_nsw ( float  wave,
float  sst,
float  sss,
float *  dnswds 
)

Definition at line 8 of file seawater.c.

◆ seawater_set()

void seawater_set ( l1str *  l1rec)

Definition at line 8 of file seawater_get.c.

◆ set_iop_flag()

void set_iop_flag ( float32  wave[],
int32  nwave,
float32  a[],
float32  aph[],
float32  adg[],
float32  bb[],
float32  bbp[],
int16 *  flag 
)

◆ setanc()

int setanc ( l1str *  l1rec)

Definition at line 563 of file setanc.c.

◆ setflagbits()

void setflagbits ( int  level,
l1str *  l1rec,
l2str *  l2rec,
int32_t  ipix 
)

Definition at line 168 of file setflags.c.

◆ setflags()

int setflags ( l1str *  l1rec)

Definition at line 36 of file setflags.c.

◆ sunangs_()

void sunangs_ ( int *  iyr,
int *  iday,
float *  gmt,
float *  xlon,
float *  ylat,
float *  sunz,
float *  suna 
)

◆ tindx_morel()

void tindx_morel ( l2str *  l2rec,
int32_t  ip,
float *  tindx 
)

Definition at line 65 of file turbid.c.

◆ tindx_shi()

void tindx_shi ( l2str *  l2rec,
int32_t  ip,
float *  tindx 
)

Definition at line 4 of file turbid.c.

◆ update_flag_cnts()

void update_flag_cnts ( int32_t *  flag_cnt,
int32_t *  flags,
int32_t  nflags,
int32_t  npix,
uint32_t  init_mask 
)

Definition at line 1491 of file l2_generic.c.

◆ update_flag_cnts16()

void update_flag_cnts16 ( int32_t *  flag_cnt,
int16_t *  flags,
int32_t  nflags,
int32_t  npix,
uint32_t  init_mask 
)

Definition at line 1506 of file l2_generic.c.

◆ update_qual_cnts()

void update_qual_cnts ( int32_t *  flag_cnt,
int8_t *  flags,
int32_t  nflags,
int32_t  npix 
)

Definition at line 1521 of file l2_generic.c.

◆ vcal()

void vcal ( l2str *  l2rec,
l2prodstr *  p,
float  vcal[] 
)

Definition at line 25 of file vcal.c.

◆ viirs_pxcvt_2ag()

void viirs_pxcvt_2ag ( int  ,
int *   
)

Definition at line 62 of file viirs_pxcvt.c.

◆ viirs_pxcvt_2uag()

void viirs_pxcvt_2uag ( int  ,
int *  ,
int *   
)

Definition at line 11 of file viirs_pxcvt.c.

◆ viirs_pxcvt_agdel()

void viirs_pxcvt_agdel ( int  ,
int  ,
int *   
)

Definition at line 106 of file viirs_pxcvt.c.

◆ virtual_constellation()

void virtual_constellation ( l2str *  l2rec,
l2prodstr *  p,
float  prod[] 
)

Definition at line 296 of file virtual_constellation.c.

◆ water_vapor()

float water_vapor ( int  ib,
float  wv,
float  airmass 
)

Definition at line 4 of file water_vapor.c.

◆ westernmost()

float32 westernmost ( float32  lon1,
float32  lon2 
)

Definition at line 28 of file scene_meta.c.

◆ whitecaps()

void whitecaps ( int32_t  sensorID,
int32_t  evalmask,
int32_t  nwave,
float  ws,
float  ws_max,
float  rhof[] 
)

Definition at line 51 of file whitecaps.c.

◆ windex()

int windex ( float  wave,
float  twave[],
int  ntwave 
)

Definition at line 71 of file windex.c.

◆ windex_get()

int windex_get ( int32_t  wave)

◆ write_flag_pcnts()

int write_flag_pcnts ( idDS  ds_id,
FILE *  fpmeta,
int32_t *  flag_cnt,
int32_t  nflags,
const char *const  flag_lname[],
int32_t  numScans,
int32_t  numPixels 
)

Definition at line 1536 of file l2_generic.c.

◆ write_product_XML_file()

void write_product_XML_file ( char *  filename)

Definition at line 505 of file get_l2prod_index.c.

◆ write_qual_flag_pcnts()

int write_qual_flag_pcnts ( idDS  ds_id,
FILE *  fpmeta,
int32_t *  flag_cnt,
int32_t  nflags,
const char *const  flag_lname[] 
)

Definition at line 1556 of file l2_generic.c.

◆ writel1()

int writel1 ( filehandle *  l1file,
int32_t  recnum,
l1str *  l1rec 
)

Definition at line 646 of file l1_generic_write.c.

◆ writel1_hdf()

int writel1_hdf ( filehandle *  l1file,
int32_t  recnum,
l1str *  l1rec 
)

Definition at line 618 of file l1_hdf_generic_write.c.

◆ writel2()

int writel2 ( filehandle *  l2file,
int32_t  recnum,
l2str *  l2rec,
int  outfile_number 
)

Definition at line 953 of file l2_generic.c.

Variable Documentation

◆ input

instr* input

Definition at line 27 of file main_l2binmatch.cpp.