Skip to content

Allow spectral-cube as an input type #565

@keflavich

Description

@keflavich

I tried running reproject_to_hips with a SpectralCube input and that failed.

The next obvious thing, reproject_to_hips(cube.hdu) (which is a bit potentially-dangerous because of loading TB into memory...) also failed with

ValueError: The input (VRAD) and output (FREQ-LOG) spectral coordinate types are not equivalent.

reproject_to_hips(cube.with_spectral_unit(u.GHz).hdu, ...) worked.

It would be better if we supported direct operation on spectral_cubes (and nddata cubes), but we should at least document the above limitations (apparently velocity frame isn't allowed output? or I need to specify it but I didn't immediately see how)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions