Files
tenmon/scripts/convert to XISF
T
2024-06-16 00:14:51 +02:00

17 lines
340 B
Plaintext

if(files.length == 0)
{
core.files("No files");
throw "";
}
let compression = {"compressionType": "zstd+sh"};
for(file of files)
{
if(file.suffix() == "fits" || file.suffix() == "fit")
{
core.log("Converting " + file.fileName());
convertedFiles.push(file.convertAsync(file.relativeFilePath(), "XISF", compression));
}
}