astrohack.utils.ray_tracing_general
Attributes
Classes
Functions
|
|
|
|
|
|
|
|
|
|
|
Creates an array spaning from min to max (may go over max if resolution is not an integer division) spaced by resolution |
|
|
|
Degrades de number of points in a pcd by an integer factor |
|
|
|
|
|
|
|
|
|
|
|
Module Contents
- simple_axis(minmax, resolution, margin=0.05)[source]
Creates an array spaning from min to max (may go over max if resolution is not an integer division) spaced by resolution :param minmax: the minimum and maximum of the axis :param resolution: The spacing between array elements :param margin: Add a margin at the edge of the array beyonf min and max
- Returns:
A numpy array representation of a linear axis.
- degrade_pcd(pcd, degrading_factor)[source]
Degrades de number of points in a pcd by an integer factor :param pcd: pcd data, assumes [:, 3] :param degrading_factor: integer pcd degrading factor
Returns: degraded pcd
- class LocalQPS[source]
-
- export_to_xr_data_variables()[source]
Idea is to return pcd values and qpd coeffs as Xarray data variables for storage. Returns: xarray data variables
- classmethod from_xr_data_variable()[source]
Idea is to init an object from a few xarray Data variables from storage Returns: initialized obj
- compute_z_val_and_z_cos(point)[source]
Idea is to compute value of QPS and angle with boresight :param point:
Returns: