Open acpaquette opened 1 year ago
Just to ping this issue.
This is an interesting issue which really to me has always been an ISIS implementation quirk. First David is correct that it has always been extremely confusing that setting Mars (which in ISIS defaults as an ellipse) using an ISIS "spherical" projection (like Sinu) that an ellipse is maintained in the label. This has caused us to implement external work-arounds to deal with this quirk in libraries (e.g., GDAL) and exported PDS labels (e.g., HiRISE).
In summary, for this issue, I would be fine that when using a spherical projection, that a sphere is defined in the output cube label.
P.S. -- additional thoughts
@thareUSGS
...HiRISE uses a spherical equirectangular projection with a local calculated sphere...
Just to clarify, this is not describing something about how ISIS behaves when projecting HiRISE data. The HiRISE team uses a spherical equirectangular projection with a local calculated sphere in the production of HiRISE RDRs released to the PDS.
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
ISIS version(s) affected: 3.0+
Description
After some discussion with @dpmayerUSGS, it seems like some projections in ISIS that project assuming a spherical body should not be able to project to planetographic latitudes when equatorial radius and the polar radius are not equal.
For example if you look at the math for the sinusoidal projection in ISIS and compare it to the math found in Map Projections- A Working Manual by John Synder (where the sinusoidal information can be found on page 243), the math uses the model for a sphere. There is a model for an ellipsoid but ISIS doesn't support it.
As a result it seems like a user should not be able to define a planetographic latitude option for sinusoidal projection, especially if the equatorial radii and polar radii are different. Fundamentally, if your radii are the same you can specify either, but if they are different you also need to project assuming an ellipsoid rather than a sphere.
How to reproduce
There is no error to reproduce and ISIS accepts the planetographic option for sinusoidal maps, but your latitude will be off given any projection in ISIS that assumes a sphere. It will end up squishing your map based on the polar radii.
Possible Solution
Ideally, for projections that assume a sphere we should either update the radii on the mapping group or enforce the projections that assume as sphere use the planetocentric latitude rather than the planetographic latitude regardless of what the user requested.