TwiceAsNice  2019-02-18
Functions | Variables
cel.c File Reference
#include <math.h>
#include <string.h>
#include "wcstrig.h"
#include "cel.h"
#include "sph.h"
#include "tnx.h"
Include dependency graph for cel.c:

Functions

int celset (pcode, struct celprm *cel, struct prjprm *prj) const
 
int celfwd (pcode, const double lng, const double lat, struct celprm *cel, double *phi, double *theta, struct prjprm *prj, double *x, double *y) const
 
int celrev (pcode, const double x, const double y, struct prjprm *prj, double *phi, double *theta, struct celprm *cel, double *lng, double *lat) const
 

Variables

int npcode = 27
 
char pcodes [27][4]
 
const char * celset_errmsg []
 
const char * celfwd_errmsg []
 
const char * celrev_errmsg []
 

Function Documentation

◆ celfwd()

int celfwd ( pcode  ,
const double  lng,
const double  lat,
struct celprm cel,
double *  phi,
double *  theta,
struct prjprm prj,
double *  x,
double *  y 
) const

◆ celrev()

int celrev ( pcode  ,
const double  x,
const double  y,
struct prjprm prj,
double *  phi,
double *  theta,
struct celprm cel,
double *  lng,
double *  lat 
) const

◆ celset()

int celset ( pcode  ,
struct celprm cel,
struct prjprm prj 
) const

Variable Documentation

◆ celfwd_errmsg

const char* celfwd_errmsg[]
Initial value:
= {
0,
"Invalid coordinate transformation parameters",
"Invalid projection parameters",
"Invalid value of (lng,lat)"}

◆ celrev_errmsg

const char* celrev_errmsg[]
Initial value:
= {
0,
"Invalid coordinate transformation parameters",
"Invalid projection parameters",
"Invalid value of (x,y)"}

◆ celset_errmsg

const char* celset_errmsg[]
Initial value:
= {
0,
"Invalid coordinate transformation parameters",
"Ill-conditioned coordinate transformation parameters"}

◆ npcode

int npcode = 27

◆ pcodes

char pcodes[27][4]
Initial value:
=
{"AZP", "TAN", "SIN", "STG", "ARC", "ZPN", "ZEA", "AIR", "CYP", "CAR",
"MER", "CEA", "COP", "COD", "COE", "COO", "BON", "PCO", "GLS", "PAR",
"AIT", "MOL", "CSC", "QSC", "TSC", "TNX", "TPV"}