OB.DAAC Logo
NASA Logo
Ocean Color Science Software

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

Go to the source code of this file.

Classes

struct  TRANSFORMATION
 
struct  GCTP_TRANSFORMATION
 

Macros

#define gctp_get_spheroid   sphdz
 
#define GCTP_MAX_PROJ_CODE   31
 
#define PRINT_FORMAT_ATTRIBUTE   __attribute__ ((format(printf,4,5)))
 
#define GCTP_PRINT_INFO(format, ...)
 
#define GCTP_PRINT_ERROR(format, ...)
 

Typedefs

typedef void(* PRINT_PROJ_INFO) (const TRANSFORMATION *)
 
typedef void(* DESTROY_TRANSFORM) (TRANSFORMATION *)
 
typedef int(* TRANSFORM_FUNC) (const TRANSFORMATION *trans, double in_x, double in_y, double *out_x, double *out_y)
 

Functions

void gctp_print_message (GCTP_MESSAGE_TYPE_ENUM message_type, const char *filename, int line_number, const char *format,...) PRINT_FORMAT_ATTRIBUTE
 
int gctp_geo_init (TRANSFORMATION *trans)
 
int gctp_lamcc_inverse_init (TRANSFORMATION *trans)
 
int gctp_lamcc_forward_init (TRANSFORMATION *trans)
 
int gctp_om_inverse_init (TRANSFORMATION *trans)
 
int gctp_om_forward_init (TRANSFORMATION *trans)
 
int gctp_poly_inverse_init (TRANSFORMATION *trans)
 
int gctp_poly_forward_init (TRANSFORMATION *trans)
 
int gctp_ps_inverse_init (TRANSFORMATION *trans)
 
int gctp_ps_forward_init (TRANSFORMATION *trans)
 
int gctp_state_plane_inverse_init (TRANSFORMATION *trans)
 
int gctp_state_plane_forward_init (TRANSFORMATION *trans)
 
int gctp_som_inverse_init (TRANSFORMATION *trans)
 
int gctp_som_forward_init (TRANSFORMATION *trans)
 
int gctp_tm_inverse_init (TRANSFORMATION *trans)
 
int gctp_tm_forward_init (TRANSFORMATION *trans)
 
int gctp_utm_inverse_init (TRANSFORMATION *trans)
 
int gctp_utm_forward_init (TRANSFORMATION *trans)
 
void gctp_print_title (const char *proj_name)
 
void gctp_print_radius (double radius)
 
void gctp_print_radius2 (double radius1, double radius2)
 
void gctp_print_cenlon (double A)
 
void gctp_print_cenlonmer (double A)
 
void gctp_print_cenlat (double A)
 
void gctp_print_origin (double A)
 
void gctp_print_stanparl (double A, double B)
 
void gctp_print_stparl1 (double A)
 
void gctp_print_offsetp (double A, double B)
 
void gctp_print_lat_zone (double A)
 
void gctp_print_justify_cols (double A)
 
void gctp_print_genrpt (double A, const char *S)
 
void gctp_print_genrpt_long (long A, const char *S)
 
int gctp_get_sign (double x)
 
double gctp_calc_e0 (double x)
 
double gctp_calc_e1 (double x)
 
double gctp_calc_e2 (double x)
 
double gctp_calc_e3 (double x)
 
double gctp_calc_e4 (double x)
 
double gctp_calc_dist_from_equator (double e0, double e1, double e2, double e3, double phi)
 
int gctp_calc_phi2 (double eccent, double ts, double *phi2)
 
int gctp_dms2degrees (double ang, double *degrees)
 
double gctp_calc_small_radius (double eccent, double sinphi, double cosphi)
 
double gctp_calc_small_t (double eccent, double phi, double sinphi)
 

Macro Definition Documentation

◆ gctp_get_spheroid

#define gctp_get_spheroid   sphdz

Definition at line 7 of file oli_local.h.

◆ GCTP_MAX_PROJ_CODE

#define GCTP_MAX_PROJ_CODE   31

Definition at line 10 of file oli_local.h.

◆ GCTP_PRINT_ERROR

#define GCTP_PRINT_ERROR (   format,
  ... 
)
Value:
gctp_print_message(GCTP_ERROR_MESSAGE,__FILE__, __LINE__, format, \
##__VA_ARGS__)

Definition at line 81 of file oli_local.h.

◆ GCTP_PRINT_INFO

#define GCTP_PRINT_INFO (   format,
  ... 
)
Value:
gctp_print_message(GCTP_INFO_MESSAGE,__FILE__, __LINE__, format, \
##__VA_ARGS__)

Definition at line 75 of file oli_local.h.

◆ PRINT_FORMAT_ATTRIBUTE

#define PRINT_FORMAT_ATTRIBUTE   __attribute__ ((format(printf,4,5)))

Definition at line 64 of file oli_local.h.

Typedef Documentation

◆ DESTROY_TRANSFORM

typedef void(* DESTROY_TRANSFORM) (TRANSFORMATION *)

Definition at line 22 of file oli_local.h.

◆ PRINT_PROJ_INFO

typedef void(* PRINT_PROJ_INFO) (const TRANSFORMATION *)

Definition at line 18 of file oli_local.h.

◆ TRANSFORM_FUNC

typedef int(* TRANSFORM_FUNC) (const TRANSFORMATION *trans, double in_x, double in_y, double *out_x, double *out_y)

Definition at line 28 of file oli_local.h.

Function Documentation

◆ gctp_calc_dist_from_equator()

double gctp_calc_dist_from_equator ( double  e0,
double  e1,
double  e2,
double  e3,
double  phi 
)

Definition at line 187 of file gctp_utility.c.

◆ gctp_calc_e0()

double gctp_calc_e0 ( double  x)

Definition at line 125 of file gctp_utility.c.

◆ gctp_calc_e1()

double gctp_calc_e1 ( double  x)

Definition at line 132 of file gctp_utility.c.

◆ gctp_calc_e2()

double gctp_calc_e2 ( double  x)

Definition at line 139 of file gctp_utility.c.

◆ gctp_calc_e3()

double gctp_calc_e3 ( double  x)

Definition at line 146 of file gctp_utility.c.

◆ gctp_calc_e4()

double gctp_calc_e4 ( double  x)

Definition at line 165 of file gctp_utility.c.

◆ gctp_calc_phi2()

int gctp_calc_phi2 ( double  eccent,
double  ts,
double *  phi2 
)

Definition at line 209 of file gctp_utility.c.

◆ gctp_calc_small_radius()

double gctp_calc_small_radius ( double  eccent,
double  sinphi,
double  cosphi 
)

Definition at line 253 of file gctp_utility.c.

◆ gctp_calc_small_t()

double gctp_calc_small_t ( double  eccent,
double  phi,
double  sinphi 
)

Definition at line 277 of file gctp_utility.c.

◆ gctp_dms2degrees()

int gctp_dms2degrees ( double  ang,
double *  degrees 
)

Definition at line 50 of file gctp_dms2degrees.c.

◆ gctp_geo_init()

int gctp_geo_init ( TRANSFORMATION *  trans)

Definition at line 38 of file geographic.c.

◆ gctp_get_sign()

int gctp_get_sign ( double  x)

Definition at line 103 of file gctp_utility.c.

◆ gctp_lamcc_forward_init()

int gctp_lamcc_forward_init ( TRANSFORMATION *  trans)

Definition at line 334 of file lambert_conformal_conic.c.

◆ gctp_lamcc_inverse_init()

int gctp_lamcc_inverse_init ( TRANSFORMATION *  trans)

Definition at line 307 of file lambert_conformal_conic.c.

◆ gctp_om_forward_init()

int gctp_om_forward_init ( TRANSFORMATION *  trans)

Definition at line 546 of file oblique_mercator.c.

◆ gctp_om_inverse_init()

int gctp_om_inverse_init ( TRANSFORMATION *  trans)

Definition at line 519 of file oblique_mercator.c.

◆ gctp_poly_forward_init()

int gctp_poly_forward_init ( TRANSFORMATION *  trans)

Definition at line 334 of file polyconic.c.

◆ gctp_poly_inverse_init()

int gctp_poly_inverse_init ( TRANSFORMATION *  trans)

Definition at line 307 of file polyconic.c.

◆ gctp_print_cenlat()

void gctp_print_cenlat ( double  A)

Definition at line 57 of file gctp_report.c.

◆ gctp_print_cenlon()

void gctp_print_cenlon ( double  A)

Definition at line 40 of file gctp_report.c.

◆ gctp_print_cenlonmer()

void gctp_print_cenlonmer ( double  A)

Definition at line 48 of file gctp_report.c.

◆ gctp_print_genrpt()

void gctp_print_genrpt ( double  A,
const char *  S 
)

Definition at line 117 of file gctp_report.c.

◆ gctp_print_genrpt_long()

void gctp_print_genrpt_long ( long  A,
const char *  S 
)

Definition at line 126 of file gctp_report.c.

◆ gctp_print_justify_cols()

void gctp_print_justify_cols ( double  A)

Definition at line 109 of file gctp_report.c.

◆ gctp_print_lat_zone()

void gctp_print_lat_zone ( double  A)

Definition at line 101 of file gctp_report.c.

◆ gctp_print_message()

void gctp_print_message ( GCTP_MESSAGE_TYPE_ENUM  message_type,
const char *  filename,
int  line_number,
const char *  format,
  ... 
)

Definition at line 31 of file gctp_print_message.c.

◆ gctp_print_offsetp()

void gctp_print_offsetp ( double  A,
double  B 
)

Definition at line 91 of file gctp_report.c.

◆ gctp_print_origin()

void gctp_print_origin ( double  A)

Definition at line 65 of file gctp_report.c.

◆ gctp_print_radius()

void gctp_print_radius ( double  radius)

Definition at line 22 of file gctp_report.c.

◆ gctp_print_radius2()

void gctp_print_radius2 ( double  radius1,
double  radius2 
)

Definition at line 30 of file gctp_report.c.

◆ gctp_print_stanparl()

void gctp_print_stanparl ( double  A,
double  B 
)

Definition at line 73 of file gctp_report.c.

◆ gctp_print_stparl1()

void gctp_print_stparl1 ( double  A)

Definition at line 83 of file gctp_report.c.

◆ gctp_print_title()

void gctp_print_title ( const char *  proj_name)

Definition at line 14 of file gctp_report.c.

◆ gctp_ps_forward_init()

int gctp_ps_forward_init ( TRANSFORMATION *  trans)

Definition at line 280 of file polar_stereographic.c.

◆ gctp_ps_inverse_init()

int gctp_ps_inverse_init ( TRANSFORMATION *  trans)

Definition at line 253 of file polar_stereographic.c.

◆ gctp_som_forward_init()

int gctp_som_forward_init ( TRANSFORMATION *  trans)

Definition at line 599 of file som.c.

◆ gctp_som_inverse_init()

int gctp_som_inverse_init ( TRANSFORMATION *  trans)

Definition at line 573 of file som.c.

◆ gctp_state_plane_forward_init()

int gctp_state_plane_forward_init ( TRANSFORMATION *  trans)

Definition at line 429 of file state_plane.c.

◆ gctp_state_plane_inverse_init()

int gctp_state_plane_inverse_init ( TRANSFORMATION *  trans)

Definition at line 388 of file state_plane.c.

◆ gctp_tm_forward_init()

int gctp_tm_forward_init ( TRANSFORMATION *  trans)

Definition at line 565 of file tm.c.

◆ gctp_tm_inverse_init()

int gctp_tm_inverse_init ( TRANSFORMATION *  trans)

Definition at line 539 of file tm.c.

◆ gctp_utm_forward_init()

int gctp_utm_forward_init ( TRANSFORMATION *  trans)

Definition at line 513 of file tm.c.

◆ gctp_utm_inverse_init()

int gctp_utm_inverse_init ( TRANSFORMATION *  trans)

Definition at line 487 of file tm.c.

@ GCTP_INFO_MESSAGE
Definition: gctp.h:142
void gctp_print_message(GCTP_MESSAGE_TYPE_ENUM message_type, const char *filename, int line_number, const char *format,...) PRINT_FORMAT_ATTRIBUTE
@ GCTP_ERROR_MESSAGE
Definition: gctp.h:143