pyRTX.classes.PixelPlane
Classes
|
- class pyRTX.classes.PixelPlane.PixelPlane(spacecraft=None, source=None, mode='Fixed', distance=1.0, lon=None, lat=None, width=None, height=None, ray_spacing=0.1, packets=1, units='m')[source]
- __init__(spacecraft=None, source=None, mode='Fixed', distance=1.0, lon=None, lat=None, width=None, height=None, ray_spacing=0.1, packets=1, units='m')[source]
“Generate a pixel array for raytracing ad defined in Li et al., 2018 This is the “optimized version”. To explicitly see the algorithm refer to the function definition without _opt extension. Parameters: d0: [float] Distance of the pixel array from the center (in meters) lat: [float] Latitude of the pixel array center (in rad) lon: [float] Longitude of the pixel array center (in rad) width: [float] The width of the plane(in meters). Default = 1 height: [float] the height of the plane(in meters). Default = 1 ray_spacing: [float] the spacing of the rays (in meters). Default = 0.1 packets: [int] the number of ‘ray packets’ to return. This is implemented to avoid the segmentation
fault triggered by the raytracer when the number of rays is too high
Returns: locs: [numpy array (n_rays, 3)] Pixel locations as a numpy array dirs: [numpy array (n_rays, 3)] the ray directions as a numpy array