Skip to content

SPICE_DATA::return_extension_index

Martin Wiesmann edited this page Aug 27, 2024 · 2 revisions

Source code: SPICE_DATA::return_extension_index

Class: SPICE_DATA

Description

This method Checks whether a given extension index or extension name is valid, and returns the extension index. If it is invalid -1 is returned.

Syntax

extension_index = spice_object->return_extension_index( extension [, /check_window_index] )

Return Value

Integer, -1 if index or name is invalid, the index if input is valid.

Arguments

extension

The index or the name of the extension to be checked

Keywords

check_window_index

If set, then the given index or name is only correct if it belongs to an OBS_HDU.

Clone this wiki locally