Download (filesorter.gz)
## Written by Leonard Burtscher (burtscher@mpia.de)
## 17 Nov 2009, last modified 18 Nov 2009
##
##
## PURPOSE
##
##
## The purpose of this script is to sort MIDI data according to observation
## date. This script extracts the observing date from the the headers of all
## MIDI FITS files in sdir and moves them into subdirectories of the format
## YYYY-MM-DD under a specified archive directory (adir).
##
## For every file moved it will output one line to STDOUT; if a file already
## exists at the target location, the file is not moved and a message is
## displayed