SourceXtractorPlusPlus  0.8
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Enumerations | Functions | Variables
WCS.cpp File Reference
#include <fitsio.h>
#include <wcslib/wcs.h>
#include <wcslib/wcshdr.h>
#include <wcslib/wcsfix.h>
#include <wcslib/wcsprintf.h>
#include <wcslib/getwcstab.h>
#include "ElementsKernel/Exception.h"
#include "SEImplementation/CoordinateSystem/WCS.h"
#include <boost/algorithm/string/trim.hpp>
Include dependency graph for WCS.cpp:

Go to the source code of this file.

Classes

struct  wcslib::wcserr
 
struct  wcslib::linprm
 
struct  wcslib::prjprm
 
struct  wcslib::celprm
 
struct  wcslib::spxprm
 
struct  wcslib::spcprm
 
struct  wcslib::tabprm
 
struct  wcslib::pvcard
 
struct  wcslib::pscard
 
struct  wcslib::wtbarr
 
struct  wcslib::wcsprm
 
struct  wcslib::wtbarr
 

Namespaces

 wcslib
 
 SourceXtractor
 

Enumerations

enum  wcslib::lin_errmsg_enum { wcslib::LINERR_SUCCESS = 0, wcslib::LINERR_NULL_POINTER = 1, wcslib::LINERR_MEMORY = 2, wcslib::LINERR_SINGULAR_MTX = 3 }
 
enum  wcslib::prj_errmsg_enum {
  wcslib::PRJERR_SUCCESS = 0, wcslib::PRJERR_NULL_POINTER = 1, wcslib::PRJERR_BAD_PARAM = 2, wcslib::PRJERR_BAD_PIX = 3,
  wcslib::PRJERR_BAD_WORLD = 4
}
 
enum  wcslib::cel_errmsg_enum {
  wcslib::CELERR_SUCCESS = 0, wcslib::CELERR_NULL_POINTER = 1, wcslib::CELERR_BAD_PARAM = 2, wcslib::CELERR_BAD_COORD_TRANS = 3,
  wcslib::CELERR_ILL_COORD_TRANS = 4, wcslib::CELERR_BAD_PIX = 5, wcslib::CELERR_BAD_WORLD = 6
}
 
enum  wcslib::spx_errmsg {
  wcslib::SPXERR_SUCCESS = 0, wcslib::SPXERR_NULL_POINTER = 1, wcslib::SPXERR_BAD_SPEC_PARAMS = 2, wcslib::SPXERR_BAD_SPEC_VAR = 3,
  wcslib::SPXERR_BAD_INSPEC_COORD = 4
}
 
enum  wcslib::spc_errmsg_enum {
  wcslib::SPCERR_NO_CHANGE = -1, wcslib::SPCERR_SUCCESS = 0, wcslib::SPCERR_NULL_POINTER = 1, wcslib::SPCERR_BAD_SPEC_PARAMS = 2,
  wcslib::SPCERR_BAD_X = 3, wcslib::SPCERR_BAD_SPEC = 4
}
 
enum  wcslib::tab_errmsg_enum {
  wcslib::TABERR_SUCCESS = 0, wcslib::TABERR_NULL_POINTER = 1, wcslib::TABERR_MEMORY = 2, wcslib::TABERR_BAD_PARAMS = 3,
  wcslib::TABERR_BAD_X = 4, wcslib::TABERR_BAD_WORLD = 5
}
 
enum  wcslib::wcs_errmsg_enum {
  wcslib::WCSERR_SUCCESS = 0, wcslib::WCSERR_NULL_POINTER = 1, wcslib::WCSERR_MEMORY = 2, wcslib::WCSERR_SINGULAR_MTX = 3,
  wcslib::WCSERR_BAD_CTYPE = 4, wcslib::WCSERR_BAD_PARAM = 5, wcslib::WCSERR_BAD_COORD_TRANS = 6, wcslib::WCSERR_ILL_COORD_TRANS = 7,
  wcslib::WCSERR_BAD_PIX = 8, wcslib::WCSERR_BAD_WORLD = 9, wcslib::WCSERR_BAD_WORLD_COORD = 10, wcslib::WCSERR_NO_SOLUTION = 11,
  wcslib::WCSERR_BAD_SUBIMAGE = 12, wcslib::WCSERR_NON_SEPARABLE = 13
}
 
enum  wcslib::wcshdr_errmsg_enum {
  wcslib::WCSHDRERR_SUCCESS = 0, wcslib::WCSHDRERR_NULL_POINTER = 1, wcslib::WCSHDRERR_MEMORY = 2, wcslib::WCSHDRERR_BAD_COLUMN = 3,
  wcslib::WCSHDRERR_PARSER = 4, wcslib::WCSHDRERR_BAD_TABULAR_PARAMS = 5
}
 
enum  wcslib::wcsfix_errmsg_enum {
  wcslib::FIXERR_DATE_FIX = -4, wcslib::FIXERR_SPC_UPDATE = -3, wcslib::FIXERR_UNITS_ALIAS = -2, wcslib::FIXERR_NO_CHANGE = -1,
  wcslib::FIXERR_SUCCESS = 0, wcslib::FIXERR_NULL_POINTER = 1, wcslib::FIXERR_MEMORY = 2, wcslib::FIXERR_SINGULAR_MTX = 3,
  wcslib::FIXERR_BAD_CTYPE = 4, wcslib::FIXERR_BAD_PARAM = 5, wcslib::FIXERR_BAD_COORD_TRANS = 6, wcslib::FIXERR_ILL_COORD_TRANS = 7,
  wcslib::FIXERR_BAD_CORNER_PIX = 8, wcslib::FIXERR_NO_REF_PIX_COORD = 9, wcslib::FIXERR_NO_REF_PIX_VAL = 10
}
 

Functions

int wcslib::wcserr_enable (int enable)
 
int wcslib::wcserr_prt (const struct wcserr *err, const char *prefix)
 
int wcslib::wcserr_clear (struct wcserr **err)
 
int wcslib::wcserr_set (struct wcserr **err, int status, const char *function, const char *file, int line_no, const char *format,...)
 
int wcslib::wcserr_copy (const struct wcserr *src, struct wcserr *dst)
 
int wcslib::linini (int alloc, int naxis, struct linprm *lin)
 
int wcslib::lincpy (int alloc, const struct linprm *linsrc, struct linprm *lindst)
 
int wcslib::linfree (struct linprm *lin)
 
int wcslib::linprt (const struct linprm *lin)
 
int wcslib::linset (struct linprm *lin)
 
int wcslib::linp2x (struct linprm *lin, int ncoord, int nelem, const double pixcrd[], double imgcrd[])
 
int wcslib::linx2p (struct linprm *lin, int ncoord, int nelem, const double imgcrd[], double pixcrd[])
 
int wcslib::matinv (int n, const double mat[], double inv[])
 
int wcslib::prjini (struct prjprm *prj)
 
int wcslib::prjfree (struct prjprm *prj)
 
int wcslib::prjprt (const struct prjprm *prj)
 
int wcslib::prjbchk (double tol, int nx, int ny, int spt, double phi[], double theta[], int stat[])
 
int wcslib::prjset (struct prjprm *prj)
 
int wcslib::prjx2s (PRJX2S_ARGS)
 
int wcslib::prjs2x (PRJS2X_ARGS)
 
int wcslib::azpset (struct prjprm *prj)
 
int wcslib::azpx2s (PRJX2S_ARGS)
 
int wcslib::azps2x (PRJS2X_ARGS)
 
int wcslib::szpset (struct prjprm *prj)
 
int wcslib::szpx2s (PRJX2S_ARGS)
 
int wcslib::szps2x (PRJS2X_ARGS)
 
int wcslib::tanset (struct prjprm *prj)
 
int wcslib::tanx2s (PRJX2S_ARGS)
 
int wcslib::tans2x (PRJS2X_ARGS)
 
int wcslib::stgset (struct prjprm *prj)
 
int wcslib::stgx2s (PRJX2S_ARGS)
 
int wcslib::stgs2x (PRJS2X_ARGS)
 
int wcslib::sinset (struct prjprm *prj)
 
int wcslib::sinx2s (PRJX2S_ARGS)
 
int wcslib::sins2x (PRJS2X_ARGS)
 
int wcslib::arcset (struct prjprm *prj)
 
int wcslib::arcx2s (PRJX2S_ARGS)
 
int wcslib::arcs2x (PRJS2X_ARGS)
 
int wcslib::zpnset (struct prjprm *prj)
 
int wcslib::zpnx2s (PRJX2S_ARGS)
 
int wcslib::zpns2x (PRJS2X_ARGS)
 
int wcslib::zeaset (struct prjprm *prj)
 
int wcslib::zeax2s (PRJX2S_ARGS)
 
int wcslib::zeas2x (PRJS2X_ARGS)
 
int wcslib::airset (struct prjprm *prj)
 
int wcslib::airx2s (PRJX2S_ARGS)
 
int wcslib::airs2x (PRJS2X_ARGS)
 
int wcslib::cypset (struct prjprm *prj)
 
int wcslib::cypx2s (PRJX2S_ARGS)
 
int wcslib::cyps2x (PRJS2X_ARGS)
 
int wcslib::ceaset (struct prjprm *prj)
 
int wcslib::ceax2s (PRJX2S_ARGS)
 
int wcslib::ceas2x (PRJS2X_ARGS)
 
int wcslib::carset (struct prjprm *prj)
 
int wcslib::carx2s (PRJX2S_ARGS)
 
int wcslib::cars2x (PRJS2X_ARGS)
 
int wcslib::merset (struct prjprm *prj)
 
int wcslib::merx2s (PRJX2S_ARGS)
 
int wcslib::mers2x (PRJS2X_ARGS)
 
int wcslib::sflset (struct prjprm *prj)
 
int wcslib::sflx2s (PRJX2S_ARGS)
 
int wcslib::sfls2x (PRJS2X_ARGS)
 
int wcslib::parset (struct prjprm *prj)
 
int wcslib::parx2s (PRJX2S_ARGS)
 
int wcslib::pars2x (PRJS2X_ARGS)
 
int wcslib::molset (struct prjprm *prj)
 
int wcslib::molx2s (PRJX2S_ARGS)
 
int wcslib::mols2x (PRJS2X_ARGS)
 
int wcslib::aitset (struct prjprm *prj)
 
int wcslib::aitx2s (PRJX2S_ARGS)
 
int wcslib::aits2x (PRJS2X_ARGS)
 
int wcslib::copset (struct prjprm *prj)
 
int wcslib::copx2s (PRJX2S_ARGS)
 
int wcslib::cops2x (PRJS2X_ARGS)
 
int wcslib::coeset (struct prjprm *prj)
 
int wcslib::coex2s (PRJX2S_ARGS)
 
int wcslib::coes2x (PRJS2X_ARGS)
 
int wcslib::codset (struct prjprm *prj)
 
int wcslib::codx2s (PRJX2S_ARGS)
 
int wcslib::cods2x (PRJS2X_ARGS)
 
int wcslib::cooset (struct prjprm *prj)
 
int wcslib::coox2s (PRJX2S_ARGS)
 
int wcslib::coos2x (PRJS2X_ARGS)
 
int wcslib::bonset (struct prjprm *prj)
 
int wcslib::bonx2s (PRJX2S_ARGS)
 
int wcslib::bons2x (PRJS2X_ARGS)
 
int wcslib::pcoset (struct prjprm *prj)
 
int wcslib::pcox2s (PRJX2S_ARGS)
 
int wcslib::pcos2x (PRJS2X_ARGS)
 
int wcslib::tscset (struct prjprm *prj)
 
int wcslib::tscx2s (PRJX2S_ARGS)
 
int wcslib::tscs2x (PRJS2X_ARGS)
 
int wcslib::cscset (struct prjprm *prj)
 
int wcslib::cscx2s (PRJX2S_ARGS)
 
int wcslib::cscs2x (PRJS2X_ARGS)
 
int wcslib::qscset (struct prjprm *prj)
 
int wcslib::qscx2s (PRJX2S_ARGS)
 
int wcslib::qscs2x (PRJS2X_ARGS)
 
int wcslib::hpxset (struct prjprm *prj)
 
int wcslib::hpxx2s (PRJX2S_ARGS)
 
int wcslib::hpxs2x (PRJS2X_ARGS)
 
int wcslib::xphset (struct prjprm *prj)
 
int wcslib::xphx2s (PRJX2S_ARGS)
 
int wcslib::xphs2x (PRJS2X_ARGS)
 
int wcslib::celini (struct celprm *cel)
 
int wcslib::celfree (struct celprm *cel)
 
int wcslib::celprt (const struct celprm *cel)
 
int wcslib::celset (struct celprm *cel)
 
int wcslib::celx2s (struct celprm *cel, int nx, int ny, int sxy, int sll, const double x[], const double y[], double phi[], double theta[], double lng[], double lat[], int stat[])
 
int wcslib::cels2x (struct celprm *cel, int nlng, int nlat, int sll, int sxy, const double lng[], const double lat[], double phi[], double theta[], double x[], double y[], int stat[])
 
int wcslib::specx (const char *type, double spec, double restfrq, double restwav, struct spxprm *specs)
 
int wcslib::freqafrq (SPX_ARGS)
 
int wcslib::afrqfreq (SPX_ARGS)
 
int wcslib::freqener (SPX_ARGS)
 
int wcslib::enerfreq (SPX_ARGS)
 
int wcslib::freqwavn (SPX_ARGS)
 
int wcslib::wavnfreq (SPX_ARGS)
 
int wcslib::freqwave (SPX_ARGS)
 
int wcslib::wavefreq (SPX_ARGS)
 
int wcslib::freqawav (SPX_ARGS)
 
int wcslib::awavfreq (SPX_ARGS)
 
int wcslib::waveawav (SPX_ARGS)
 
int wcslib::awavwave (SPX_ARGS)
 
int wcslib::velobeta (SPX_ARGS)
 
int wcslib::betavelo (SPX_ARGS)
 
int wcslib::freqvelo (SPX_ARGS)
 
int wcslib::velofreq (SPX_ARGS)
 
int wcslib::freqvrad (SPX_ARGS)
 
int wcslib::vradfreq (SPX_ARGS)
 
int wcslib::wavevelo (SPX_ARGS)
 
int wcslib::velowave (SPX_ARGS)
 
int wcslib::awavvelo (SPX_ARGS)
 
int wcslib::veloawav (SPX_ARGS)
 
int wcslib::wavevopt (SPX_ARGS)
 
int wcslib::voptwave (SPX_ARGS)
 
int wcslib::wavezopt (SPX_ARGS)
 
int wcslib::zoptwave (SPX_ARGS)
 
int wcslib::spcini (struct spcprm *spc)
 
int wcslib::spcfree (struct spcprm *spc)
 
int wcslib::spcprt (const struct spcprm *spc)
 
int wcslib::spcset (struct spcprm *spc)
 
int wcslib::spcx2s (struct spcprm *spc, int nx, int sx, int sspec, const double x[], double spec[], int stat[])
 
int wcslib::spcs2x (struct spcprm *spc, int nspec, int sspec, int sx, const double spec[], double x[], int stat[])
 
int wcslib::spctype (const char ctype[9], char stype[], char scode[], char sname[], char units[], char *ptype, char *xtype, int *restreq, struct wcserr **err)
 
int wcslib::spcspxe (const char ctypeS[9], double crvalS, double restfrq, double restwav, char *ptype, char *xtype, int *restreq, double *crvalX, double *dXdS, struct wcserr **err)
 
int wcslib::spcxpse (const char ctypeS[9], double crvalX, double restfrq, double restwav, char *ptype, char *xtype, int *restreq, double *crvalS, double *dSdX, struct wcserr **err)
 
int wcslib::spctrne (const char ctypeS1[9], double crvalS1, double cdeltS1, double restfrq, double restwav, char ctypeS2[9], double *crvalS2, double *cdeltS2, struct wcserr **err)
 
int wcslib::spcaips (const char ctypeA[9], int velref, char ctype[9], char specsys[9])
 
int wcslib::spctyp (const char ctype[9], char stype[], char scode[], char sname[], char units[], char *ptype, char *xtype, int *restreq)
 
int wcslib::spcspx (const char ctypeS[9], double crvalS, double restfrq, double restwav, char *ptype, char *xtype, int *restreq, double *crvalX, double *dXdS)
 
int wcslib::spcxps (const char ctypeS[9], double crvalX, double restfrq, double restwav, char *ptype, char *xtype, int *restreq, double *crvalS, double *dSdX)
 
int wcslib::spctrn (const char ctypeS1[9], double crvalS1, double cdeltS1, double restfrq, double restwav, char ctypeS2[9], double *crvalS2, double *cdeltS2)
 
int wcslib::tabini (int alloc, int M, const int K[], struct tabprm *tab)
 
int wcslib::tabmem (struct tabprm *tab)
 
int wcslib::tabcpy (int alloc, const struct tabprm *tabsrc, struct tabprm *tabdst)
 
int wcslib::tabcmp (int cmp, double tol, const struct tabprm *tab1, const struct tabprm *tab2, int *equal)
 
int wcslib::tabfree (struct tabprm *tab)
 
int wcslib::tabprt (const struct tabprm *tab)
 
int wcslib::tabset (struct tabprm *tab)
 
int wcslib::tabx2s (struct tabprm *tab, int ncoord, int nelem, const double x[], double world[], int stat[])
 
int wcslib::tabs2x (struct tabprm *tab, int ncoord, int nelem, const double world[], double x[], int stat[])
 
int wcslib::wcsnpv (int n)
 
int wcslib::wcsnps (int n)
 
int wcslib::wcsini (int alloc, int naxis, struct wcsprm *wcs)
 
int wcslib::wcssub (int alloc, const struct wcsprm *wcssrc, int *nsub, int axes[], struct wcsprm *wcsdst)
 
int wcslib::wcscompare (int cmp, double tol, const struct wcsprm *wcs1, const struct wcsprm *wcs2, int *equal)
 
int wcslib::wcsfree (struct wcsprm *wcs)
 
int wcslib::wcsprt (const struct wcsprm *wcs)
 
int wcslib::wcsperr (const struct wcsprm *wcs, const char *prefix)
 
int wcslib::wcsbchk (struct wcsprm *wcs, int bounds)
 
int wcslib::wcsset (struct wcsprm *wcs)
 
int wcslib::wcsp2s (struct wcsprm *wcs, int ncoord, int nelem, const double pixcrd[], double imgcrd[], double phi[], double theta[], double world[], int stat[])
 
int wcslib::wcss2p (struct wcsprm *wcs, int ncoord, int nelem, const double world[], double phi[], double theta[], double imgcrd[], double pixcrd[], int stat[])
 
int wcslib::wcsmix (struct wcsprm *wcs, int mixpix, int mixcel, const double vspan[], double vstep, int viter, double world[], double phi[], double theta[], double imgcrd[], double pixcrd[])
 
int wcslib::wcssptr (struct wcsprm *wcs, int *i, char ctype[9])
 
int wcslib::wcspih (char *header, int nkeyrec, int relax, int ctrl, int *nreject, int *nwcs, struct wcsprm **wcs)
 
int wcslib::wcsbth (char *header, int nkeyrec, int relax, int ctrl, int keysel, int *colsel, int *nreject, int *nwcs, struct wcsprm **wcs)
 
int wcslib::wcstab (struct wcsprm *wcs)
 
int wcslib::wcsidx (int nwcs, struct wcsprm **wcs, int alts[27])
 
int wcslib::wcsbdx (int nwcs, struct wcsprm **wcs, int type, short alts[1000][28])
 
int wcslib::wcsvfree (int *nwcs, struct wcsprm **wcs)
 
int wcslib::wcshdo (int relax, struct wcsprm *wcs, int *nkeyrec, char **header)
 
int wcslib::wcsfix (int ctrl, const int naxis[], struct wcsprm *wcs, int stat[])
 
int wcslib::wcsfixi (int ctrl, const int naxis[], struct wcsprm *wcs, int stat[], struct wcserr info[])
 
int wcslib::cdfix (struct wcsprm *wcs)
 
int wcslib::datfix (struct wcsprm *wcs)
 
int wcslib::unitfix (int ctrl, struct wcsprm *wcs)
 
int wcslib::spcfix (struct wcsprm *wcs)
 
int wcslib::celfix (struct wcsprm *wcs)
 
int wcslib::cylfix (const int naxis[], struct wcsprm *wcs)
 
int wcslib::wcsprintf_set (FILE *wcsout)
 
int wcslib::wcsprintf (const char *format,...)
 
int wcslib::wcsfprintf (FILE *stream, const char *format,...)
 
const char * wcslib::wcsprintf_buf (void)
 
int wcslib::fits_read_wcstab (fitsfile *fptr, int nwtb, wtbarr *wtb, int *status)
 

Variables

const char * wcslib::lin_errmsg []
 
const char * wcslib::prj_errmsg []
 
const int wcslib::CONIC
 
const int wcslib::CONVENTIONAL
 
const int wcslib::CYLINDRICAL
 
const int wcslib::POLYCONIC
 
const int wcslib::PSEUDOCYLINDRICAL
 
const int wcslib::QUADCUBE
 
const int wcslib::ZENITHAL
 
const int wcslib::HEALPIX
 
const char wcslib::prj_categories [9][32]
 
const int wcslib::prj_ncode
 
const char wcslib::prj_codes [28][4]
 
const char * wcslib::cel_errmsg []
 
const char * wcslib::spx_errmsg []
 
const char * wcslib::spc_errmsg []
 
const char * wcslib::tab_errmsg []
 
const char * wcslib::wcs_errmsg []
 
const char * wcslib::wcshdr_errmsg []
 
const char * wcslib::wcsfix_errmsg []