-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
util_normflat missing one of the orders with latest ESO cr2res pipeline #17
Comments
It seems the problem is at the level of In [9]: pipeline.util_extract(calib_type='flat', verbose=False, create_sof=True)
---------------------
Extract FLAT spectrum
---------------------
EsoRex recipe: cr2res_util_extract
Calibration type: flat
Verbose: False
Create SOF: True
Creating SOF file:
- calib/util_calib_flat/cr2res_util_calib_calibrated_collapsed.fits UTIL_CALIB
- calib/util_slit_curv/cr2res_util_calib_calibrated_collapsed_tw_tw.fits UTIL_SLIT_CURV_TW
Creating configuration file: config/util_extract_flat.rc [DONE]
Running EsoRex...[ ERROR ] cr2res_util_extract: Extraction outside detector edges impossible
[ ERROR ] cr2res_util_extract: Cannot extract order 9, trace 1
[ ERROR ] cr2res_util_extract: Extraction outside detector edges impossible
[ ERROR ] cr2res_util_extract: Cannot extract order 9, trace 1
[ ERROR ] cr2res_util_extract: Extraction outside detector edges impossible
[ ERROR ] cr2res_util_extract: Cannot extract order 9, trace 1
[DONE]
Output files:
- calib/util_extract_flat/cr2res_util_calib_calibrated_collapsed_extr1D.fits UTIL_EXTRACT_1D
- calib/util_extract_flat/cr2res_util_calib_calibrated_collapsed_extrSlitFu.fits UTIL_SLIT_FUNC
- calib/util_extract_flat/cr2res_util_calib_calibrated_collapsed_extrModel.fits UTIL_SLIT_MODEL |
I managed to make it work by changing the
I think the current behaviour of the ESO pipeline is not appropriate for the top order on the CRIRES detectors, which is always cropped. For that order the extraction should not fail with the default
@tomasstolker tell me what you prefer. I can make the implementation and create a pull request. |
Thanks for finding a solution! The This seems indeed a bug in the EsoRex recipe that was introduced recently since it was not an issue in earlier versions. Maybe mentioning this solution in the docstring and/or documentation might be sufficient until it is fixed in EsoRex. |
I have created a ticket on the ESO helpdesk. Let's hope they implement a fix rapidly. |
The latest version of the cr2res pipeline misses the top order in the
util_normflat
recipe with the default parameters:I ran again the pipeline on old calibrations (November 2023) and the same problem occurs, which is why I think it comes from the pipeline. I guess the problem can be easily corrected with some changes in the default parameters of the recipe, but I have not yet had the time to look into it. I create this ticket to keep track of the problem.
The text was updated successfully, but these errors were encountered: