Skip to content

Spectrum's iterator with null values #29

@jortiz12

Description

@jortiz12

Dear MPDAF community,

I´m having problems when using the various "iterators" describe in the Interface for spectra, images and cubes section.

Making use of a datacube (edge-on galaxy IC 1533, already reduced by S. Comeron), whose white-image is shown below
imagen

, the loops using the spectrum's iterator (for instance) fails because some of the spaxels have no flux, as shown in figure above (I think). This is code from the Cube_object section (apologies but can´t insert in code format),
imagen

And this is the error I get,

imagen

Any quick workaround to get around this issue? I face this issue in other parts of the tutorial where iterators are used too.

Needless to say, many thanks in advance.

Kind Regards,
Jose

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