Skip to content

HiRISE geometry cube failure in cam2map #5986

@richardleis

Description

@richardleis

ISIS version(s) affected: 8.0.1

Description

A gap in a recent CK SPICE kernel (mro_sc_psp_260217_260223.bc) requires us to use a predict CK SPICE kernel instead (CK_Pred_26051_26060_sc_20260217220604.bc) with spiceinit for a recent HiRISE observation balance cubes. Geometry processing is nominal except for the COLOR4 balance cube. Our RedGeom processing pipeline fails with the following errors:

0040 stderr: Object = cam2map
0041 stderr:   IsisVersion       = "8.0.1  | 2023-08-25"
0042 stderr:   ProgramVersion    = 2020-03-02
0043 stderr:   ProgramPath       = /opt/usgs/isis/bin
0044 stderr:   ExecutionDateTime = 2026-03-06T12:45:46
0045 stderr:   HostName          = cnode18
0046 stderr:   UserName          = hiroc
0047 stderr:   Description       = "Convert camera image to a map projection"
0048 stderr: 
0049 stderr:   Group = UserParameters
0050 stderr:     FROM          = /tmp/ESP_091769_1330_COLOR4.input.cnode18:2872016.cub
0051 stderr:     MAP           = /HiRISE/Data/RedGeom/ESP/ORB_091700_091799/ESP_091769_133-
0052 stderr:                     0/ESP_091769_1330.map.pvl
0053 stderr:     TO            = /tmp/ESP_091769_1330_COLOR4.output.cnode18:2872016.cub
0054 stderr:     MATCHMAP      = false
0055 stderr:     PIXRES        = MAP
0056 stderr:     DEFAULTRANGE  = MINIMIZE
0057 stderr:     LONSEAM       = AUTO
0058 stderr:     INTERP        = CUBICCONVOLUTION
0059 stderr:     WARPALGORITHM = AUTOMATIC
0060 stderr:   End_Group
0061 stderr: 
0062 stderr:   Group = Error
0063 stderr:     Program = cam2map
0064 stderr:     Code    = 1
0065 stderr:     Message = "Unable to initialize camera model in Camera Factory"
0066 stderr:     File    = CameraFactory.cpp
0067 stderr:     Line    = 112
0068 stderr:   End_Group
0069 stderr: 
0070 stderr:   Group = Error
0071 stderr:     Program = cam2map
0072 stderr:     Code    = 1
0073 stderr:     Message = "Unable to create CSM camera using CSMState Cube blob"
0074 stderr:     File    = CameraFactory.cpp
0075 stderr:     Line    = 60
0076 stderr:   End_Group
0077 stderr: 
0078 stderr:   Group = Error
0079 stderr:     Program = cam2map
0080 stderr:     Code    = 1
0081 stderr:     Message = "PVL Keyword [PluginName] does not exist in [Object = String] in
0082 stderr:                file [/tmp/ESP_091769_1330_COLOR4.input.cnode18:2872016.cub]"
0083 stderr:     File    = PvlContainer.cpp
0084 stderr:     Line    = 68
0085 stderr:   End_Group
0086 stderr: End_Object
0087 stderr: End
0088 stderr: *** ERROR *** RedGeom Error returned from ISIS cam2map program: 256

How to reproduce
% RedGeom -f /HiRISE/Data/HiColorNorm/ESP/ORB_091700_091799/ESP_091769_1330/ESP_091769_1330_COLOR4.cub -conf /HiRISE/Configuration/RedGeom/RedGeom.conf -id {processing node and id}

In RedGeom processing, the following command is run but fails with the above error:

% cam2map from=/tmp/ESP_091769_1330_COLOR4.input.{processing node and id}.cub map=/HiRISE/Data/RedGeom/ESP/ORB_091700_091799/ESP_091769_1330/ESP_091769_1330.map.pvl to=/tmp/ESP_091769_1330_COLOR4.output.{processing node and id}.cub PIXRES=MAP LONSEAM=AUTO INTERP=CUBICCONVOLUTION DEFAULTRANGE=MINIMIZE

Possible Solution

Additional context
Here is the label information for Group = Kernels in the COLOR4 balance cube:

Group = Kernels
    NaifIkCode                = -74699
    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,
                                 /HiRISE/Data/NAIF/CK/CK_Pred_26051_26060_sc_2-
                                 0260217220604.bc, $mro/kernels/fk/mro_v16.tf)
    Instrument                = $mro/kernels/ik/mro_hirise_v12.ti
    SpacecraftClock           = $mro/kernels/sclk/MRO_SCLKSCET.00117.65536.tsc
    InstrumentPosition        = (Table, /HiRISE/Data/NAIF/SPK/mro_psp_rec.bsp)
    InstrumentAddendum        = $mro/kernels/iak/hiriseAddendum006.ti
    ShapeModel                = /HiRISE/Data/NAIF/molaDTM/molaMarsPlanetaryRa-
                                dius_HiRISE_v2.cub
    InstrumentPositionQuality = Reconstructed
    InstrumentPointingQuality = Unknown
    CameraVersion             = 1
    Source                    = ale
  End_Group

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions