Hello folks,
I need your help to write files with the same label as the input files. I calculate the number of characters in the input folder and insert it in the write function, but it doesn’t seem to work. It throws an error after the first execution. Any efficient idea please.
DISK = glob("projects/Rhapsodie/Data/Disk/*","/")
for files in DISK
name = files[31:end-5]
write(FitsFile,"JonesParameters_Synthetic_Star_Gain_$gain-Real_$i-"*name*".fits", mapslices(transpose,J,dims=[1,2]), overwrite=true)
Error :
failed to create new file (already exists?)