55#define MODULE_ID "XSH_CUBE_EXT_SAVE"
73 cpl_imagelist* iml=NULL;
83 cpl_propertylist* plist=NULL;
87 xsh_msg(
"generate several imagelist and save them in multi-ext file");
89 iml=cpl_imagelist_new();
91 ima=cpl_image_new(sx,sy,CPL_TYPE_FLOAT);
92 pi=cpl_image_get_data_float(ima);
97 cpl_imagelist_set(iml,ima,j);
100 check(cpl_imagelist_save(iml,
"cube.fits", CPL_BPP_IEEE_FLOAT,plist,
103 check(cpl_imagelist_save(iml,
"cube.fits", CPL_BPP_IEEE_FLOAT,plist,
114 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_propertylist(cpl_propertylist **p)
Deallocate a property list and set the pointer to NULL.
void xsh_free_imagelist(cpl_imagelist **i)
Deallocate an image list and set the pointer to NULL.
#define TESTS_CLEAN_WORKSPACE(DRL_ID)
#define TESTS_INIT_WORKSPACE(DRL_ID)
#define TESTS_INIT(DRL_ID)