OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
get_dataday.cpp File Reference
#include <cstdio>
#include <cstdlib>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <iostream>
#include <netcdf>
#include <stdlib.h>
#include "timeutils.h"
#include "version.h"
#include "sensorInfo.h"
#include "sensorDefs.h"
Include dependency graph for get_dataday.cpp:

Go to the source code of this file.

Typedefs

typedef bg::model::point< double, 2, bg::cs::spherical_equatorial< bg::degree > > Point_t
 
typedef bg::model::linestring< Point_tLinestring_t
 
typedef bg::model::polygon< Point_tPolygon_t
 
typedef bg::model::multi_point< Point_tMultiPoint_t
 

Enumerations

enum  DL {
  NOT_CROSSED, CROSSED, CROSSED_NORTH_POLE, CROSSED_SOUTH_POLE,
  CROSSED_IRREGULAR
}
 

Functions

Polygon_t gRing_to_gPolygon (float *gRingLats, float *gRingLons, size_t length)
 
void printUsage (int32_t exitStatus)
 
void get_datadays (time_t starttime, float equatorialCrossingTime, DL dateLineCrossed, float west, float east, int32_t *dataday0, int32_t *dataday1)
 
void getEquatorCrossingTime (int32_t sensorID, bool dayNight, time_t starttime, float *equatorialCrossingTime, int32_t *plusDay)
 
std::string dataday_to_isodate (int32_t dataday)
 
int main (int argc, char **argv)
 

Typedef Documentation

◆ Linestring_t

typedef bg::model::linestring<Point_t> Linestring_t

Definition at line 24 of file get_dataday.cpp.

◆ MultiPoint_t

typedef bg::model::multi_point<Point_t> MultiPoint_t

Definition at line 26 of file get_dataday.cpp.

◆ Point_t

typedef bg::model::point<double, 2, bg::cs::spherical_equatorial<bg::degree> > Point_t

Definition at line 23 of file get_dataday.cpp.

◆ Polygon_t

typedef bg::model::polygon<Point_t> Polygon_t

Definition at line 25 of file get_dataday.cpp.

Enumeration Type Documentation

◆ DL

enum DL
strong
Enumerator
NOT_CROSSED 
CROSSED 
CROSSED_NORTH_POLE 
CROSSED_SOUTH_POLE 
CROSSED_IRREGULAR 

Definition at line 28 of file get_dataday.cpp.

Function Documentation

◆ dataday_to_isodate()

std::string dataday_to_isodate ( int32_t  dataday)

Definition at line 198 of file get_dataday.cpp.

◆ get_datadays()

void get_datadays ( time_t  starttime,
float  equatorialCrossingTime,
DL  dateLineCrossed,
float  west,
float  east,
int32_t *  dataday0,
int32_t *  dataday1 
)

Definition at line 65 of file get_dataday.cpp.

◆ getEquatorCrossingTime()

void getEquatorCrossingTime ( int32_t  sensorID,
bool  dayNight,
time_t  starttime,
float *  equatorialCrossingTime,
int32_t *  plusDay 
)

Definition at line 108 of file get_dataday.cpp.

◆ gRing_to_gPolygon()

Polygon_t gRing_to_gPolygon ( float *  gRingLats,
float *  gRingLons,
size_t  length 
)

Definition at line 35 of file get_dataday.cpp.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 204 of file get_dataday.cpp.

◆ printUsage()

void printUsage ( int32_t  exitStatus)

Definition at line 48 of file get_dataday.cpp.