OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
dataday.h File Reference
#include <time.h>
#include <libnav.h>
Include dependency graph for dataday.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  coord
 

Macros

#define DATELINE_NOT_CROSSED   0
 
#define DATELINE_CROSSED   1
 
#define DATELINE_NORTH_POLE   2
 
#define DATELINE_SOUTH_POLE   3
 
#define DATELINE_IRREGULAR   4
 
#define INVALID_COORD   99999.999
 
#define EPOCH_YEAR   1970
 
#define SECONDS_PER_YEAR   31536000
 
#define SECONDS_PER_LEAP_YEAR   31622400
 
#define MALLOC(ptr, typ, num)
 

Enumerations

enum  hort { head, tail }
 

Functions

void get_coord_extrema (int isnight, int n, float *olat, float *olon, float *north, float *south, float *west, float *east, int *dateline)
 
void get_datadays (time_t starttime, float eqxhour, int isnight, int dateline, float west, float east, int32_t *dataday0, int32_t *dataday1)
 
void cdata_ ()
 
void push (struct coord **vrtx, enum hort hort, float lat, float lon)
 
int daynight_outlines (int32_t *year, int32_t *dayOfYear, int32_t *msecondOfDay, int32_t wid, int32_t hgt, float **lat, float **lon, int32_t n[2], float *olat[2], float *olon[2], int8_t **dorn)
 

Macro Definition Documentation

◆ DATELINE_CROSSED

#define DATELINE_CROSSED   1

Definition at line 14 of file dataday.h.

◆ DATELINE_IRREGULAR

#define DATELINE_IRREGULAR   4

Definition at line 17 of file dataday.h.

◆ DATELINE_NORTH_POLE

#define DATELINE_NORTH_POLE   2

Definition at line 15 of file dataday.h.

◆ DATELINE_NOT_CROSSED

#define DATELINE_NOT_CROSSED   0

Definition at line 13 of file dataday.h.

◆ DATELINE_SOUTH_POLE

#define DATELINE_SOUTH_POLE   3

Definition at line 16 of file dataday.h.

◆ EPOCH_YEAR

#define EPOCH_YEAR   1970

Definition at line 20 of file dataday.h.

◆ INVALID_COORD

#define INVALID_COORD   99999.999

Definition at line 18 of file dataday.h.

◆ MALLOC

#define MALLOC (   ptr,
  typ,
  num 
)
Value:
{ \
(ptr) = (typ *)malloc((num) * sizeof(typ)); \
if((ptr) == NULL){ \
fprintf(stderr,"-E- %s line %d: Memory allocation failure.\n", \
__FILE__,__LINE__); \
exit(EXIT_FAILURE); \
} \
}

Definition at line 23 of file dataday.h.

◆ SECONDS_PER_LEAP_YEAR

#define SECONDS_PER_LEAP_YEAR   31622400

Definition at line 22 of file dataday.h.

◆ SECONDS_PER_YEAR

#define SECONDS_PER_YEAR   31536000

Definition at line 21 of file dataday.h.

Enumeration Type Documentation

◆ hort

enum hort
Enumerator
head 
tail 

Definition at line 36 of file dataday.h.

Function Documentation

◆ cdata_()

void cdata_ ( )

◆ daynight_outlines()

int daynight_outlines ( int32_t *  year,
int32_t *  dayOfYear,
int32_t *  msecondOfDay,
int32_t  wid,
int32_t  hgt,
float **  lat,
float **  lon,
int32_t  n[2],
float *  olat[2],
float *  olon[2],
int8_t **  dorn 
)

Definition at line 244 of file dataday.c.

◆ get_coord_extrema()

void get_coord_extrema ( int  isnight,
int  n,
float *  olat,
float *  olon,
float *  north,
float *  south,
float *  west,
float *  east,
int *  dateline 
)

Definition at line 65 of file dataday.c.

◆ get_datadays()

void get_datadays ( time_t  starttime,
float  eqxhour,
int  isnight,
int  dateline,
float  west,
float  east,
int32_t *  dataday0,
int32_t *  dataday1 
)

Definition at line 17 of file dataday.c.

◆ push()

void push ( struct coord **  vrtx,
enum hort  hort,
float  lat,
float  lon 
)
#define NULL
Definition: decode_rs.h:63