#include <time.h>
#include <libnav.h>
Go to the source code of this file.
|
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) |
|
◆ DATELINE_CROSSED
#define DATELINE_CROSSED 1 |
◆ DATELINE_IRREGULAR
#define DATELINE_IRREGULAR 4 |
◆ DATELINE_NORTH_POLE
#define DATELINE_NORTH_POLE 2 |
◆ DATELINE_NOT_CROSSED
#define DATELINE_NOT_CROSSED 0 |
◆ DATELINE_SOUTH_POLE
#define DATELINE_SOUTH_POLE 3 |
◆ EPOCH_YEAR
◆ INVALID_COORD
#define INVALID_COORD 99999.999 |
◆ MALLOC
#define MALLOC |
( |
|
ptr, |
|
|
|
typ, |
|
|
|
num |
|
) |
| |
Value: { \
(ptr) = (typ *)malloc((num) * sizeof(typ)); \
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 |
◆ SECONDS_PER_YEAR
#define SECONDS_PER_YEAR 31536000 |
◆ hort
◆ 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 |
|
) |
| |
◆ 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 |
|
) |
| |
◆ get_datadays()
void get_datadays |
( |
time_t |
starttime, |
|
|
float |
eqxhour, |
|
|
int |
isnight, |
|
|
int |
dateline, |
|
|
float |
west, |
|
|
float |
east, |
|
|
int32_t * |
dataday0, |
|
|
int32_t * |
dataday1 |
|
) |
| |
◆ push()
void push |
( |
struct coord ** |
vrtx, |
|
|
enum hort |
hort, |
|
|
float |
lat, |
|
|
float |
lon |
|
) |
| |