Due to the lapse in federal government funding, NASA is not updating this website. We sincerely regret this inconvenience.
NASA Logo
Ocean Color Science Software

ocssw V2022
gctp.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  gctp_projection
 

Macros

#define GEO   0
 
#define UTM   1
 
#define SPCS   2
 
#define ALBERS   3
 
#define LAMCC   4
 
#define MERCAT   5
 
#define PS   6
 
#define POLYC   7
 
#define EQUIDC   8
 
#define TM   9
 
#define STEREO   10
 
#define LAMAZ   11
 
#define AZMEQD   12
 
#define GNOMON   13
 
#define ORTHO   14
 
#define GVNSP   15
 
#define SNSOID   16
 
#define EQRECT   17
 
#define MILLER   18
 
#define VGRINT   19
 
#define HOM   20
 
#define ROBIN   21
 
#define SOM   22
 
#define ALASKA   23
 
#define GOOD   24
 
#define MOLL   25
 
#define IMOLL   26
 
#define HAMMER   27
 
#define WAGIV   28
 
#define WAGVII   29
 
#define OBEQA   30
 
#define ISIN   31
 
#define USDEF   99
 
#define MAXPROJ   31 /* largest supported projection number */
 
#define GCTP_PROJECTION_PARAMETER_COUNT   15
 
#define GCTP_ERROR   -1
 
#define GCTP_SUCCESS   0
 
#define GCTP_IN_BREAK   -2
 
#define RADIAN   0
 
#define FEET   1
 
#define METER   2
 
#define SECOND   3
 
#define DEGREE   4
 
#define DMS   5
 

Typedefs

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

Enumerations

enum  gctp_message_type_enum { GCTP_INFO_MESSAGE, GCTP_ERROR_MESSAGE, GCTP_MESSAGE_TYPE_COUNT }
 

Functions

GCTP_TRANSFORMATION * gctp_create_transformation (const GCTP_PROJECTION *input_projection, const GCTP_PROJECTION *output_projection)
 
void gctp_destroy_transformation (GCTP_TRANSFORMATION *trans)
 
int gctp_transform (const GCTP_TRANSFORMATION *trans, const double *in_coor, double *out_coor)
 
void gctp_set_message_callback (GCTP_CALLBACK_PRINT_FUNC callback)
 
void gctp_print_transformation_info (const GCTP_TRANSFORMATION *trans)
 
const GCTP_PROJECTION * gctp_get_input_proj (const GCTP_TRANSFORMATION *trans)
 
const GCTP_PROJECTION * gctp_get_output_proj (const GCTP_TRANSFORMATION *trans)
 
int gctp_calc_utm_zone (double lon)
 
void gctp_only_allow_threadsafe_transforms ()
 
void gctp (const double *, const long *, const long *, const double *, long *, const long *, double *, const long *, const long *, const double *, long *, const long *, long *)
 

Macro Definition Documentation

◆ ALASKA

#define ALASKA   23

Definition at line 64 of file gctp.h.

◆ ALBERS

#define ALBERS   3

Definition at line 44 of file gctp.h.

◆ AZMEQD

#define AZMEQD   12

Definition at line 53 of file gctp.h.

◆ DEGREE

#define DEGREE   4

Definition at line 93 of file gctp.h.

◆ DMS

#define DMS   5

Definition at line 94 of file gctp.h.

◆ EQRECT

#define EQRECT   17

Definition at line 58 of file gctp.h.

◆ EQUIDC

#define EQUIDC   8

Definition at line 49 of file gctp.h.

◆ FEET

#define FEET   1

Definition at line 90 of file gctp.h.

◆ GCTP_ERROR

#define GCTP_ERROR   -1

Definition at line 81 of file gctp.h.

◆ GCTP_IN_BREAK

#define GCTP_IN_BREAK   -2

Definition at line 86 of file gctp.h.

◆ GCTP_PROJECTION_PARAMETER_COUNT

#define GCTP_PROJECTION_PARAMETER_COUNT   15

Definition at line 78 of file gctp.h.

◆ GCTP_SUCCESS

#define GCTP_SUCCESS   0

Definition at line 82 of file gctp.h.

◆ GEO

#define GEO   0

Definition at line 41 of file gctp.h.

◆ GNOMON

#define GNOMON   13

Definition at line 54 of file gctp.h.

◆ GOOD

#define GOOD   24

Definition at line 65 of file gctp.h.

◆ GVNSP

#define GVNSP   15

Definition at line 56 of file gctp.h.

◆ HAMMER

#define HAMMER   27

Definition at line 68 of file gctp.h.

◆ HOM

#define HOM   20

Definition at line 61 of file gctp.h.

◆ IMOLL

#define IMOLL   26

Definition at line 67 of file gctp.h.

◆ ISIN

#define ISIN   31

Definition at line 72 of file gctp.h.

◆ LAMAZ

#define LAMAZ   11

Definition at line 52 of file gctp.h.

◆ LAMCC

#define LAMCC   4

Definition at line 45 of file gctp.h.

◆ MAXPROJ

#define MAXPROJ   31 /* largest supported projection number */

Definition at line 75 of file gctp.h.

◆ MERCAT

#define MERCAT   5

Definition at line 46 of file gctp.h.

◆ METER

#define METER   2

Definition at line 91 of file gctp.h.

◆ MILLER

#define MILLER   18

Definition at line 59 of file gctp.h.

◆ MOLL

#define MOLL   25

Definition at line 66 of file gctp.h.

◆ OBEQA

#define OBEQA   30

Definition at line 71 of file gctp.h.

◆ ORTHO

#define ORTHO   14

Definition at line 55 of file gctp.h.

◆ POLYC

#define POLYC   7

Definition at line 48 of file gctp.h.

◆ PS

#define PS   6

Definition at line 47 of file gctp.h.

◆ RADIAN

#define RADIAN   0

Definition at line 89 of file gctp.h.

◆ ROBIN

#define ROBIN   21

Definition at line 62 of file gctp.h.

◆ SECOND

#define SECOND   3

Definition at line 92 of file gctp.h.

◆ SNSOID

#define SNSOID   16

Definition at line 57 of file gctp.h.

◆ SOM

#define SOM   22

Definition at line 63 of file gctp.h.

◆ SPCS

#define SPCS   2

Definition at line 43 of file gctp.h.

◆ STEREO

#define STEREO   10

Definition at line 51 of file gctp.h.

◆ TM

#define TM   9

Definition at line 50 of file gctp.h.

◆ USDEF

#define USDEF   99

Definition at line 73 of file gctp.h.

◆ UTM

#define UTM   1

Definition at line 42 of file gctp.h.

◆ VGRINT

#define VGRINT   19

Definition at line 60 of file gctp.h.

◆ WAGIV

#define WAGIV   28

Definition at line 69 of file gctp.h.

◆ WAGVII

#define WAGVII   29

Definition at line 70 of file gctp.h.

Typedef Documentation

◆ GCTP_CALLBACK_PRINT_FUNC

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

Definition at line 150 of file gctp.h.

Enumeration Type Documentation

◆ gctp_message_type_enum

Enumerator
GCTP_INFO_MESSAGE 
GCTP_ERROR_MESSAGE 
GCTP_MESSAGE_TYPE_COUNT 

Definition at line 140 of file gctp.h.

Function Documentation

◆ gctp()

void gctp ( const double *  ,
const long *  ,
const long *  ,
const double *  ,
long *  ,
const long *  ,
double *  ,
const long *  ,
const long *  ,
const double *  ,
long *  ,
const long *  ,
long *   
)

Definition at line 36 of file gctp.c.

◆ gctp_calc_utm_zone()

int gctp_calc_utm_zone ( double  lon)

Definition at line 85 of file gctp_utility.c.

◆ gctp_create_transformation()

GCTP_TRANSFORMATION* gctp_create_transformation ( const GCTP_PROJECTION *  input_projection,
const GCTP_PROJECTION *  output_projection 
)

Definition at line 160 of file gctp_create_transformation.c.

◆ gctp_destroy_transformation()

void gctp_destroy_transformation ( GCTP_TRANSFORMATION *  trans)

Definition at line 312 of file gctp_create_transformation.c.

◆ gctp_get_input_proj()

const GCTP_PROJECTION* gctp_get_input_proj ( const GCTP_TRANSFORMATION *  trans)

Definition at line 51 of file gctp_utility.c.

◆ gctp_get_output_proj()

const GCTP_PROJECTION* gctp_get_output_proj ( const GCTP_TRANSFORMATION *  trans)

Definition at line 68 of file gctp_utility.c.

◆ gctp_only_allow_threadsafe_transforms()

void gctp_only_allow_threadsafe_transforms ( )

Definition at line 344 of file gctp_create_transformation.c.

◆ gctp_print_transformation_info()

void gctp_print_transformation_info ( const GCTP_TRANSFORMATION *  trans)

Definition at line 25 of file gctp_utility.c.

◆ gctp_set_message_callback()

void gctp_set_message_callback ( GCTP_CALLBACK_PRINT_FUNC  callback)

Definition at line 92 of file gctp_print_message.c.

◆ gctp_transform()

int gctp_transform ( const GCTP_TRANSFORMATION *  trans,
const double *  in_coor,
double *  out_coor 
)

Definition at line 69 of file gctp_transform.c.