Closed nrsegovia closed 1 month ago
Hi Nicolás, thank you for submitting your issue and for testing the pipeline. We have only tested the pipeline with classical and nod and shuffle data, so we expect to have issues with the data observed in the stellar mode. In principle, the 1x2 image size should not be a problem, but the half-frame configuration will certainly raise errors. This feedback is very valuable for us as this is something we have to test. I'll let you know how to proceed ASAP. Best, Cristina.
Hi Cristina,
Thanks for the information 👍 I looked a bit more into this issue, and I think I found the problem. The stellar mode makes use of the "middle" of the CCD only, as pointed out by the header: DETSEC = '[1:4202,1029:3084]' / Region of detector (native pixels)
. This is some sort of half frame, but not the one that the pipeline expects at the top (or bottom, depending on the reference frame) of the CCD... so I would think that this needs a "third" category aside from full or half frame.
The change I did to my version of the pipeline allowed it to proceed by identifying my files as half frames, but everything breaks once the slits come into play. I believe I tracked this problem down to the half frame configuration selecting the first 6 slits from the reference list (which currently creates the empty arrays I mentioned in my previous post), while I think that in my case I would need the ones in the middle (6-12 using 0-based indexes). I tried changing this by hand, but then I had other issues with interpolating functions and array slicing, which I have yet to analyze.
Hi @nrsegovia, we've been working on this issue which turned out to be quite complex (and not previously implemented in the pipeline... just partially). We are about to merge the changes into the automation
branch probably today or tomorrow, so it'll be released for everyone. In the meantime, if you have some time, it'd be good if you give it a try with your data and send us any issues. To do so, please clone/install the repo from the cml_stellar
branch and run the pipeline as always.
Thank you and sorry that it took us quite a while to solve it.
Thanks for this new update! I will try to run some tests and let you know what I get, though perhaps I'm not able to finish by tomorrow. Still, I can always re-open the issue (or create a new one) if anything does not work as intended.
Hi @nrsegovia, after quite a few tests and debugging, the stellar mode is now working in both the blue and red arms so it is available in the automation branch. I'll close this issue, but if something comes up, please let us know. Thank you for your great feedback!
Hi, I have recently acquired some WiFeS data and tried to process it with the pipeline. However, I get the following error:
Looking into the code I have realized that the check for half-frames leads the script to think that my file should have a (2048,4096) shape, though it does not. This makes me wonder if the current pipeline (automation branch) is capable of reducing Stellar 1x2 images, as I might be using the wrong tool for this task. Any comments would be greatly appreciated.
As a side note, out of curiosity I tried to bypass the half-frame check by checking the y-axis range as indicated by f[data_hdu].header['DETSEC']. This allows the pipeline to proceed, but eventually hits another wall:
The first few data units seem to be empty, for some reason.