Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for standard healpix fits files #187

Open
bhazelton opened this issue Jul 3, 2017 · 0 comments
Open

Add support for standard healpix fits files #187

bhazelton opened this issue Jul 3, 2017 · 0 comments

Comments

@bhazelton
Copy link
Member

The standard healpix fits file format uses a binary table which by definition in FITS can only have 2 axes. What is currently implemented in beamfits.py uses image-type extensions which can have as many axes as needed.

Healpix files currently can contain all 4 polarizations only if they are ‘full sky’ images. If they are ‘cut sky’ images — meaning you only have some of the pixels, you need a column for the pixel index. And since healpix fits binary tables can only have up to 4 columns, that means you have to put each polarization in it’s own file.

So to convert to standard healpix FITS, each file or HDU can only be for a single frequency, pol and vector index. This can be accomplished with an export function in beamfits that uses select to break out parts of the beam and then put them in separate HDUs or files. Then to read them in we can use the add method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant