658 #define DISP2X_ARGS const int iparm[], const double dparm[], \
659 int ncrd, const double rawcrd[], double *discrd
662 #define DISX2P_ARGS const int iparm[], const double dparm[], \
663 int ncrd, const double discrd[], double *rawcrd
678 #define DPLEN (sizeof(struct dpkey)/sizeof(int))
730 #define DISLEN (sizeof(struct disprm)/sizeof(int))
736 int type,
int ival,
double fval);
748 int disp2x(
struct disprm *dis,
const double rawcrd[],
double discrd[]);
750 int disx2p(
struct disprm *dis,
const double discrd[],
double rawcrd[]);
752 int diswarp(
struct disprm *dis,
const double pixblc[],
const double pixtrc[],
753 const double pixsamp[],
int *nsamp,
754 double maxdis[],
double *maxtot,
755 double avgdis[],
double *avgtot,
756 double rmsdis[],
double *rmstot);
int type
Definition: dis.h:670
int flag
Definition: dis.h:684
Store for DPja and DQia keyvalues.
Definition: dis.h:667
int discpy(int alloc, const struct disprm *dissrc, struct disprm *disdst)
Copy routine for the disprm struct.
int ** iparm
Definition: dis.h:705
const char * dis_errmsg[]
Status return messages.
int ** axmap
Definition: dis.h:699
int disp2x(struct disprm *dis, const double rawcrd[], double discrd[])
Apply distortion function.
double ** scale
Definition: dis.h:704
Error message handling.
Definition: wcserr.h:221
int disx2p(struct disprm *dis, const double discrd[], double rawcrd[])
Apply de-distortion function.
int dpfill(struct dpkey *dp, const char *keyword, const char *field, int j, int type, int ival, double fval)
Fill the contents of a dpkey struct.
int disset(struct disprm *dis)
Setup routine for the disprm struct.
int naxis
Definition: dis.h:688
int tpv5(DISP2X_ARGS)
(Internal use only.)
struct dpkey * dp
Definition: dis.h:693
int tpv1(DISP2X_ARGS)
(Internal use only.)
int m_flag
Definition: dis.h:723
int ndis
Definition: dis.h:710
Distortion parameters.
Definition: dis.h:681
char field[72]
Definition: dis.h:668
int tpv3(DISP2X_ARGS)
(Internal use only.)
int ndp
Definition: dis.h:691
char(* m_dtype)[72]
Definition: dis.h:724
int j
Definition: dis.h:669
int * Nhat
Definition: dis.h:700
int disfree(struct disprm *dis)
Destructor for the disprm struct.
int tpv4(DISP2X_ARGS)
(Internal use only.)
dis_errmsg_enum
Definition: dis.h:648
int m_naxis
Definition: dis.h:723
int disprt(const struct disprm *dis)
Print routine for the disprm struct.
double * tmpmem
Definition: dis.h:721
int i_naxis
Definition: dis.h:709
double * maxdis
Definition: dis.h:694
double totdis
Definition: dis.h:695
int(** disx2p)(DISX2P_ARGS)
Definition: dis.h:719
int tpvset(int j, struct disprm *dis)
(Internal use only.)
struct wcserr * err
Definition: dis.h:714
char(* dtype)[72]
Definition: dis.h:690
int disini(int alloc, int naxis, struct disprm *dis)
Default constructor for the disprm struct.
int tpv6(DISP2X_ARGS)
(Internal use only.)
double f
Definition: dis.h:673
int polyset(int j, struct disprm *dis)
int tpv2(DISP2X_ARGS)
(Internal use only.)
struct dpkey * m_dp
Definition: dis.h:725
double * m_maxdis
Definition: dis.h:726
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:703
#define DISX2P_ARGS
Definition: dis.h:662
int(** disp2x)(DISP2X_ARGS)
Definition: dis.h:718
int ndpmax
Definition: dis.h:692
int disndp(int n)
Memory allocation for DPja and DQia.
int i
Definition: dis.h:672
int tpv7(DISP2X_ARGS)
(Internal use only.)
#define DISP2X_ARGS
Definition: dis.h:658
double ** dparm
Definition: dis.h:707