Organising FITS data

Over my years of teaching undergraduate astronomy labs I’ve seen many different ways that students save observational data, well its all FITS but the filename and extensions can vary. I’m intending to plough through the whole data archive of the University of Birmingham Observatory extracting spectra and photometry on the cleanish data. A simple solution when you get back from observing is to tell the students to simply rename the files, however, the archive (since I’ve been lazy when I made it) was just a compressed archive of all the raw data from the year (well source by source with all necessary calibration files). Of course I’m way too lazy to rename everything manually and so I’d like a little script todo this and to determine (since sometimes the students/staff don’t call bias frames bias1.fit etc or dark frames dark – I swear this is so illogical and I wonder how many hours can be wasted) what type of frame the observation was. This is actually pretty trivial todo using bash and grep and eventually I will building this into [pyspec]/[pyphot]… but for now here is the script: [organise.sh]

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: