1108#define DISP2X_ARGS int inverse, const int iparm[], const double dparm[], \
1109int ncrd, const double rawcrd[], double *discrd
1112#define DISX2P_ARGS int inverse, const int iparm[], const double dparm[], \
1113int ncrd, const double discrd[], double *rawcrd
1128#define DPLEN (sizeof(struct dpkey)/sizeof(int))
1179#define DISLEN (sizeof(struct disprm)/sizeof(int))
1185 int type,
int i,
double f);
1216 const double pixsamp[],
int *nsamp,
1217 double maxdis[],
double *maxtot,
1218 double avgdis[],
double *avgtot,
1219 double rmsdis[],
double *rmstot);
int disp2x(struct disprm *dis, const double rawcrd[], double discrd[])
Apply distortion function.
double dpkeyd(const struct dpkey *dp)
Get the data value in a dpkey struct as double.
#define DISP2X_ARGS
Definition dis.h:1108
dis_errmsg_enum
Definition dis.h:1098
@ DISERR_MEMORY
Definition dis.h:1101
@ DISERR_NULL_POINTER
Definition dis.h:1100
@ DISERR_DEDISTORT
Definition dis.h:1104
@ DISERR_BAD_PARAM
Definition dis.h:1102
@ DISERR_DISTORT
Definition dis.h:1103
@ DISERR_SUCCESS
Definition dis.h:1099
int disinit(int alloc, int naxis, struct disprm *dis, int ndpmax)
Default constructor for the disprm struct.
int discpy(int alloc, const struct disprm *dissrc, struct disprm *disdst)
Copy routine for the disprm struct.
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.
disenq_enum
Definition dis.h:1090
@ DISENQ_MEM
Definition dis.h:1091
@ DISENQ_SET
Definition dis.h:1092
@ DISENQ_BYP
Definition dis.h:1093
int dpkeyi(const struct dpkey *dp)
Get the data value in a dpkey struct as int.
int dissize(const struct disprm *dis, int sizes[2])
Compute the size of a disprm struct.
const char * dis_errmsg[]
Status return messages.
int disfree(struct disprm *dis)
Destructor for the disprm struct.
int disini(int alloc, int naxis, struct disprm *dis)
Default constructor for the disprm struct.
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.
int disndp(int n)
Memory allocation for DPja and DQia.
int dishdo(struct disprm *dis)
write FITS headers using TPD.
int disx2p(struct disprm *dis, const double discrd[], double rawcrd[])
Apply de-distortion function.
#define DISX2P_ARGS
Definition dis.h:1112
int disperr(const struct disprm *dis, const char *prefix)
Print error messages from a disprm struct.
int disset(struct disprm *dis)
Setup routine for the disprm struct.
int disenq(const struct disprm *dis, int enquiry)
enquire about the state of a disprm struct.
int disprt(const struct disprm *dis)
Print routine for the disprm struct.
Distortion parameters.
Definition dis.h:1131
double totdis
Definition dis.h:1144
int ** iparm
Definition dis.h:1156
double ** scale
Definition dis.h:1155
int naxis
Definition dis.h:1138
struct wcserr * err
Definition dis.h:1165
char(* dtype)[72]
Definition dis.h:1140
int flag
Definition dis.h:1134
double * m_maxdis
Definition dis.h:1175
int i_naxis
Definition dis.h:1160
int(** disp2x)(DISP2X_ARGS)
Definition dis.h:1169
int ndpmax
Definition dis.h:1142
int m_naxis
Definition dis.h:1172
struct dpkey * dp
Definition dis.h:1143
int ndis
Definition dis.h:1161
int * docorr
Definition dis.h:1149
double ** offset
Definition dis.h:1154
char(* m_dtype)[72]
Definition dis.h:1173
double ** dparm
Definition dis.h:1158
int ** axmap
Definition dis.h:1153
struct dpkey * m_dp
Definition dis.h:1174
double * maxdis
Definition dis.h:1145
int ndp
Definition dis.h:1141
int(** disx2p)(DISX2P_ARGS)
Definition dis.h:1170
int * Nhat
Definition dis.h:1150
int m_flag
Definition dis.h:1172
Store for DPja and DQia keyvalues.
Definition dis.h:1117
int i
Definition dis.h:1122
char field[72]
Definition dis.h:1118
int type
Definition dis.h:1120
int j
Definition dis.h:1119
double f
Definition dis.h:1123
Error message handling.
Definition wcserr.h:243