Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Campt Ephemeris data on no intersection #5393

Closed
acpaquette opened this issue Jan 1, 2024 · 2 comments · Fixed by #5437
Closed

Campt Ephemeris data on no intersection #5393

acpaquette opened this issue Jan 1, 2024 · 2 comments · Fixed by #5437
Assignees
Labels
enhancement New feature or request

Comments

@acpaquette
Copy link
Collaborator

acpaquette commented Jan 1, 2024

Description
Campt currently reports NULLs for spacecraft, and body position as well as BodyFixed, J2000, and Camera look directions when no intersection is obtained. While this is intended behavior, it would be beneficial if we could report that information to a user for debugging.

I think there are other fields that could be exposed but it would be nice to see those values if there is no intersection.

It would also be nice to allow for errors without providing a point list. That would likely be a new boolean check box to enable the feature.

Example

Here is an example of a PVL group that I would expect to return with no intersection.

Group = GroundPoint
  Filename                   = dawn/VIR_IR_1A_1_362681634_3.cub_ISIS.cub
  Sample                     = 0.0
  Line                       = 0.0
  PixelValue                 = NULL
  RightAscension             = NULL
  Declination                = NULL
  PlanetocentricLatitude     = NULL
  PlanetographicLatitude     = NULL
  PositiveEast360Longitude   = NULL
  PositiveEast180Longitude   = NULL
  PositiveWest360Longitude   = NULL
  PositiveWest180Longitude   = NULL
  BodyFixedCoordinate        = (NULL, NULL, NULL)
  LocalRadius                = NULL
  SampleResolution           = NULL
  LineResolution             = NULL
  ObliqueDetectorResolution  = NULL
  ObliquePixelResolution     = NULL
  ObliqueLineResolution      = NULL
  ObliqueSampleResolution    = NULL

  # Spacecraft Information
  SpacecraftPosition         = (22419.717815376, -81378.248461599,
                                -52651.326002978) <km>
  SpacecraftAzimuth          = NULL
  SlantDistance              = NULL
  TargetCenterDistance       = NULL
  SubSpacecraftLatitude      = NULL
  SubSpacecraftLongitude     = NULL
  SpacecraftAltitude         = NULL
  OffNadirAngle              = NULL
  SubSpacecraftGroundAzimuth = NULL

  # Sun Information
  SunPosition                = (209459810.8673, -212242115.91191,
                                -143392302.72592) <km>
  SubSolarAzimuth            = NULL
  SolarDistance              = NULL
  SubSolarLatitude           = NULL
  SubSolarLongitude          = NULL
  SubSolarGroundAzimuth      = NULL

  # Illumination and Other
  Phase                      = NULL
  Incidence                  = NULL
  Emission                   = NULL
  NorthAzimuth               = NULL

  # Time
  EphemerisTime              = 362681633.61341 <seconds>
  UTC                        = 2011-06-30T04:52:47.429264
  LocalSolarTime             = NULL
  SolarLongitude             = NULL

  # Look Direction Unit Vectors in Body Fixed, J2000, and Camera Coordinate Systems.
  LookDirectionBodyFixed     = (-0.099102519428239, 0.84196805758455,
                                0.53034750932787)
  LookDirectionJ2000         = (0.063339300979791, -0.9925381918387,
                                -0.10419246946371)
  LookDirectionCamera        = (0.12073227115834, 0.0091201018405954,
                                0.99264321004244)
  Error                      = "Requested position does not project in camera
                                model; no surface intersection"
End_Group
@acpaquette acpaquette added the enhancement New feature or request label Jan 1, 2024
@rvwagner
Copy link

As a user, I have a workflow I use regularly that could be improved if this was implemented when running campt for a single point without providing a list, especially if the OffNadirAngle field was also populated.

@amystamile-usgs amystamile-usgs self-assigned this Mar 20, 2024
@amystamile-usgs
Copy link
Contributor

amystamile-usgs commented Mar 20, 2024

@acpaquette Could you point me to this particular image?

Nevermind, I found it in our test data area.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging a pull request may close this issue.

3 participants