Keck-DataReductionPipelines / KAI

Keck AO Imaging DRP
https://keck-datareductionpipelines.github.io/KAI/
7 stars 10 forks source link

Error in 'combine' #14

Closed amn3142 closed 2 years ago

amn3142 commented 2 years ago

Running reduce.py, in data.combine:

data.combine(sci_files, 'kp_tdOpen', epoch, field=target,
                 trim=0, weight='strehl', submaps=3, instrument=osiris)

output: File "reduce.py", line 164, in go() File "reduce.py", line 162, in go trim=0, weight='strehl', submaps=3, instrument=osiris) File "/home/anierenberg/repositories/KAI/kai/reduce/data.py", line 706, in combine wave, diffPA, fixDAR=fixDAR, mask=mask, instrument=instrument) File "/home/anierenberg/repositories/KAI/kai/reduce/data.py", line 1135, in combine_drizzle fits_f = fits.open(_tmpfits) .... IOError: [Errno 2] No such file or directory: '/data/anierenberg/OSIRIS_NEW/origDat/raw/OSIRIS/11_1_20/combo/mag11_1_20_0608_kp_tdOpen_tmp.fits'

Verified that there is no "mag11_1_20_0608_kp_tdOpen_tmp.fits'" in that directory.

The issue seems to be that the drizzle output is going to "mag11_1_20_0608_kp.fits' rather than 'mag11_1_20_0608_kp_tdOpen_tmp.fits'

amn3142 commented 2 years ago

Issue was with file name length. Solved by moving to a path with fewer characters.