njcuk9999 / apero-drs

A PipelinE to Reduce Observations - The DRS for SPIRou (CFHT)
MIT License
12 stars 0 forks source link

apero_pol_spirou.py error, example for a SPICE target (0.7.288) #727

Open larnoldgithub opened 11 months ago

larnoldgithub commented 11 months ago

I have a lot of errors like this one below, which is for a SPICE target

I checked the 4 files, they have
QCC_ALL = T EXTSN034= 24

10:24:13.734-  |PROC| ***************************************************************************
10:24:13.746-@!|PROC|W[40-503-00019]: Error found for ID='181487'
10:24:13.756-@!|PROC|   apero_pol_spirou.py 23AQ17-Jul02 --exposures 2882954o_pp_e2dsff_tcorr_AB.fits 2882955o_pp_e2dsff_tcorr_AB.fits 2882956o_pp_e2dsff_tcorr_AB.fits 2882957o_pp_e2dsff_tcorr_AB.fits --crunfile=run_EXTALL_FTFIT2_CCF_products_only.ini --program=POLAR[181487] --recipe_kind=polar-tcorr --shortname=POLAR --parallel=True
10:24:13.775-  |PROC| ***************************************************************************
10:24:13.786-  |PROC|
 E[01-010-00001]: Unhandled error has occurred: Error <class 'ValueError'>

 Traceback (most recent call last):
  File "/apero/apero-drs/apero/core/utils/drs_startup.py", line 433, in run
    llmain = func(recipe, params)
  File "/apero/apero-drs/apero/recipes/spirou/apero_pol_spirou.py", line 158, in __main__
    pprops = gen_pol.calculate_continuum(params, recipe, pprops)
  File "/apero/apero-drs/apero/science/polar/gen_pol.py", line 1447, in calculate_continuum
    contpol = _fit_continuum(params, recipe, wldata, pol,
  File "/apero/apero-drs/apero/science/polar/gen_pol.py", line 2600, in _fit_continuum
    spl = interpolate.splrep(wavemap[mspec], spec[mspec], k=3,
  File "/conda/miniconda3/envs/apero-env/lib/python3.9/site-packages/scipy/interpolate/_fitpack_py.py", line 291, in splrep
    res = _impl.splrep(x, y, w, xb, xe, k, task, s, t, full_output, per, quiet)
  File "/conda/miniconda3/envs/apero-env/lib/python3.9/site-packages/scipy/interpolate/_fitpack_impl.py", line 512, in splrep
    raise _iermess[ier][1](_iermess[ier][0])
 ValueError: Error on input data

10:24:13.906-  |PROC| ***************************************************************************