Thanks, I'll take a look, but it seems like I'd have to change the format of the files, right? Unfortunately that's not really feasible, since their format is determined by the scientific codes I use -- that's why I was attracted to the idea of using the file name. I can, however, have a go at HDF5 for code that I write myself.