EranOfek / AstroPack

Astronomy & Astrophysics Software Pacakge
Other
16 stars 4 forks source link

D.prepdark does not create the calib folder #133

Closed noralinn closed 1 year ago

noralinn commented 1 year ago

The pipeline fails if the calib folder does not yet exist:

>> D = pipeline.DemonLAST;
>> D.prepMasterDark
Error using fitsiolib
CFITSIO library error (105): couldn't create the named file

Error in matlab.io.fits.createFile (line 34)
fptr = fitsiolib('create_file',filename);

Error in FITS.write (line 1007)
                Fptr = matlab.io.fits.createFile(FileName);

Error in AstroImage/write1 (line 1180)
                                    FITS.write(Obj.(DataProp), Name,
                                    'Header',HeaderDataToWrite,...

Error in pipeline.DemonLAST/prepMasterDark (line 850)
                        write1(CI.Bias, FileN{1}, 'Image');

Copying focus images also fails, if there are not science images for the same day, because the subdir is not created.

EranOfek commented 1 year ago

fixed but not tested