1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "fitsio2.h"
/* ======================================================================
This file contains stubs for the AIPS WCS routines that are
contained in the source file wcsutil.c. The routines in wcsutil.c
should only be used by software that adheres to the terms of
the GNU General Public License. Users who want to use CFITSIO but are
unwilling to release their code under the terms of the GNU General
Public License should replace the wcsutil.c file with this current
file before building the CFITSIO library. This alternate version of
CFITSIO will behave the same as the standard version, except that it
will not support the ffwldp and ffxypx routines that calculate
image coordinate transformation from pixel coordinates to world
coordinates (e.g. Right Ascension and Declination) and vise versa.
======================================================================== */
int ffgics(fitsfile *fptr,
double *xrval,
double *yrval,
double *xrpix,
double *yrpix,
double *xinc,
double *yinc,
double *rot,
char *type,
int *status) {
return(*status = NO_WCS_KEY);
}
int ffgtcs(fitsfile *fptr,
int xcol,
int ycol,
double *xrval,
double *yrval,
double *xrpix,
double *yrpix,
double *xinc,
double *yinc,
double *rot,
char *type,
int *status) {
return(*status = NO_WCS_KEY);
}
/*--------------------------------------------------------------------------*/
int ffwldp(double xpix, double ypix, double xref, double yref,
double xrefpix, double yrefpix, double xinc, double yinc, double rot,
char *type, double *xpos, double *ypos, int *status)
{
if (*status > 0)
return(*status);
ffpmsg("This non-GNU version of CFITSIO does not support");
ffpmsg(" celestial coordinate transformations.");
return(*status = 503);
}
/*--------------------------------------------------------------------------*/
int ffxypx(double xpos, double ypos, double xref, double yref,
double xrefpix, double yrefpix, double xinc, double yinc, double rot,
char *type, double *xpix, double *ypix, int *status)
{
if (*status > 0)
return(*status);
ffpmsg("This non-GNU version of CFITSIO does not support");
ffpmsg(" celestial coordinate transformations.");
return(*status = 503);
}
|