Renaming files from spiral to snake matrix

Any suggestion on how to rename images captured using spiral scan to snake?

Yes, @dgrosen that is an interesting problem. First you need to do it in a program that can understand the original filenames so that it knows what to rename. I personally would use Matlab as I know my way round it better than Python, but simple renaming could be done in a batch file.
If you have many scans that are the same size and shape, then just a look-up table would work and a batch file would be the easiest way to do it. You know exactly what the files are called, and you know exactly what the files need to be called, so it is just a list of rename commands. You would need the files to be more than just the number at some point in the process, otherwise it all gets very confusing.

1 Like