SPICE_OBJECT - ITA-Solar/solo-spice-ql GitHub Wiki
Source code: spice_object.pro
Description
This function returns a SPICE_DATA or a SPICE_DATA_L3 object, depending on the input. If the input is a string, the function assumes that the input is a path to a SPICE FITS file, and tries to return either a SPICE_DATA or a SPICE_DATA_L3 object. If input is not a string, the function checks whether the input is one of these two objects, the result of this check is returned in IS_SPICE. The input is returned unaltered.
Syntax
object = spice_object(input [, is_spice=is_spice, object_created=object_created])
Return value
This function returns a SPICE_DATA or SPICE_DATA_L3 object.
Arguments
input
The name and path of a SPICE file (level 2 or 3) or a SPICE_DATA or a SPICE_DATA_L3 object.
Optional Output
is_spice
This output is 2 (or 3) if 'input' is a string and this function creates the SPICE_DATA(_L3) object, or is 2 (or 3) if 'input' is an object of type SPICE_DATA(_L3), 0 otherwise.
object_created
This output is 1 if 'input' is a string and this function creates a SPICE_DATA(_L3) object, 0 otherwise.
Keywords
quiet
If set, then warnings are suppressed.