outdoorboy
Well-known member
Hello,
I have debayered a directory with "Fits files" into a new directory using Process "Debayer". PixInsight has saved the files as xisf files. Now I want to save the files via script into a directory as fits files.
now I get this error
*** Error [000]: C:/Users/franz/Documents/mf_PixInsight/Test.js, line 19: Error: The file is not recognized as a valid PCL swap image file: H:\2022-10-05\1tag\2022-10-05\Saturn\21_14_45/Saturn_00001.fits
QUESTION 1:
how can i load an xisf file and save it as a fits file.
QUESTION 2:
If I create a dialog and read the directory into a TreeBox how can I reach all files then
thanks Franz
I have debayered a directory with "Fits files" into a new directory using Process "Debayer". PixInsight has saved the files as xisf files. Now I want to save the files via script into a directory as fits files.
Code:
var img = new Image();
//img.readRawFile("H:\\2022-10-05\\1tag\\2022-10-05\\Saturn\\Debayer_Biliear\\Saturn_00001_d.xisf");
img.readRawFile("H:\\2022-10-05\\1tag\\2022-10-05\\Saturn\\21_14_45\\Saturn_00001.fits");
now I get this error
*** Error [000]: C:/Users/franz/Documents/mf_PixInsight/Test.js, line 19: Error: The file is not recognized as a valid PCL swap image file: H:\2022-10-05\1tag\2022-10-05\Saturn\21_14_45/Saturn_00001.fits
QUESTION 1:
how can i load an xisf file and save it as a fits file.
QUESTION 2:
If I create a dialog and read the directory into a TreeBox how can I reach all files then
thanks Franz