55#define MODULE_ID "XSH_PIX_CONVENTION"
72 cpl_image* small=NULL;
77 cpl_propertylist* plist=NULL;
84 small=cpl_image_new(sx,sy,CPL_TYPE_FLOAT);
85 pi=cpl_image_get_data_float(small);
90 check(plist=cpl_propertylist_new());
91 cpl_propertylist_append_double(plist,
XSH_CRPIX1,1.);
92 cpl_propertylist_append_double(plist,
XSH_CRPIX2,1.);
93 cpl_propertylist_append_double(plist,
XSH_CRVAL1,1.);
94 cpl_propertylist_append_double(plist,
XSH_CRVAL2,1.);
97 cpl_image_save(small,
"small.fits", CPL_BPP_IEEE_FLOAT,plist,
103 if (cpl_error_get_code() != CPL_ERROR_NONE) {
int main(void)
Unit test of XSH_BIN_CONVENTION.
#define xsh_error_dump(level)
#define xsh_msg(...)
Print a message on info level.
void xsh_free_image(cpl_image **i)
Deallocate an image and set the pointer to NULL.
void xsh_free_propertylist(cpl_propertylist **p)
Deallocate a property list and set the pointer to NULL.
#define TESTS_CLEAN_WORKSPACE(DRL_ID)
#define TESTS_INIT_WORKSPACE(DRL_ID)
#define TESTS_INIT(DRL_ID)