Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ale.util.generate_kernels_from_cube does not load a user-specified DSK path of a cube #627

Open
ryodohemmi opened this issue Dec 6, 2024 · 0 comments

Comments

@ryodohemmi
Copy link

ryodohemmi commented Dec 6, 2024

After running ISIS8.3.0's spiceinit with shape and model options, applying ale.util.generate_kernels_from_cube to the output cube gives a list of kernel paths other than the DSK's full path.

>>> test_cub = "h5851_0000_nd3.cub"
>>> kernels = ale.util.generate_kernels_from_cube(test_cub, expand=True)
>>> print(ale.util.write_metakernel_from_kernel_list(kernels))
KPL/MK

Metakernel Generated from a kernel list by Ale

\begindata

PATH_VALUES = (

'/home/hemmi/isisdata/'

)

PATH_SYMBOLS = (

'PREFIX'

)

KERNELS_TO_LOAD = (

'$PREFIXbase/kernels/pck/pck00009.tpc'
'$PREFIXbase/kernels/spk/de430.bsp'
'$PREFIXbase/kernels/spk/mar097.bsp'
'$PREFIXmex/kernels/spk/ORMM__080701000000_00516.BSP'
'$PREFIXmex/kernels/ck/ATNM_MEASURED_080101_090101_V03.BC'
'$PREFIXmex/kernels/fk/MEX_V16.TF'
'$PREFIXmex/kernels/ik/MEX_HRSC_V09.TI'
'$PREFIXbase/kernels/lsk/naif0012.tls'
'$PREFIXmex/kernels/sclk/MEX_241018_STEP.TSC'
'$PREFIXmex/kernels/iak/hrscAddendum004.ti'

)

\begintext

The Input cube's label

  Group = Kernels
    NaifIkCode                = -41220
    LeapSecond                = $base/kernels/lsk/naif0012.tls
    TargetAttitudeShape       = $base/kernels/pck/pck00009.tpc
    TargetPosition            = (Table, $base/kernels/spk/de430.bsp,
                                 $base/kernels/spk/mar097.bsp)
    InstrumentPointing        = (Table,
                                 $mex/kernels/ck/ATNM_MEASURED_080101_090101_V-
                                 03.BC, $mex/kernels/fk/MEX_V16.TF)
    Instrument                = $mex/kernels/ik/MEX_HRSC_V09.TI
    SpacecraftClock           = $mex/kernels/sclk/MEX_241018_STEP.TSC
    InstrumentPosition        = (Table,
                                 $mex/kernels/spk/ORMM__080701000000_00516.BSP)
    InstrumentAddendum        = $mex/kernels/iak/hrscsrcAddendum002.ti
    ShapeModel                = /home/hemmi/src/ernst2023/phobos_g_018m_spc_0-
                                000n00000_v002.bds
    InstrumentPositionQuality = Reconstructed
    InstrumentPointingQuality = Reconstructed
    CameraVersion             = 2
    Source                    = isis
  End_Group
@ryodohemmi ryodohemmi changed the title ale.util.generate_kernels_from_cube does not load a user-defined DSK path ale.util.generate_kernels_from_cube does not load a user-specified DSK path of al cube Dec 6, 2024
@ryodohemmi ryodohemmi changed the title ale.util.generate_kernels_from_cube does not load a user-specified DSK path of al cube ale.util.generate_kernels_from_cube does not load a user-specified DSK path of a cube Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant