Isn't this what we have already?  Or do you mean a wrapper, `extract_pvslice_fromfitsfile(fitsfile, path)` ?