From 24b693c2c4fdf4b598257c7b5555b070781c9571 Mon Sep 17 00:00:00 2001 From: David Law Date: Wed, 23 Oct 2024 13:36:36 -0400 Subject: [PATCH 1/2] Tweak spaxel debugging --- jwst/cube_build/ifu_cube.py | 2 ++ jwst/cube_build/src/cube_match_sky_driz.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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]); } From 811a3c4fecaafa9b4829c383d0611ee46e09fbc4 Mon Sep 17 00:00:00 2001 From: David Law Date: Wed, 23 Oct 2024 13:39:55 -0400 Subject: [PATCH 2/2] Add change log --- changes/8913.cube_build.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 changes/8913.cube_build.rst 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.