OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
read_prism.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <proj_api.h>
#include "timeutils.h"
#include "prism.h"
#include "jplaeriallib.h"
#include <math.h>
Include dependency graph for read_prism.c:

Go to the source code of this file.

Macros

#define SKIP   -9999
 
#define BIP   0
 
#define BIL   1
 
#define BSQ   2
 
#define MAXLINESZ   4290
 

Functions

int close_prism (prism4ocia_t *data)
 
prism4ocia_t * open_prism (char *filename, prism4ocia_t **data)
 
int read_prism (prism4ocia_t *data, int32_t recnum)
 
char * checkTagLine (char *linein, char *tag)
 
int checkTagLine_i (char *linein, char *tag)
 
int readBinScanLine4Ocip_float (float *Lt, int32_t recnum, int32_t npix, double *gain, int nbands, int numBands, int interleave, int swap, FILE *ptr)
 
void trimBlanks (char *str)
 
double angular_distance (double lat1, double lon1, double lat2, double lon2)
 
double deg2rad (double deg)
 
void l_sun_ (int *iyr, int *iday, double *sec, float *sunr, float *rs)
 
prism4ocia_t * createPrivateData_pr (int numBands, int32_t nscan, int32_t npix)
 
void freePrivateData_pr (prism4ocia_t *data)
 
int read_prism (prism4ocia_t *data, int recnum)
 
void prism4ocia_proj4_convert (prism4ocia_t *data, int32_t numPoints, double *x, double *y)
 
float getValidOrcaAngle (float *ang, int32_t npix, int32_t skip, float *fillangle)
 
void prism_proj4_convert (prism4ocia_t *data, int numPoints, double *x, double *y)
 

Macro Definition Documentation

◆ BIL

#define BIL   1

Definition at line 18 of file read_prism.c.

◆ BIP

#define BIP   0

Definition at line 17 of file read_prism.c.

◆ BSQ

#define BSQ   2

Definition at line 19 of file read_prism.c.

◆ MAXLINESZ

#define MAXLINESZ   4290

Definition at line 20 of file read_prism.c.

◆ SKIP

#define SKIP   -9999

Definition at line 16 of file read_prism.c.

Function Documentation

◆ angular_distance()

double angular_distance ( double  lat1,
double  lon1,
double  lat2,
double  lon2 
)

Definition at line 537 of file read_prism.c.

◆ checkTagLine()

char* checkTagLine ( char *  linein,
char *  tag 
)

Definition at line 433 of file jplaeriallib.c.

◆ checkTagLine_i()

int checkTagLine_i ( char *  linein,
char *  tag 
)

Definition at line 482 of file jplaeriallib.c.

◆ close_prism()

int close_prism ( prism4ocia_t *  data)

Definition at line 509 of file read_prism.c.

◆ createPrivateData_pr()

prism4ocia_t* createPrivateData_pr ( int  numBands,
int32_t  nscan,
int32_t  npix 
)

Definition at line 36 of file read_prism.c.

◆ deg2rad()

double deg2rad ( double  deg)

Definition at line 550 of file read_prism.c.

◆ freePrivateData_pr()

void freePrivateData_pr ( prism4ocia_t *  data)

Definition at line 59 of file read_prism.c.

◆ getValidOrcaAngle()

float getValidOrcaAngle ( float *  ang,
int32_t  npix,
int32_t  skip,
float *  fillangle 
)

Definition at line 520 of file read_prism.c.

◆ l_sun_()

void l_sun_ ( int *  iyr,
int *  iday,
double *  sec,
float *  sunr,
float *  rs 
)

◆ open_prism()

prism4ocia_t* open_prism ( char *  filename,
prism4ocia_t **  data 
)

Definition at line 74 of file read_prism.c.

◆ prism4ocia_proj4_convert()

void prism4ocia_proj4_convert ( prism4ocia_t *  data,
int32_t  numPoints,
double *  x,
double *  y 
)

Definition at line 496 of file read_prism.c.

◆ prism_proj4_convert()

void prism_proj4_convert ( prism4ocia_t *  data,
int  numPoints,
double *  x,
double *  y 
)

Definition at line 554 of file read_prism.c.

◆ read_prism() [1/2]

int read_prism ( prism4ocia_t *  data,
int  recnum 
)

Definition at line 402 of file read_prism.c.

◆ read_prism() [2/2]

int read_prism ( prism4ocia_t *  data,
int32_t  recnum 
)

◆ readBinScanLine4Ocip_float()

int readBinScanLine4Ocip_float ( float *  Lt,
int32_t  recnum,
int32_t  npix,
double *  gain,
int  nbands,
int  numBands,
int  interleave,
int  swap,
FILE *  ptr 
)

Definition at line 189 of file jplaeriallib.c.

◆ trimBlanks()

void trimBlanks ( char *  str)

trim white space off of beginning and end of string.

Parameters
strstring to modify

Definition at line 10 of file trimBlanks.c.