eaarl.project

Geometry for mirror and target projection

eaarl.project.project_mirror(frame, ops)[source]

Calculate mirror position

Adds the mirror position to the frame DataFrame as mir_x, mir_y, and mir_z.

Parameters
frame : pandas.DataFrame
A DataFrame containing the pulse records.
ops : dict
The ops conf data from the flight
eaarl.project.project_point(frame, ops, r_mt, coord_prefix='')[source]

Calculate the target point position

Adds the target position to the frame DataFrame as x, y, and z, with the prefix prepended if provided.

Parameters
frame : pandas.DataFrame
A DataFrame containing the pulse records.
ops : dict
The ops conf data from the flight
r_mt : array-like of float
Distance from mirror to target, in meters
coord_prefix : string
A prefix to prepend to x, y, and z when adding the target coordinates to the DataFrame. The prefix will have _ added if missing. For example, if coord_prefix='fs', then the target coordinates will be added as ‘fs_x’, ‘fs_y’, and ‘fs_z’.
eaarl.project.target_range(base_range, tx_pos, rx_pos, channel, ops)[source]

Calculate range from mirror to target

Parameters
base_range : array-like of integer
Nanoseconds from start of transmit waveform to return waveform (i.e., frame.range)
tx_pos : array-like of float
Position in transmit of center of energy
rx_pos : array-like of float
Position in return of target center of energy
channel : array-like of integer
Channel of point
ops : dict
The ops conf data from the flight
Returns : float
Distance from mirror to target, in meters.