Skip to content

Inconsistant expectation for location of header data (vs. other metadata) #1102

@cshanahan1

Description

@cshanahan1

The location of header keywords is inconsistent - wcs1d_fits writer will update the output header with anything in the spectrum.meta dictionary. Tabular fits expects header-specific keys to be in meta.header, as a fits.Header object (and will ignore it if its a dictionary). I'm not sure what the other readers/writers do, but it is inconsistent at least in these. Because there can be other information in meta that might not belong in the fits file header, meta.header is preferable (either as dict or Header?)

(Issue made after discussion with @kelle @havok2063, @tepickering)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions