1040 #define DISP2X_ARGS int inverse, const int iparm[], const double dparm[], \
1041 int ncrd, const double rawcrd[], double *discrd
1044 #define DISX2P_ARGS int inverse, const int iparm[], const double dparm[], \
1045 int ncrd, const double discrd[], double *rawcrd
1060 #define DPLEN (sizeof(struct dpkey)/sizeof(int))
1113 #define DISLEN (sizeof(struct disprm)/sizeof(int))
1119 int type,
int i,
double f);
1146 const double pixsamp[],
int *nsamp,
1147 double maxdis[],
double *maxtot,
1148 double avgdis[],
double *avgtot,
1149 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:1040
dis_errmsg_enum
Definition: dis.h:1030
@ DISERR_MEMORY
Definition: dis.h:1033
@ DISERR_NULL_POINTER
Definition: dis.h:1032
@ DISERR_DEDISTORT
Definition: dis.h:1036
@ DISERR_BAD_PARAM
Definition: dis.h:1034
@ DISERR_DISTORT
Definition: dis.h:1035
@ DISERR_SUCCESS
Definition: dis.h:1031
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.
int dpkeyi(const struct dpkey *dp)
Get the data value in a dpkey struct as int.
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:1044
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 disprt(const struct disprm *dis)
Print routine for the disprm struct.
Distortion parameters.
Definition: dis.h:1063
double totdis
Definition: dis.h:1077
int ** iparm
Definition: dis.h:1088
double ** scale
Definition: dis.h:1087
int naxis
Definition: dis.h:1070
struct wcserr * err
Definition: dis.h:1097
char(* dtype)[72]
Definition: dis.h:1072
int flag
Definition: dis.h:1066
double * m_maxdis
Definition: dis.h:1109
int i_naxis
Definition: dis.h:1092
int(** disp2x)(DISP2X_ARGS)
Definition: dis.h:1101
int ndpmax
Definition: dis.h:1074
int m_naxis
Definition: dis.h:1106
struct dpkey * dp
Definition: dis.h:1075
double * tmpmem
Definition: dis.h:1104
int ndis
Definition: dis.h:1093
int * docorr
Definition: dis.h:1081
double ** offset
Definition: dis.h:1086
char(* m_dtype)[72]
Definition: dis.h:1107
double ** dparm
Definition: dis.h:1090
int ** axmap
Definition: dis.h:1085
struct dpkey * m_dp
Definition: dis.h:1108
double * maxdis
Definition: dis.h:1076
int ndp
Definition: dis.h:1073
int(** disx2p)(DISX2P_ARGS)
Definition: dis.h:1102
int * Nhat
Definition: dis.h:1082
int m_flag
Definition: dis.h:1106
Store for DPja and DQia keyvalues.
Definition: dis.h:1049
int i
Definition: dis.h:1054
char field[72]
Definition: dis.h:1050
int type
Definition: dis.h:1052
int j
Definition: dis.h:1051
double f
Definition: dis.h:1055
Error message handling.
Definition: wcserr.h:220