FACT++  1.0
int eraEform ( int  n,
double *  a,
double *  f 
)

Definition at line 3 of file eform.c.

References ERFA_GRS80, ERFA_WGS72, and ERFA_WGS84.

Referenced by eraGc2gd(), eraGd2gc(), and t_eform().

61 {
62 
63 /* Look up a and f for the specified reference ellipsoid. */
64  switch ( n ) {
65 
66  case ERFA_WGS84:
67  *a = 6378137.0;
68  *f = 1.0 / 298.257223563;
69  break;
70 
71  case ERFA_GRS80:
72  *a = 6378137.0;
73  *f = 1.0 / 298.257222101;
74  break;
75 
76  case ERFA_WGS72:
77  *a = 6378135.0;
78  *f = 1.0 / 298.26;
79  break;
80 
81  default:
82 
83  /* Invalid identifier. */
84  *a = 0.0;
85  *f = 0.0;
86  return -1;
87 
88  }
89 
90 /* OK status. */
91  return 0;
92 
93 }
#define ERFA_WGS84
Definition: erfam.h:140
#define ERFA_GRS80
Definition: erfam.h:141
#define ERFA_WGS72
Definition: erfam.h:142

+ Here is the caller graph for this function: