[hdf5tomoscan] convert to static method for re-usability

3 jobs for compacted_projs in 2 minutes (queued for 1 second)