refraction_render.calcs.CurveNoRefraction¶
-
class
refraction_render.calcs.CurveNoRefraction(R0=6370997.0)[source]¶ Bases:
refraction_render.calcs.calculators.CalcCalculator used for calculating rays on a sphere earth in no atmosphere.
-
__init__(R0=6370997.0)[source]¶ Initialize CurveNoRefraction object.
- R0: float, optional
Radius of the sphere for this calculation.
Methods
__init__([R0])Initialize CurveNoRefraction object.
solve_ivp(d, h[, dh, alpha])Solve initial value problem for light rays.
Attributes
Radius of the sphere in this calculator.
-
property
R0¶ Radius of the sphere in this calculator.
-
solve_ivp(d, h, dh=None, alpha=None, **kwargs)¶ Solve initial value problem for light rays.
- d: float
maximum distance to solve the light rays.
- h: array_like (n,)
initial height of rays.
- dh: array_like (n,), optional
initial derivatives of the rays.
- alpha: array_like (n,), optional
initial angle of the rays.
- **kwargs: optional
extra arguments which get passed into Fermat equation solver.
-