DOI-USGS / ISIS3

Integrated Software for Imagers and Spectrometers v3. ISIS3 is a digital image processing software package to manipulate imagery collected by current and past NASA and International planetary missions.
https://isis.astrogeology.usgs.gov
Other
200 stars 168 forks source link

Issue with camera model not found #5530

Closed mun-mn closed 4 months ago

mun-mn commented 4 months ago

Hello, I have ingested a mrf image , formed a cube. While processing the spiceinit command, with web=yes, I come across the particular error with ".tls' file not found. I have attached a screenshot of the error as well. please suggest a solution Thanks in advance Screenshot from 2024-06-24 16-13-50

Thanks!

Kelvinrr commented 4 months ago

Sounds like you need to setup the base data area https://github.com/DOI-USGS/ISIS3?tab=readme-ov-file#the-isis-data-area

mun-mn commented 4 months ago

Yes, it has been solved. Thanks !!

But, now I have encountered an issue in the cam2map step. The error is "terminate called after throwing an instance of 'std::invalid_argument' what(): Error in evaluating cubic hermite velocities, values atlower and upper indicies are exactly equal. Aborted (core dumped)"

Note: I used all the default parameters in the cam2map step

Any suggestions/solutions on this one ?

CaoimheMor commented 4 months ago

Good morning, I have encountered a very similar problem, so I thought I'd add it here instead of opening a new and potentially duplicate issue.

Here are the details: The base kernels issue I figured out, however, upon running spiceinit, I also obtain the lines: "ERROR The SPICE server returned incompatible SPICE data. ERROR Unable to initialize camera model in Camera Factory." Note: the first line only appears when requesting spice data from server. The second one does too, however, I've encountered it in different contexts and seems tied to the error. It then continues on with: ERROR Unable to locate latest camera model version number from group [Instrument]. "ERROR Unsupported camera model, unable to find plugin for SpacecraftName [JUNO] with InstrumentId [JNC]. ERROR Unable to find PVL group [JUNO/JNC]." I have a file folder within $ISISDATA/juno containing a CameraPlugin file and some other code files. The contents of the Instrument group are given by junocam2juno, so I imagine they aren't the issue (InstrumentHostID is set to unknown, but even changing that didn't help).

I would appreicate your input on the matter. If the solution is to update the base and/or mission specific files, is there a way of installing only the missing files rather than running the entire installation?

Thank you for your time!

Kelvinrr commented 4 months ago

I would also suggest downloading the mission specific area, it's possible there is a missing file during spiceinit. But if you managed to spiceinit successfully, I imagine you already downloaded the mission specific data.

mun-mn commented 4 months ago

Hello Sir @Kelvinrr I have encountered an issue in the cam2map step. The error is "terminate called after throwing an instance of 'std::invalid_argument' what(): Error in evaluating cubic hermite velocities, values atlower and upper indicies are exactly equal. Aborted (core dumped)"

Note: I used all the default parameters in the cam2map step

Any suggestions/solutions would be appreciated. Thank you for your time Sir

CaoimheMor commented 4 months ago

I would also suggest downloading the mission specific area, it's possible there is a missing file during spiceinit. But if you managed to spiceinit successfully, I imagine you already downloaded the mission specific data.

Thank you for your response. I haven't managed to run spiceinit, although I do get an output when I use Web Spice kernels that seems coherent with the example output given in the ISIS Documentation. However, it's not completely succesful, as for instance caminfo and cam2map produce the same error when run on the file, and qview will not display coordinates and say that a camera or projection file is needed. I believe the mission specific file is up to date. Do you have any other solutions? Thank you!

Kelvinrr commented 4 months ago

@CaoimheMor and @mun-mn

can you both provide minimum examples of how to reproduce this? That way it can be easier to debug.

CaoimheMor commented 4 months ago

Hello, Sorry, I'm new to Github, I'm not entirely sure what would be useful to you, but I'll tell you what I can...

The error is:

ERROR Unable to initialize camera model in Camera Factory. ERROR Unable to locate latest camera model version number from group [Instrument]. ERROR Unsupported camera model, unable to find plugin for SpacecraftName [JUNO] with InstrumentId [JNC]. ERROR Unable to find PVL group [JUNO/JNC].

The error appears when: Running spiceinit (default options) Running caminfo (default options) Running cam2map (default options)

Here is an example of concrete data from the process: In order of appended files:

Additional note on your previous answer: After some thinking, it's possible I obtained the kernels elsewhere then through DownloadISISdata, so it's possible that the mission specific files aren't up to date, but running DownloadIsisData juno with the --no-kernels option transfers 0 bytes then terminates, which I would take to mean that they are complete. However, DowloadIsisData is giving me its own set of issues so I can't be sure... I don't really know what is supposed to be contained in the mission specific data outside of the kernels, but if it includes camera or CMS plugins then maybe that's the source. That would then require further debugging...

Thank you for your time!

JNCR_2020365_31C00006_V01.txt JNCR_2020365_31C00006_V01_RED_0028.txt JNCR_2020365_31C00006_V01_RED_0028 - Copy (2).txt

CaoimheMor commented 4 months ago

Hello! I fixed the issue! Turns out that Camera.plugin, libjuno.so and libjunocamera.so (and every other camera libary) were installed in anaconda3/envs/isis/lib instead of $ISISROOT/lib ! Copying them over to the correct directory fixed this issue (and now I have new ones, but I'll try to fix those on my own first). Thank you for your help!

mun-mn commented 4 months ago

Hello @Kelvinrr I am stuck in the cam2map process. I have attached the screenshots of the steps I have followed. I have successfully completed the "reduction of 4 band stacked, cleaned cube to approximately 15meters/pixel. But, after this step, Iam not able to proceed with the cam2map step. I am getting the following error. 03 Steps followed in the cam2map step is attached as well below: 01new 02new

I would really appreciate your time and suggestions for solving this error. Thank you in advance.