Bug #4461

Correct GSkyRegionRectangle::compute_solid_angle

Added by Knödlseder Jürgen 10 months ago. Updated 10 months ago.

Status:ClosedStart date:12/06/2023
Priority:NormalDue date:
Assigned To:Knödlseder Jürgen% Done:

100%

Category:-
Target version:2.1.0
Duration:

Description

The solid angle in GSkyRegionRectangle::compute_solid_angle is currently computed using

m_solid = m_width * m_height * gammalib::deg2rad * gammalib::deg2rad;
which is not correct on the sphere. The correct formula is
m_solid = m_width * gammalib::deg2rad * 2.0 * sin(0.5 * m_height * gammalib::deg2rad);


Recurrence

No recurrence.

History

#1 Updated by Knödlseder Jürgen 10 months ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Merged into devel.

Also available in: Atom PDF