Closed mm-murphy closed 4 months ago
Ah yes, I believe I know what's going on here. Can you confirm that when you say you're using "rate.fits" files that you're using the Stage 1 products downloaded from MAST, or something equivalent? If so, then yes, this is what's causing the problem. The rate.fits files are averages over all integrations (so its a 2D -- x pixel, y pixel -- file). The step is expecting a TSO (so 3D -- integrations, x pixel, y pixel -- file). The "rateints.fits" files are the ones you would want to use in this case then (again assuming you're getting the Stage 1 products from MAST).
Ah, my mistake! Yes, you're right, and thank you for explaining. When I instead start from the rateints files everything runs smoothly.
Note that this issue is connected to the JOSS review at https://github.com/openjournals/joss-reviews/issues/6898.
Hi, I'm working through Stage 2 reduction in the NIRISS SOSS tutorial notebook. I run into the following error during the background subtraction step:
The
results
that I pass to the background step run method iswhich was output from the flat-fielding step. The background model I pass it is the
background_model = np.load('model_background256.npy')
downloaded from STScI. The preceding Stage 2 steps (Assign WCS, Source Type Determination, Flat Fielding) completed without issue, and I just copy+pasted+ran them as-is in the documentation. The only potential difference I can think of is that, because I'm currently on a laptop with "low" RAM, I'm beginning from stage 2 using rate.fits files rather than redoing Stage 1 in the same run.Do you have an idea of what's happening here? Am I missing something, perhaps cached from Stage 1, that needs to be included in the
results
list being passed to this step? Or anything else?