Open larnoldgithub opened 1 year ago
Thanks Eder, I finally could have the polar routine working.
1/ edit your /apero/apero-drs/apero/core/instruments/spirou/default_constants.py 2/ go near the end of the file, line 2723 and change POLAR_IRAF_CONT_FUNC_ORDER.value = 20 to POLAR_IRAF_CONT_FUNC_ORDER.value = 15
It worked also with 10 on my test polar sequence:
apero_pol_spirou.py 23BQ01-Aug09 --exposures 2890757o_pp_e2dsff_tcorr_AB.fits 2890758o_pp_e2dsff_tcorr_AB.fits 2890759o_pp_e2dsff_tcorr_AB.fits 2890760o_pp_e2dsff_tcorr_AB.fits --crunfile=run_CCF_to_end.ini --program=POLAR[11892] --recipe_kind=polar-tcorr --shortname=POLAR --parallel=True
@edermartioli @CharlesCadieux @clairem789
Just a note:
user_constants.ini
filerun.ini
file and run that with apero_processing
Occuring when the routine deals with the continuum analysis:
it's TOI4616
@edermartioli wrote in an email: Indeed this crash should not occur. I've had this error in the past, and it is related to the interpolation inside the continuum detection routine. This is a routine that I got from J. Morin that imitates IRAF's task to detect continuum. Anyway, there is a way to possibly fix it without changing the codes. You may change the parameters, which I'm not sure where is located in APERO as Neil imported my code and refactored it to fit APERO framework. Below is an extract of how these parameters look like in my codes. You may change the continuum fit function from 'spline3' to 'polynomial' and then you may also change the "ORDER" from a high value (e.g. 50 -> number of knots for spline) to something like 8 if you're using polynomial. By the way, if you just decrease the number of knots and keep spline it may also get rid of the error. These errors I believe is when the interpolation splits the spectrum into several chunks using the knots and some spectral ranges are empty, so we end up with an error as one cannot define the interpolation within that range.
I hope that helps.
cheers, Eder