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
the unit 'nmgy' could not be saved in native FITS format #72
Comments
Actually, I've decided to abandon the |
Lots of relevant discussion in astropy/astropy#7279, legacysurvey/legacysurvey#158, and elsewhere. |
When you say a warning is issued, does it still physically write the unit to the file? Also note |
No, astropy issues the warning and doesn't write any units. However, reading through some of the tickets linked above, I ended up writing the unit as a custom 'nanomaggies' unit and that works without any warnings.
Well, astropy issues this warning, so they'll need to clean that up. @weaverba137 @sbailey if either of you have cycles to review the headers of the files written by #69 (and the data model, if you're inspired), I would be grateful as I'm getting close to launching the fits to Fuji & Guadalupe. These catalogs will end up as an EDR VAC, so it makes sense to have the files be reviewed by the Data Team (plus the fitting is expensive, so I'd prefer not to have to redo it too many times!). The two main files / file types (for just 2 objects/spectra) can be found here:
Note that the Please let me know if you identify any issues and remember that in production I'll use a consistent set of tags between fastspecfit and its dependencies. Thanks! |
@moustakas, I'm saying that |
None of my header cards have this form and never did, even when I was using
But regardless, I'm not using this unit anymore; check out the headers of my files when/if you get a chance. |
I believe that astropy is internally consistent, it's just that the FITS standard for units is different from the astropy standard, so you have to be careful to format for FITS when writing FITS headers.
This isn't obvious. I certainly ran afoul of it when writing units for target files, and some of those therefore have 1 / deg2 for file units (e.g., see the note at the bottom of the data model for the target files). |
#69 propagates units through all the astropy tables using the
QTable
object, but when writing the files in the last step, the following warning is issued. Not sure how to deal with this at the moment but tagging @weaverba137 @geordie666 @dstndstn @sbailey as there's a similar discussion (I think?) going on with the imaging / targeting files.The text was updated successfully, but these errors were encountered: