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

fix AnalyticOptic.to_fits() for complex type #153

Open
mperrin opened this issue Feb 10, 2016 · 0 comments
Open

fix AnalyticOptic.to_fits() for complex type #153

mperrin opened this issue Feb 10, 2016 · 0 comments

Comments

@mperrin
Copy link
Owner

mperrin commented Feb 10, 2016

Can't store complex numbers in FITS files natively so the following fails.

optic = optics.ThinLens(radius=1)
fitsfile = optic.to_fits(npix=512, what='complex')

Fix should probably be to pull out the real and imaginary parts, and save them as 2 slices of a data cube, with appropriate FITS headers to indicate such.

Leaving this for later, not release 0.4.1 immanently. Low priority.

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