OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
dataday.c File Reference
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include "dataday.h"
Include dependency graph for dataday.c:

Go to the source code of this file.

Macros

#define PI   3.1415926535897932384626433832795029L
 

Functions

void get_datadays (time_t starttime, float eqxhour, int isnight, int dateline, float west, float east, int32_t *dataday0, int32_t *dataday1)
 
void get_coord_extrema (int isnight, int n, float *olat, float *olon, float *north, float *south, float *west, float *east, int *dateline)
 
int findGeoLimits (int32_t npix, float *lat, int32_t *spix, int32_t *cpix, int32_t *epix)
 
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)
 
void push (struct coord **vrtx, enum hort hort, float lat, float lon)
 

Macro Definition Documentation

◆ PI

#define PI   3.1415926535897932384626433832795029L

Definition at line 15 of file dataday.c.

Function Documentation

◆ 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.

◆ findGeoLimits()

int findGeoLimits ( int32_t  npix,
float *  lat,
int32_t *  spix,
int32_t *  cpix,
int32_t *  epix 
)

Definition at line 209 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 
)

Definition at line 573 of file dataday.c.