I've pushed a commit which addresses some of these issues but haven't implemented an explicit example because it really depends on the original h5 data being processed so the example wouldn't work for everyone.

In particular the SUB_ARRAY_POINTING, BEAM, and STOKES are all file dependent.

I do explain that we append a 'STOKES_X_i2f' dataset to the BEAM, which contains recsize and nsig attributes.