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
Writing Quantity to FITS file #9197
Comments
Trying to trace this a bit, I see that I think it would not be too difficult to solve: just adjust Alternatively, since |
Is there any reason that you don't use I'm not exactly sure if we should support quantities (or units) in |
@MSeifert04 - nothing beats |
FITS is already complicated enough as is. If a higher level API (like |
Unfortunately we don't actually have FITS readers/writers for plain NDData objects (yet), but we really should add some! Another thing we could do here that would work in general would be in |
Ah yeah, they are only implemented on
I think that we duck-type on the |
Hm, I had a PR (#4799) trying to add some reader/writer for FITS. However it probably should work if we associate the CCDData reader/writer with the NDIOMixin. 😄 |
I agree with |
I think it would make sense to be able to write directly a quantity object with |
I often encounter the following issue:
and I was wondering whether it might make sense to actually allow this to work, and automatically set
BUNIT
in the FITS header based on the quantity's unit? (emitting a warning ifheader
already defines a unit that gets overwritten).The text was updated successfully, but these errors were encountered: