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

spiceinit error when processing HRSC images #5223

Closed
hard2namegit opened this issue Jun 9, 2023 · 4 comments · Fixed by #5270
Closed

spiceinit error when processing HRSC images #5223

hard2namegit opened this issue Jun 9, 2023 · 4 comments · Fixed by #5270
Assignees
Labels
bug Something isn't working

Comments

@hard2namegit
Copy link

**ISIS version(s) affected: 7.2.0

Description
When I used 'spiceinit' to initialize the HRSC images, the software reported an error to me: "The Server was unable to initialize the cube.The error reported was: Unable to initialize camera model." Spice data has 'use the isis spice web service' checked. CK has 'reconstructed pointing kernels' and 'predicted point kernels' checked. Strangely enough when I processed LROC images there was no such error.

How to reproduce
See Description.

@hard2namegit hard2namegit added the bug Something isn't working label Jun 9, 2023
@acpaquette
Copy link
Collaborator

Hello! Could you provide the HRSC image you were running spiceinit against?

@hard2namegit
Copy link
Author

Hello! Could you provide the HRSC image you were running spiceinit against?

I have tried to process about ten HRSC images, such as HJ029_0000_P12.IMG. So I am considering if this is some problems with SPICE's support for HRSC, after all, there is no such error with LROC images.

@lwellerastro
Copy link
Contributor

Hi @acpaquette, I downloaded a tested the above mentioned file to my work area under Isis3Tests/Spiceinit/MEX/. Spiceinit runs successfully pointing to the local and efs data areas.

When I tried spiceinit from=HJ029_0000_P12.cub web=true I got the following error:

  Group = Error
    Program = spiceinit
    Code    = 1
    Message = "The Spice Server was unable to initialize the cube.  The error
               reported was: Unable to initialize camera model"
    File    = SpiceClient.cpp
    Line    = 588
  End_Group

All tests were under isis8.0.0-RC1.

@amystamile-usgs amystamile-usgs self-assigned this Aug 15, 2023
@amystamile-usgs
Copy link
Contributor

amystamile-usgs commented Aug 17, 2023

HRSC is unique in that it requires reading line scan times. To access these times, the camera model must read from the cube's data. When using the spice server (web=true), we have the problem that the spice server only returns the label resulting in the camera model failing.

A solution could be to pass in the times into the label but making this change could cause significant API breaking changes, especially since we are making modifications to the label. A somewhat simple fix is to not using web=true and disabling the use of the spice server for all HRSC images. The only frustrating part of this is having to download the MEX data locally.

We are in the process of changing how the spice server operates and this specific issue would be handled once this implementation is complete. So I am not sure it's worth making any changes to the HRSC label.

Therefore my suggestion would be to download the data locally by running ./downloadIsisData mex $ISISDATA and then run spiceinit from=HJ029_0000_P12.cub. I will also temporarily disable the option to use web=true for HRSC images.

Update: If using GUI, uncheck "Use the ISIS Spice Web Service".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging a pull request may close this issue.

4 participants