#include #include #include #include #include #define WCSLIB_GETWCSTAB // define this so that we don't try and redefine // wtbarr (this is a problem when using gcc v.4+ #include #include using std::string; void addGaussian(float *array, long *dim, float *pos, float *fwhm, float norm); void write_header_info(fitsfile *fptr); int main() { srandom(37); long *dim = new long[3]; dim[0] = 100; dim[1] = 100; dim[2] = 128; int size = dim[0]*dim[1]*dim[2]; float *array = new float[size]; for(int i=0;i