|
ocssw
V2022
|
#include <math.h>#include <stdio.h>#include <libgen.h>#include <stdlib.h>#include <getopt.h>#include <stdint.h>#include <string.h>#include <sstream>#include <iostream>#include <fstream>#include "nc4utils.h"#include "l1agen_viirs.h"Go to the source code of this file.
Macros | |
| #define | SWAP_2(x) ( (((x) & 0xff) << 8) | ((unsigned short)(x) >> 8) ) |
| #define | VERSION "1.15" |
Functions | |
| int32_t | jday (int16_t i, int16_t j, int16_t k) |
| int | jdate (int32_t julian, int32_t *year, int32_t *doy) |
| int | ccsds_to_yds (uint8_t *cctime, int32_t *iyear, int32_t *iday, double *sec) |
| double | get_pkt_sec (uint8_t *pkt_time, int32_t in_jd, int32_t *out_jd) |
| int | main (int argc, char *argv[]) |
Macro Definition Documentation
◆ SWAP_2
| #define SWAP_2 | ( | x | ) | ( (((x) & 0xff) << 8) | ((unsigned short)(x) >> 8) ) |
Definition at line 15 of file scpad_viirs.cpp.
◆ VERSION
| #define VERSION "1.15" |
Definition at line 17 of file scpad_viirs.cpp.
Function Documentation
◆ ccsds_to_yds()
| int ccsds_to_yds | ( | uint8_t * | cctime, |
| int32_t * | iyear, | ||
| int32_t * | iday, | ||
| double * | sec | ||
| ) |
Definition at line 5 of file ccsds_to_yds.c.
◆ get_pkt_sec()
| double get_pkt_sec | ( | uint8_t * | pkt_time, |
| int32_t | in_jd, | ||
| int32_t * | out_jd | ||
| ) |
Definition at line 66 of file scpad_viirs.cpp.
◆ 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
-
julianDay The Julian day to be converted year Out-parameter indicating the gregorian year that julianDayis indayOfYear Out-parameter indicating the number of days into the gregorian year that julianDayis.
◆ 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
-
year 4-digit year month 1-12 day 1-31
- Returns
- The astronomical Julian day corresponding to the one starting at noon on the calendar day
◆ main()
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
An implementation of a Lon/Lat to UTM zone code written by Chuck Gantz chuck.gantz@globalstar.com ...in 1998...found on http://www.gpsy.com/gpsinfo/geotoutm/, a site published by Karen Nakamura, last updated 22 June 2000.
Minor modifications to the code were made to eliminate deprecation warnings
Definition at line 91 of file scpad_viirs.cpp.


