OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
scpad_viirs_lsips.cpp File Reference
#include <stdio.h>
#include <libgen.h>
#include <stdlib.h>
#include <getopt.h>
#include <stdint.h>
#include <string.h>
#include <math.h>
#include <sstream>
#include <iostream>
#include <fstream>
#include "nc4utils.h"
#include "l1agen_viirs.h"
Include dependency graph for scpad_viirs_lsips.cpp:

Go to the source code of this file.

Macros

#define SWAP_2(x)   ( (((x) & 0xff) << 8) | ((unsigned short)(x) >> 8) )
 
#define VERSION   "1.11"
 

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 14 of file scpad_viirs_lsips.cpp.

◆ VERSION

#define VERSION   "1.11"

Definition at line 16 of file scpad_viirs_lsips.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 60 of file scpad_viirs_lsips.cpp.

◆ jdate()

int jdate ( int32_t  julian,
int32_t *  year,
int32_t *  doy 
)

Definition at line 5 of file jdate.c.

◆ jday()

int32_t jday ( int16_t  i,
int16_t  j,
int16_t  k 
)

Definition at line 4 of file jday.c.

◆ main()

int main ( int  argc,
char *  argv[] 
)

An implementation of a Lon/Lat to UTM zone code written by Chuck Gantz chuck.nosp@m..gan.nosp@m.tz@gl.nosp@m.obal.nosp@m.star..nosp@m.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 85 of file scpad_viirs_lsips.cpp.