928 #define DISP2X_ARGS int inverse, const int iparm[], const double dparm[], \ 929 int ncrd, const double rawcrd[], double *discrd 932 #define DISX2P_ARGS int inverse, const int iparm[], const double dparm[], \ 933 int ncrd, const double discrd[], double *rawcrd 948 #define DPLEN (sizeof(struct dpkey)/sizeof(int)) 1000 #define DISLEN (sizeof(struct disprm)/sizeof(int)) 1006 int type,
int i,
double f);
1022 int disp2x(
struct disprm *dis,
const double rawcrd[],
double discrd[]);
1024 int disx2p(
struct disprm *dis,
const double discrd[],
double rawcrd[]);
1026 int diswarp(
struct disprm *dis,
const double pixblc[],
const double pixtrc[],
1027 const double pixsamp[],
int *nsamp,
1028 double maxdis[],
double *maxtot,
1029 double avgdis[],
double *avgtot,
1030 double rmsdis[],
double *rmstot);
int type
Definition: dis.h:940
int flag
Definition: dis.h:954
Store for DPja and DQia keyvalues.
Definition: dis.h:937
int discpy(int alloc, const struct disprm *dissrc, struct disprm *disdst)
Copy routine for the disprm struct.
int ** iparm
Definition: dis.h:975
const char * dis_errmsg[]
Status return messages.
int disperr(const struct disprm *dis, const char *prefix)
Print error messages from a disprm struct.
int ** axmap
Definition: dis.h:969
int dishdo(struct disprm *dis)
write FITS headers using TPD.
int disp2x(struct disprm *dis, const double rawcrd[], double discrd[])
Apply distortion function.
double ** scale
Definition: dis.h:974
Error message handling.
Definition: wcserr.h:225
int disx2p(struct disprm *dis, const double discrd[], double rawcrd[])
Apply de-distortion function.
int disset(struct disprm *dis)
Setup routine for the disprm struct.
int naxis
Definition: dis.h:958
struct dpkey * dp
Definition: dis.h:963
int ndis
Definition: dis.h:980
Distortion parameters.
Definition: dis.h:951
char field[72]
Definition: dis.h:938
int ndp
Definition: dis.h:961
int j
Definition: dis.h:939
int * Nhat
Definition: dis.h:970
int disfree(struct disprm *dis)
Destructor for the disprm struct.
dis_errmsg_enum
Definition: dis.h:918
int m_naxis
Definition: dis.h:993
int dpfill(struct dpkey *dp, const char *keyword, const char *field, int j, int type, int i, double f)
Fill the contents of a dpkey struct.
int disprt(const struct disprm *dis)
Print routine for the disprm struct.
double * tmpmem
Definition: dis.h:991
int i_naxis
Definition: dis.h:979
double * maxdis
Definition: dis.h:964
double totdis
Definition: dis.h:965
struct wcserr * err
Definition: dis.h:984
int disini(int alloc, int naxis, struct disprm *dis)
Default constructor for the disprm struct.
double f
Definition: dis.h:943
struct dpkey * m_dp
Definition: dis.h:995
double * m_maxdis
Definition: dis.h:996
int diswarp(struct disprm *dis, const double pixblc[], const double pixtrc[], const double pixsamp[], int *nsamp, double maxdis[], double *maxtot, double avgdis[], double *avgtot, double rmsdis[], double *rmstot)
Compute measures of distortion.
double ** offset
Definition: dis.h:973
#define DISX2P_ARGS
Definition: dis.h:932
int ndpmax
Definition: dis.h:962
int disndp(int n)
Memory allocation for DPja and DQia.
int i
Definition: dis.h:942
#define DISP2X_ARGS
Definition: dis.h:928
double ** dparm
Definition: dis.h:977