OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
l1_czcs_hdf.c File Reference
#include "l1.h"
#include <hdf4utils.h>
#include "mfhdf.h"
#include "l1_czcs_hdf.h"
#include <math.h>
#include <libnav.h>
Include dependency graph for l1_czcs_hdf.c:

Go to the source code of this file.

Macros

#define NREC_IN_BUF   1
 
#define NBND_CZCS   5
 
#define POS_ERR_THRESH   2000. /* orbit position error tolerence */
 
#define NBND   4
 
#define NGAIN   4
 
#define NEPOCH   5
 
#define re   6378.137
 
#define f   1. / 298.257
 
#define omf2   ( 1 - f ) * ( 1 - f )
 

Functions

int czcs_ring (int gain, float *lt750, char *ring_sat, l1str *l1rec)
 
int get_czcscal (char *file, int orbit, int16 year, int16 day, int32 msec, short l1acnt[], float slope750, float intercept750, int16 igain, float32 l1brads[])
 
int openl1_czcs (filehandle *file)
 
int readl1_czcs (filehandle *file, int32_t recnum, l1str *l1rec)
 
int closel1_czcs (filehandle *file)
 
int cz_posll_2_satang (float *pos, int npix, float *lat, float *lon, float *senz, float *sena)
 
void matrix_mult (double vecin[3], double matrix[3][3], double vecout[3])
 
void cross_prod (double *v1, double *v2, double *vout)
 

Variables

int syear
 
int sday
 
int32 smsec
 
int16 eyear
 
int16 eday
 
int32 emsec
 
int32 nscan
 
int32 npix
 
int32 spix
 
int32 dpix
 
int32 epix
 
char dtype [8]
 
int32 nsta
 
int32 ninc
 
uint8 * counts
 
uint8 cz_band_present
 
int32 * msec
 
int lgain
 
int status
 
int16 * gain
 
float32 * tilt
 
float32 * att_ang
 
float32 * slope
 
float32 * intercept
 
float32 * ctl_pt_lat
 
float32 * ctl_pt_lon
 
float32 * pos
 
float32 * pos_err
 
int32 nctl_pt
 
int32 * ctl_pt_cols
 
float * ctl_pt_vx
 
float * ctl_pt_vy
 
float * ctl_pt_vz
 
float * y2_vx
 
float * y2_vy
 
float * y2_vz
 
float * ctl_pt_x
 
float * lt750
 
char * ring_sat
 

Macro Definition Documentation

◆ f

#define f   1. / 298.257

Definition at line 702 of file l1_czcs_hdf.c.

◆ NBND

#define NBND   4

Definition at line 156 of file l1_czcs_hdf.c.

◆ NBND_CZCS

#define NBND_CZCS   5

Definition at line 12 of file l1_czcs_hdf.c.

◆ NEPOCH

#define NEPOCH   5

Definition at line 158 of file l1_czcs_hdf.c.

◆ NGAIN

#define NGAIN   4

Definition at line 157 of file l1_czcs_hdf.c.

◆ NREC_IN_BUF

#define NREC_IN_BUF   1

Definition at line 11 of file l1_czcs_hdf.c.

◆ omf2

#define omf2   ( 1 - f ) * ( 1 - f )

Definition at line 703 of file l1_czcs_hdf.c.

◆ POS_ERR_THRESH

#define POS_ERR_THRESH   2000. /* orbit position error tolerence */

Definition at line 13 of file l1_czcs_hdf.c.

◆ re

#define re   6378.137

Definition at line 701 of file l1_czcs_hdf.c.

Function Documentation

◆ closel1_czcs()

int closel1_czcs ( filehandle *  file)

Definition at line 674 of file l1_czcs_hdf.c.

◆ cross_prod()

void cross_prod ( double *  v1,
double *  v2,
double *  vout 
)

Definition at line 833 of file l1_czcs_hdf.c.

◆ cz_posll_2_satang()

int cz_posll_2_satang ( float *  pos,
int  npix,
float *  lat,
float *  lon,
float *  senz,
float *  sena 
)

Definition at line 705 of file l1_czcs_hdf.c.

◆ czcs_ring()

int czcs_ring ( int  gain,
float *  lt750,
char *  ring_sat,
l1str *  l1rec 
)

Definition at line 42 of file l1_czcs_hdf.c.

◆ get_czcscal()

int get_czcscal ( char *  file,
int  orbit,
int16  year,
int16  day,
int32  msec,
short  l1acnt[],
float  slope750,
float  intercept750,
int16  igain,
float32  l1brads[] 
)

Definition at line 160 of file l1_czcs_hdf.c.

◆ matrix_mult()

void matrix_mult ( double  vecin[3],
double  matrix[3][3],
double  vecout[3] 
)

Definition at line 802 of file l1_czcs_hdf.c.

◆ openl1_czcs()

int openl1_czcs ( filehandle *  file)

Definition at line 361 of file l1_czcs_hdf.c.

◆ readl1_czcs()

int readl1_czcs ( filehandle *  file,
int32_t  recnum,
l1str *  l1rec 
)

Definition at line 477 of file l1_czcs_hdf.c.

Variable Documentation

◆ att_ang

float32 * att_ang

Definition at line 34 of file l1_czcs_hdf.c.

◆ counts

uint8* counts

Definition at line 30 of file l1_czcs_hdf.c.

◆ ctl_pt_cols

int32 * ctl_pt_cols

Definition at line 36 of file l1_czcs_hdf.c.

◆ ctl_pt_lat

float32* ctl_pt_lat

Definition at line 35 of file l1_czcs_hdf.c.

◆ ctl_pt_lon

float32 * ctl_pt_lon

Definition at line 35 of file l1_czcs_hdf.c.

◆ ctl_pt_vx

float* ctl_pt_vx

Definition at line 37 of file l1_czcs_hdf.c.

◆ ctl_pt_vy

float * ctl_pt_vy

Definition at line 37 of file l1_czcs_hdf.c.

◆ ctl_pt_vz

float * ctl_pt_vz

Definition at line 37 of file l1_czcs_hdf.c.

◆ ctl_pt_x

float * ctl_pt_x

Definition at line 37 of file l1_czcs_hdf.c.

◆ cz_band_present

uint8 cz_band_present

Definition at line 30 of file l1_czcs_hdf.c.

◆ dpix

int32 dpix

Definition at line 22 of file l1_czcs_hdf.c.

◆ dtype

char dtype[8]

Definition at line 25 of file l1_czcs_hdf.c.

◆ eday

int16 eday

Definition at line 17 of file l1_czcs_hdf.c.

◆ emsec

int32 emsec

Definition at line 18 of file l1_czcs_hdf.c.

◆ epix

int32 epix

Definition at line 23 of file l1_czcs_hdf.c.

◆ eyear

int16 eyear

Definition at line 17 of file l1_czcs_hdf.c.

◆ gain

int16* gain

Definition at line 33 of file l1_czcs_hdf.c.

◆ intercept

float32 * intercept

Definition at line 34 of file l1_czcs_hdf.c.

◆ lgain

int lgain

Definition at line 32 of file l1_czcs_hdf.c.

◆ lt750

float* lt750

Definition at line 38 of file l1_czcs_hdf.c.

◆ msec

int32* msec

Definition at line 31 of file l1_czcs_hdf.c.

◆ nctl_pt

int32 nctl_pt

Definition at line 36 of file l1_czcs_hdf.c.

◆ ninc

int32 ninc

Definition at line 28 of file l1_czcs_hdf.c.

◆ npix

int32 npix

Definition at line 20 of file l1_czcs_hdf.c.

◆ nscan

int32 nscan

Definition at line 19 of file l1_czcs_hdf.c.

◆ nsta

int32 nsta

Definition at line 27 of file l1_czcs_hdf.c.

◆ pos

float32 * pos

Definition at line 35 of file l1_czcs_hdf.c.

◆ pos_err

float32 * pos_err

Definition at line 35 of file l1_czcs_hdf.c.

◆ ring_sat

char* ring_sat

Definition at line 39 of file l1_czcs_hdf.c.

◆ sday

int sday

Definition at line 15 of file l1_czcs_hdf.c.

◆ slope

float32 * slope

Definition at line 34 of file l1_czcs_hdf.c.

◆ smsec

int32 smsec

Definition at line 16 of file l1_czcs_hdf.c.

◆ spix

int32 spix

Definition at line 21 of file l1_czcs_hdf.c.

◆ status

int status

Definition at line 32 of file l1_czcs_hdf.c.

◆ syear

int syear

Definition at line 15 of file l1_czcs_hdf.c.

◆ tilt

float32* tilt

Definition at line 34 of file l1_czcs_hdf.c.

◆ y2_vx

float * y2_vx

Definition at line 37 of file l1_czcs_hdf.c.

◆ y2_vy

float * y2_vy

Definition at line 37 of file l1_czcs_hdf.c.

◆ y2_vz

float * y2_vz

Definition at line 37 of file l1_czcs_hdf.c.