Skip to content
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

Shouldn't we always skip the CCF for our telluric/hot stars ? #794

Open
larnoldgithub opened this issue Dec 5, 2024 · 0 comments
Open

Comments

@larnoldgithub
Copy link
Collaborator

larnoldgithub commented Dec 5, 2024

APERO failed at calculating a CCF for HR875, one of our featureless hot stars.
Why does not APERO skip Q58 stars when it comes to CCF ?

(note: this is with the 291, but the folder is still named apero/apero-drs-v0.7.290/)

00:27:48.811- |CCF[00599]| Processing CCF fiber AB for Order 42
00:27:48.893- |CCF[00599]| Processing CCF fiber AB for Order 43
00:27:48.994- |CCF[00599]| Processing CCF fiber AB for Order 44
00:27:49.093- |CCF[00599]| Processing CCF fiber AB for Order 45
00:27:49.196- |CCF[00599]| Processing CCF fiber AB for Order 46
00:27:49.288- |CCF[00599]| Processing CCF fiber AB for Order 47
00:27:49.368- |CCF[00599]| Processing CCF fiber AB for Order 48
00:27:49.455-!!|CCF[00599]| E[01-010-00001]: Unhandled error has occurred: Error <class 'IndexError'>
00:27:49.455-!!|CCF[00599]|
00:27:49.455-!!|CCF[00599]| Traceback (most recent call last):
00:27:49.456-!!|CCF[00599]| File "/apero/apero-drs-v0.7.290/apero/core/utils/drs_startup.py", line 439, in run
00:27:49.456-!!|CCF[00599]| llmain = func(recipe, params)
00:27:49.456-!!|CCF[00599]| File "/apero/apero-drs-v0.7.290/bin/apero_ccf_spirou.py", line 215, in main
00:27:49.456-!!|CCF[00599]| rv_props1 = velocity.compute_ccf_science(params, recipe, *cargs)
00:27:49.456-!!|CCF[00599]| File "/apero/apero-drs-v0.7.290/apero/science/velocity/gen_vel.py", line 787, in compute_ccf_science
00:27:49.457-!!|CCF[00599]| props = ccf_calculation_stack(params, props, fit_type, fit_params,
00:27:49.457-!!|CCF[00599]| File "/apero/apero-drs-v0.7.290/apero/science/velocity/gen_vel.py", line 1241, in ccf_calculation_stack
00:27:49.457-!!|CCF[00599]| bisspan = bisector(params, props['RV_CCF'], ccf_stack_norm,
00:27:49.457-!!|CCF[00599]| File "/apero/apero-drs-v0.7.290/apero/science/velocity/gen_vel.py", line 1559, in bisector
00:27:49.457-!!|CCF[00599]| span_top = bisector_cut(rv, ccf2, bs_cut_top)
00:27:49.458-!!|CCF[00599]| File "/apero/apero-drs-v0.7.290/apero/science/velocity/gen_vel.py", line 1578, in bisector_cut
00:27:49.458-!!|CCF[00599]| lims1 = np.where(yy > cut)[0][[0, -1]]
00:27:49.458-!!|CCF[00599]| IndexError: index 0 is out of bounds for axis 0 with size 0
00:27:49.458-!!|CCF[00599]|
00:27:49.661-|CCF[00599]| ***************************************************************************
00:27:49.673-@!|CCF[00599]| W[40-003-00005]: Recipe apero_ccf_spirou has NOT been successfully completed
00:27:49.673-@!|CCF[00599]| (7.669 seconds)
00:27:49.692-
|CCF[00599]| ***************************************************************************

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant