Skip to content

Commit

Permalink
JP-3788: Tweak spaxel debugging (spacetelescope#8913)
Browse files Browse the repository at this point in the history
  • Loading branch information
melanieclarke authored Oct 23, 2024
2 parents 9bb48c3 + 811a3c4 commit 033e88b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/8913.cube_build.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Tweak the cube_build spaxel debugging option to provide filename info and match outputs to the stated ordering.
2 changes: 2 additions & 0 deletions jwst/cube_build/ifu_cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion jwst/cube_build/src/cube_match_sky_driz.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}


Expand Down

0 comments on commit 033e88b

Please sign in to comment.