|
ocssw
V2022
|
#include "l1_input.h"#include "filehandle.h"#include "l2_flags.h"#include <clo.h>#include <genutils.h>#include <timeutils.h>#include <libnav.h>#include <stdint.h>#include <stdbool.h>#include "uncertainty.h"Go to the source code of this file.
Classes | |
| struct | geom_struc_def |
| struct | anc_add_struc_def |
| struct | anc_aer_struc_def |
| struct | cld_dat_struc_def |
| struct | cld_rad_dat_struct_def |
| struct | l1_struct |
Macros | |
| #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" |
| #define | MIN(a, b) (((a)<(b)) ? (a) : (b)) |
| #define | MAX(a, b) (((a)>(b)) ? (a) : (b)) |
| #define | PI 3.141592654 |
| #define | RADEG 57.29577951 |
| #define | OFF 0 |
| #define | ON 1 |
| #define | NO 0 |
| #define | YES 1 |
| #define | SUCCESS 0 |
| #define | FATAL_ERROR 1 |
| #define | LONLAT_ERROR 110 |
| #define | MAXPIX 10000 |
| #define | BANDW 10 |
| #define | BT_LO -1000 |
| #define | BT_HI 1000 |
| #define | SOLZNIGHT 90.0 |
| #define | SOLZNIGHTA 80.0 |
| #define | GLINT_MIN 0.0001 |
| #define | AGZONE0 0 |
| #define | AGZONE1 640 |
| #define | AGZONE2 1008 |
| #define | AGZONE3 1600 |
| #define | AGZONE4 2192 |
| #define | AGZONE5 2560 |
| #define | STDPROC 0 /* evalmask bit definitions */ |
| #define | OLDAERMOD 1 /* init to old aerosol models */ |
| #define | MODCLOUD 2 /* enables MODIS/MERIS cloud mask algorithm */ |
| #define | MODCIRRUS 16 /* enables MODIS cirrus mask */ |
| #define | NEWSENSINFO 32 /* use test sensor info file */ |
| #define | NEWRAYTAB 64 /* use test rayleigh tables */ |
| #define | NEWAERTAB 128 /* use test aerosol tables */ |
| #define | NEWPOLTAB 256 /* use test polarization tables */ |
| #define | MSKMODMIR1 1024 /* mask modis mirror-side 1 (navfail) */ |
| #define | MSKMODMIR2 2048 /* mask modis mirror-side 2 (navfail) */ |
| #define | SSTMODS 4096 /* reserved for testing SST changes */ |
| #define | ALTSENSORINFO 8192 /* use .alt sensor infor file in eval */ |
| #define | TRANSSPHER 32768 /* enables spherical path geom for dtran */ |
| #define | XCALRVS 1 |
| #define | XCALPOL 2 |
| #define | XCALOLI 4 |
Functions | |
| void | l1_input_init () |
| void | l1_input_delete (l1_input_t *input) |
| void | l1_add_options (clo_optionList_t *list) |
| void | l1_read_default_files (clo_optionList_t *list, filehandle *l1file, const char *ifile) |
| void | l1_load_options (clo_optionList_t *list, filehandle *l1file) |
| void | l1_get_input_params (filehandle *l1file, char *input_parms) |
| void | l1_get_input_files (filehandle *l1file, char *input_files) |
| void | bindex_set (int32_t wave[], int nwave, int dwave_vswir) |
| int | bindex_get (int32_t wave) |
| int | bindex_get_555 (void) |
| int | windex (float wave, float twave[], int ntwave) |
| int | invbindx (int band, int32_t *bindx, int nbands) |
| void | radiance2bt (l1str *l1rec, int resolution) |
| void | flag_bowtie_deleted (l1str *l1rec, size_t ipix, int extract_offset) |
| 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) |
| int | init_geom_per_band (l1str *) |
| int | geom_per_band_deriv (l1str *) |
| int | destroy_geom_per_band (geom_struc *) |
| void | init_l1 (l1str *l1rec) |
| int32_t | alloc_l1 (filehandle *l1file, l1str *l1rec) |
| void | free_l1 (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) |
| void | closel1 (filehandle *l1file) |
| void | closel1_generic (filehandle *l1file) |
| int | openl1_write (filehandle *l1file) |
| int | writel1 (filehandle *l1file, int32_t recnum, l1str *l1rec) |
| int | openl1_read_hdf (filehandle *l1file) |
| int | openl1_write_hdf (filehandle *l1file) |
| int | writel1_hdf (filehandle *l1file, int32_t recnum, l1str *l1rec) |
| void | closel1_hdf (filehandle *l1file) |
| int | l1subpix (filehandle *l1file, l1str *l1rec) |
| void | l1_mask_set (l1str *l1rec, int32_t ip) |
| int | setflags (l1str *l1rec) |
| void | setflagbits_l1 (int level, l1str *l1rec, int32_t ipix) |
| char | get_cldmask (l1str *l1rec, int32_t ip) |
| int | modis_cloud_mask (l1str *l1rec, int32_t ip) |
| int | get_sdps_cld_mask (l1str *, int32_t, char *) |
Macro Definition Documentation
◆ AGZONE0
◆ AGZONE1
◆ AGZONE2
◆ AGZONE3
◆ AGZONE4
◆ AGZONE5
◆ ALTSENSORINFO
| #define ALTSENSORINFO 8192 /* use .alt sensor infor file in eval */ |
◆ BANDW
◆ BT_HI
◆ BT_LO
◆ CREATOR_EMAIL
◆ CREATOR_NAME
◆ CREATOR_URL
◆ FATAL_ERROR
◆ GLINT_MIN
◆ INSTITUTION
| #define INSTITUTION "NASA Goddard Space Flight Center, Ocean Ecology Laboratory, Ocean Biology Processing Group" |
◆ KEYWORDS_VOCABULARY
| #define KEYWORDS_VOCABULARY "NASA Global Change Master Directory (GCMD) Science Keywords" |
◆ LICENSE
◆ LONLAT_ERROR
◆ MAX
◆ MAXPIX
◆ MIN
◆ MODCIRRUS
◆ MODCLOUD
◆ MSKMODMIR1
◆ MSKMODMIR2
◆ NAMING_AUTHORITY
◆ NEWAERTAB
◆ NEWPOLTAB
◆ NEWRAYTAB
◆ NEWSENSINFO
◆ NO
◆ OFF
◆ OLDAERMOD
◆ ON
◆ PI
◆ PROJECT
| #define PROJECT "Ocean Biology Processing Group (NASA/GSFC/OBPG)" |
◆ PUBLISHER_EMAIL
◆ PUBLISHER_NAME
◆ PUBLISHER_URL
◆ RADEG
◆ SOLZNIGHT
◆ SOLZNIGHTA
◆ SSTMODS
◆ STDNAME_VOCABULARY
◆ STDPROC
◆ SUCCESS
◆ TRANSSPHER
◆ XCALOLI
◆ XCALPOL
◆ XCALRVS
◆ YES
Function Documentation
◆ alloc_l1()
| int32_t alloc_l1 | ( | filehandle * | l1file, |
| l1str * | l1rec | ||
| ) |
Definition at line 18 of file alloc_l1.c.
◆ bindex_get()
◆ bindex_get_555()
◆ bindex_set()
| void bindex_set | ( | int32_t | wave[], |
| int | nwave, | ||
| int | dwave_vswir | ||
| ) |
◆ closel1()
◆ closel1_generic()
| void closel1_generic | ( | filehandle * | l1file | ) |
Definition at line 768 of file l1_generic_write.c.
◆ closel1_hdf()
| void closel1_hdf | ( | filehandle * | l1file | ) |
Definition at line 701 of file l1_hdf_generic_write.c.
◆ destroy_geom_per_band()
| int destroy_geom_per_band | ( | geom_struc * | ) |
◆ flag_bowtie_deleted()
| void flag_bowtie_deleted | ( | l1str * | l1rec, |
| size_t | ipix, | ||
| int | extract_offset | ||
| ) |
Definition at line 876 of file l1_viirs_l1b.c.
◆ free_l1()
| void free_l1 | ( | l1str * | l1rec | ) |
Definition at line 7 of file alloc_l1.c.
◆ geom_per_band_deriv()
| int geom_per_band_deriv | ( | l1str * | ) |
Definition at line 51 of file geom_per_band.c.
◆ get_cldmask()
| char get_cldmask | ( | l1str * | l1rec, |
| int32_t | ip | ||
| ) |
Definition at line 322 of file cloud_flag.c.
◆ get_f0_neckel()
◆ get_f0_thuillier()
| int get_f0_thuillier | ( | int32_t | wl, |
| int32_t | width, | ||
| float * | f0 | ||
| ) |
◆ get_f0_thuillier_ext()
| void get_f0_thuillier_ext | ( | int32_t | wl, |
| int32_t | width, | ||
| float * | f0 | ||
| ) |
◆ get_sdps_cld_mask()
| int get_sdps_cld_mask | ( | l1str * | , |
| int32_t | , | ||
| char * | |||
| ) |
Definition at line 5 of file cloud_flag.c.
◆ init_geom_per_band()
| int init_geom_per_band | ( | l1str * | ) |
Definition at line 7 of file geom_per_band.c.
◆ init_l1()
◆ invbindx()
◆ l1_add_options()
| void l1_add_options | ( | clo_optionList_t * | list | ) |
Definition at line 77 of file l1_options.c.
◆ l1_get_input_files()
| void l1_get_input_files | ( | filehandle * | l1file, |
| char * | input_files | ||
| ) |
Definition at line 658 of file l1_options.c.
◆ l1_get_input_params()
| void l1_get_input_params | ( | filehandle * | l1file, |
| char * | input_parms | ||
| ) |
Definition at line 454 of file l1_options.c.
◆ l1_input_delete()
| void l1_input_delete | ( | l1_input_t * | input | ) |
Definition at line 66 of file l1_options.c.
◆ l1_input_init()
| void l1_input_init | ( | ) |
Definition at line 11 of file l1_options.c.
◆ l1_load_options()
| void l1_load_options | ( | clo_optionList_t * | list, |
| filehandle * | l1file | ||
| ) |
Definition at line 255 of file l1_options.c.
◆ l1_mask_set()
| void l1_mask_set | ( | l1str * | l1rec, |
| int32_t | ip | ||
| ) |
Definition at line 3 of file setflags_l1.c.
◆ l1_read_default_files()
| void l1_read_default_files | ( | clo_optionList_t * | list, |
| filehandle * | l1file, | ||
| const char * | ifile | ||
| ) |
Definition at line 200 of file l1_options.c.
◆ l1subpix()
| int l1subpix | ( | filehandle * | l1file, |
| l1str * | l1rec | ||
| ) |
Definition at line 17 of file l1subpix.c.
◆ modis_cloud_mask()
| int modis_cloud_mask | ( | l1str * | l1rec, |
| int32_t | ip | ||
| ) |
◆ openl1()
◆ openl1_read_hdf()
| int openl1_read_hdf | ( | filehandle * | l1file | ) |
◆ openl1_write()
| int openl1_write | ( | filehandle * | l1file | ) |
Definition at line 176 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.
◆ radiance2bt()
| void radiance2bt | ( | l1str * | l1rec, |
| int | resolution | ||
| ) |
Definition at line 170 of file brightness.c.
◆ readl1()
| int readl1 | ( | filehandle * | l1file, |
| int32_t | recnum, | ||
| l1str * | l1rec | ||
| ) |
◆ readl1_lonlat()
| int readl1_lonlat | ( | filehandle * | l1file, |
| int32_t | recnum, | ||
| l1str * | l1rec | ||
| ) |
◆ setflagbits_l1()
| void setflagbits_l1 | ( | int | level, |
| l1str * | l1rec, | ||
| int32_t | ipix | ||
| ) |
Definition at line 131 of file setflags_l1.c.
◆ setflags()
| int setflags | ( | l1str * | l1rec | ) |
Definition at line 16 of file setflags_l1.c.
◆ windex()
◆ writel1()
| int writel1 | ( | filehandle * | l1file, |
| int32_t | recnum, | ||
| l1str * | l1rec | ||
| ) |
Definition at line 649 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.


