I have significantly modified the FITS_key that copy files based on FITS keywords, it was written by of Nicolay (I hope he doesn't mind).
FITS File manager support generating a file path from the FITS keyword in a flexible way (using a pattern). The file path can include commonly used FITS keywords, parts of the original file name and a count which can be based on selected elements (typically the target directory, but could be the filter or other variables).
The script is attached. This scripts move and copy files, it is potentially dangerous, use at your own risk (however I use it on my machine).
Preferably use load/saveas so that the orignal name of the file is saved as a fits keyword.
Thanks to Nicolay for the original contribution. All bugs are mine.
There is an Help included (button at bottom right)
[EDITED Feb 10, 2013 - Version 1.0 attached for PI 1.7, should be part of an update in version 1.8]
-- bitli
FITS File manager support generating a file path from the FITS keyword in a flexible way (using a pattern). The file path can include commonly used FITS keywords, parts of the original file name and a count which can be based on selected elements (typically the target directory, but could be the filter or other variables).
The script is attached. This scripts move and copy files, it is potentially dangerous, use at your own risk (however I use it on my machine).
Preferably use load/saveas so that the orignal name of the file is saved as a fits keyword.
Thanks to Nicolay for the original contribution. All bugs are mine.
There is an Help included (button at bottom right)
[EDITED Feb 10, 2013 - Version 1.0 attached for PI 1.7, should be part of an update in version 1.8]
-- bitli