Skip to content

Improve WCS handling when slicing/extracting regions #919

@rosteen

Description

@rosteen

As of #918, slicing the spectral axis of a Spectrum1D will drop the existing WCS and recreate a fresh lookup table GWCS from the new spectral axis. It seems like it would be better to propagate any spatial components of the existing WCS for a multi-dimensional Spectrum1D. Additionally, for spatial slicing it would be nice to properly handle any spatial components of the WCS so that the resulting Spectrum1D has a WCS with as much information as the original. I'm not sure, but NDCube may handle this better than we currently do here for at least spatial dimensions - I'll have to check. It may be that we're overriding something useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    data objectsCore data objects like Spectrum1D or SpectralCollectionenhancementmanipulationSpectral manipulation tools

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions