NASA Logo
Ocean Color Science Software

ocssw V2022
l0info_oci.h File Reference
#include "common.h"
Include dependency graph for l0info_oci.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  time_struct
 

Macros

#define ANCSIZE   104
 

Functions

int gen_time_string (time_struct &starttime, time_struct &endtime, std::string &startstring, std::string &endstring)
 
int isleap (int year)
 
int32_t jday (int16_t i, int16_t j, int16_t k)
 
int jdate (int32_t julian, int32_t *year, int32_t *doy)
 

Macro Definition Documentation

◆ ANCSIZE

#define ANCSIZE   104

Definition at line 3 of file l0info_oci.h.

Function Documentation

◆ gen_time_string()

int gen_time_string ( time_struct starttime,
time_struct endtime,
std::string startstring,
std::string endstring 
)

◆ isleap()

int isleap ( int  year)

Definition at line 3 of file isleap.c.

◆ jdate()

int jdate ( int32_t  julianDay,
int32_t *  year,
int32_t *  dayOfYear 
)

Takes in a julian day and mutates year and doy to contain the gregorian year and day of that gregorian year of that julian day.

Parameters
julianDayThe Julian day to be converted
yearOut-parameter indicating the gregorian year that julianDay is in
dayOfYearOut-parameter indicating the number of days into the gregorian year that julianDay is.

Definition at line 13 of file jdate.c.

◆ jday()

int32_t jday ( int16_t  year,
int16_t  month,
int16_t  day 
)

Converts a calendar date to the corresponding Julian day starting at noon on the calendar date. Originally implemented by Frederick S. Patt, GSC, November 4 1992. [Van] Flandern and Pulkkinen, Ap. J. Supplement Series 41, November 1979, p. 400.

Parameters
year4-digit year
month1-12
day1-31
Returns
The astronomical Julian day corresponding to the one starting at noon on the calendar day

Definition at line 14 of file jday.c.