TwiceAsNice
2019-02-18
|
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "fits/fitscat_defs.h"
#include "fits/fitscat.h"
#include "fitswcs.h"
#include "wcscelsys.h"
#include "wcs/wcs.h"
#include "wcs/lin.h"
#include "wcs/tnx.h"
#include "wcs/poly.h"
Macros | |
#define | FITSREADF(buf, k, val, def) |
#define | FITSREADI(buf, k, val, def) |
#define | FITSREADS(buf, k, str, def) |
Functions | |
wcsstruct * | copy_wcs (wcsstruct *wcsin) |
wcsstruct * | create_wcs (char **ctype, double *crval, double *crpix, double *cdelt, int *naxisn, int naxis) |
void | init_wcs (wcsstruct *wcs) |
void | init_wcscelsys (wcsstruct *wcs) |
wcsstruct * | read_wcs (tabstruct *tab) |
void | write_wcs (tabstruct *tab, wcsstruct *wcs) |
void | wipe_wcs (tabstruct *tab) |
void | end_wcs (wcsstruct *wcs) |
int | wcs_supproj (char *name) |
void | invert_wcs (wcsstruct *wcs) |
void | range_wcs (wcsstruct *wcs) |
int | frame_wcs (wcsstruct *wcsin, wcsstruct *wcsout) |
int | reaxe_wcs (wcsstruct *wcs, int lng, int lat) |
int | celsys_to_eq (wcsstruct *wcs, double *wcspos) |
int | eq_to_celsys (wcsstruct *wcs, double *wcspos) |
int | raw_to_wcs (wcsstruct *wcs, double *pixpos, double *wcspos) |
int | wcs_to_raw (wcsstruct *wcs, double *wcspos, double *pixpos) |
int | red_to_raw (wcsstruct *wcs, double *redpos, double *pixpos) |
int | raw_to_red (wcsstruct *wcs, double *pixpos, double *redpos) |
double | wcs_dist (wcsstruct *wcs, double *wcspos1, double *wcspos2) |
double | wcs_scale (wcsstruct *wcs, double *pixpos) |
double | wcs_jacobian (wcsstruct *wcs, double *pixpos, double *jacob) |
double | wcs_rawtoraw (wcsstruct *wcsin, wcsstruct *wcsout, double *pixposin, double *pixposout, double *jacob) |
int | wcs_chirality (wcsstruct *wcs) |
void | precess_wcs (wcsstruct *wcs, double yearin, double yearout) |
void | precess (double yearin, double alphain, double deltain, double yearout, double *alphaout, double *deltaout) |
void | b2j (double yearobs, double alphain, double deltain, double *alphaout, double *deltaout) |
void | j2b (double yearobs, double alphain, double deltain, double *alphaout, double *deltaout) |
char * | degtosexal (double alpha, char *str) |
char * | degtosexde (double delta, char *str) |
double | sextodegal (char *hms) |
double | sextodegde (char *dms) |
double | fmod_0_p360 (double angle) |
double | fmod_m90_p90 (double angle) |
double | fmod_0_pmod (double angle, double mod) |
double | fmod_mmod_pmod (double angle, double mod) |
int | fcmp_0_p360 (double anglep, double anglem) |
#define FITSREADF | ( | buf, | |
k, | |||
val, | |||
def | |||
) |
#define FITSREADI | ( | buf, | |
k, | |||
val, | |||
def | |||
) |
void b2j | ( | double | yearobs, |
double | alphain, | ||
double | deltain, | ||
double * | alphaout, | ||
double * | deltaout | ||
) |
int celsys_to_eq | ( | wcsstruct * | wcs, |
double * | wcspos | ||
) |
wcsstruct* create_wcs | ( | char ** | ctype, |
double * | crval, | ||
double * | crpix, | ||
double * | cdelt, | ||
int * | naxisn, | ||
int | naxis | ||
) |
char* degtosexal | ( | double | alpha, |
char * | str | ||
) |
char* degtosexde | ( | double | delta, |
char * | str | ||
) |
void end_wcs | ( | wcsstruct * | wcs | ) |
int eq_to_celsys | ( | wcsstruct * | wcs, |
double * | wcspos | ||
) |
int fcmp_0_p360 | ( | double | anglep, |
double | anglem | ||
) |
double fmod_0_p360 | ( | double | angle | ) |
double fmod_0_pmod | ( | double | angle, |
double | mod | ||
) |
double fmod_m90_p90 | ( | double | angle | ) |
double fmod_mmod_pmod | ( | double | angle, |
double | mod | ||
) |
void init_wcs | ( | wcsstruct * | wcs | ) |
void init_wcscelsys | ( | wcsstruct * | wcs | ) |
void invert_wcs | ( | wcsstruct * | wcs | ) |
void j2b | ( | double | yearobs, |
double | alphain, | ||
double | deltain, | ||
double * | alphaout, | ||
double * | deltaout | ||
) |
void precess | ( | double | yearin, |
double | alphain, | ||
double | deltain, | ||
double | yearout, | ||
double * | alphaout, | ||
double * | deltaout | ||
) |
void precess_wcs | ( | wcsstruct * | wcs, |
double | yearin, | ||
double | yearout | ||
) |
void range_wcs | ( | wcsstruct * | wcs | ) |
int raw_to_red | ( | wcsstruct * | wcs, |
double * | pixpos, | ||
double * | redpos | ||
) |
int raw_to_wcs | ( | wcsstruct * | wcs, |
double * | pixpos, | ||
double * | wcspos | ||
) |
int reaxe_wcs | ( | wcsstruct * | wcs, |
int | lng, | ||
int | lat | ||
) |
int red_to_raw | ( | wcsstruct * | wcs, |
double * | redpos, | ||
double * | pixpos | ||
) |
double sextodegal | ( | char * | hms | ) |
double sextodegde | ( | char * | dms | ) |
int wcs_chirality | ( | wcsstruct * | wcs | ) |
double wcs_dist | ( | wcsstruct * | wcs, |
double * | wcspos1, | ||
double * | wcspos2 | ||
) |
double wcs_jacobian | ( | wcsstruct * | wcs, |
double * | pixpos, | ||
double * | jacob | ||
) |
double wcs_rawtoraw | ( | wcsstruct * | wcsin, |
wcsstruct * | wcsout, | ||
double * | pixposin, | ||
double * | pixposout, | ||
double * | jacob | ||
) |
double wcs_scale | ( | wcsstruct * | wcs, |
double * | pixpos | ||
) |
int wcs_supproj | ( | char * | name | ) |
int wcs_to_raw | ( | wcsstruct * | wcs, |
double * | wcspos, | ||
double * | pixpos | ||
) |
void wipe_wcs | ( | tabstruct * | tab | ) |