diff --git a/changes/8913.cube_build.rst b/changes/8913.cube_build.rst new file mode 100644 index 0000000000..2fd2ff006f --- /dev/null +++ b/changes/8913.cube_build.rst @@ -0,0 +1 @@ +Tweak the cube_build spaxel debugging option to provide filename info and match outputs to the stated ordering. diff --git a/jwst/cube_build/ifu_cube.py b/jwst/cube_build/ifu_cube.py index 3512e03542..70d0ee4bad 100644 --- a/jwst/cube_build/ifu_cube.py +++ b/jwst/cube_build/ifu_cube.py @@ -679,6 +679,8 @@ def build_ifucube(self): linear = 0 if self.linear_wavelength: linear = 1 + if debug_cube_index >= 0: + log.info(f"Input filename: {input_model.meta.filename}") result = cube_wrapper_driz(instrument, flag_dq_plane, start_region, end_region, self.overlap_partial, self.overlap_full, diff --git a/jwst/cube_build/src/cube_match_sky_driz.c b/jwst/cube_build/src/cube_match_sky_driz.c index a23e8aae1b..02e509f4c4 100644 --- a/jwst/cube_build/src/cube_match_sky_driz.c +++ b/jwst/cube_build/src/cube_match_sky_driz.c @@ -287,7 +287,7 @@ int match_driz(double *xc, double *yc, double *zc, // Keep print statement in code - used for debugging if (index_cube == debug_cube_index){ printf("spaxel, flux, x, y [count starting at 0] %i %f %f %f \n ", index_cube, - x_det[k], y_det[k], flux[k]); + flux[k], x_det[k], y_det[k]); }