File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -186,8 +186,9 @@ def reproject_and_coadd(
186186 xc = np .array ([- 0.5 , nx - 0.5 , nx - 0.5 , - 0.5 ])
187187 yc = np .array ([- 0.5 , - 0.5 , ny - 0.5 , ny - 0.5 ])
188188 zc = np .array ([- 0.5 , nz - 0.5 ])
189- xc_out , yc_out = wcs_out .celestial .world_to_pixel (wcs_in .celestial .pixel_to_world (xc , yc ))
190- zc_out = wcs_out .spectral .world_to_pixel (wcs_in .spectral .pixel_to_world (zc ))
189+ # TODO: figure out what to do here if the low_level_wcs doesn't support subsetting
190+ xc_out , yc_out = wcs_out .low_level_wcs .celestial .world_to_pixel (wcs_in .celestial .pixel_to_world (xc , yc ))
191+ zc_out = wcs_out .low_level_wcs .spectral .world_to_pixel (wcs_in .spectral .pixel_to_world (zc ))
191192 shape_out_cel = shape_out [1 :]
192193
193194 # Determine the cutout parameters
You can’t perform that action at this time.
0 commit comments