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

csminit shape defaults differ from spiceinit #5385

Open jlaura opened 10 months ago

jlaura commented 10 months ago

ISIS version(s) affected: 8.0.0

Description

csminit defaults to none for the shape model resulting in a bi-axial ellipsoid being used as the underlying shape model. In isolation, that is absolutely fine. spiceinit defaults to searching the system for a DEM to be used (in the base area). This can results in vastly different results when running *init -> cam2map.

How to reproduce

Run a cube through spiceinit -> cam2map and then run the same cube through ale -> csminit -> cam2map in a region with some topographic relief (for example, the ~800m of relief at the large lunar crater (-1˚, 109˚) is plenty to see large offsets).

Possible Solution

The default for csminited cubes in ISIS should match the spiceinit defaults so that user expectations can be maintained across applications. Right now, a user has to read and grok the spiceinit and csminit docs, know that offsets can be a function of the underlying shape model, and then discover that the defaults are different. In sum, that is a non-trivial lift for a user.

Additional context

acpaquette commented 10 months ago

Something to note is that the USGSCSM doesn't have a triaxial radii solve for imageToGround it only deals with the math for a biaxial sphereoid. In other words. I don't think this is a bug but a feature of the library. We may want to transition this to a feature request rather than a bug fix.

jlaura commented 10 months ago

@acpaquette I did not mention triaxial support anywhere in the report. The issue is that csminit defaults to an ellipsoid while sppiceinit defaults to a system supplied shape model. The differences when projecting / orthorectifying are large and poorly documented.

acpaquette commented 10 months ago

Right, my bad. I forgot that the CSM Camera doesn't do an imageToGround call but gets the position and look vector and then does a target intersection through ISIS

acpaquette commented 9 months ago

Something to note here is that the CSMCamera uses the semi major and semi minor radii defined in the CSM model when defining the ISIS target. In some cases this won't matter as NAIF defines the target as a bi-axial ellipsoid, but it will matter if the target is defined as a tri-axial ellipsoid.

It would make sense here to have the CSMCamere follow what other ISIS cameras do. So if a target has been defined in ISIS as a tri-axial ellipsoid we should use that over the bi-axial defined in the CSM model

github-actions[bot] commented 3 months ago

Thank you for your contribution!

Unfortunately, this issue hasn't received much attention lately, so it is labeled as 'stale.'

If no additional action is taken, this issue will be automatically closed in 180 days.

If you want to participate in our support prioritization meetings or be notified when support sprints are happening, you can sign up the support sprint notification emails here.

Read more about our support processs here

Kelvinrr commented 3 months ago

bump