|
pueoAnalysisTools
|
Antenna index, positions, orientations, and antenna pairing. More...
Functions | |
| pl.DataFrame | read_global_channel_mapping () |
| Generates a Polars DataFrame from map.dat in the pueo-data repository. | |
| pl.DataFrame | read_antenna_geometry (Path qrh_dot_dat, ant_type='MI') |
| Reads in antenna positions (Cartesian coordinates, meters) and attitudes (degrees) from qrh.dat in the pueo-data repository. | |
| pl.DataFrame | get_nominal_phase_center (pl.DataFrame face_centers, str coordinates=None, ant_type='MI') |
| Takes the antenna face centers and returns the (nominal) antenna phase centers | |
| pl.DataFrame | generate_MI_antenna_pairs (pl.DataFrame antennas, int phi_sector_group_size=3) |
| Pairs up neighboring antennas in the main instrument. | |
Variables | |
| tuple | ALL_PUEO_ANTENNA_NAMES |
All possible AntNums. | |
| ANTENNA_POLARIZATION_TYPE = pl.Enum(["H", "V"]) | |
| Enum that specifies either the horizontally or the vertically polarized channel. | |
| PUEO_ANTENNA_TYPE = pl.Enum(["MI", "LF"]) | |
| Can be either the main instrument (MI) or the low frequency instrument (LF) | |
| int | NUM_PHI_SECTORS = 24 |
| Number of azimuthal angle ( \(\phi\)) groups. | |
| int | ASSUMED_PHI_SECTOR_APERTURE_WIDTH = 50 |
| How "wide" an antenna can see in degrees. | |
Antenna index, positions, orientations, and antenna pairing.
| pl.DataFrame read_global_channel_mapping | ( | ) |
Generates a Polars DataFrame from map.dat in the pueo-data repository.
map.dat contains the channel mapping between the indices GlobalChan, AntNum and AntIdx for all channelsGlobalChan is the index used by the pueoEvent repository to access the waveforms, see its example script.chan in the line above comes from the column GlobalChan in the DataFrame.Definition at line 94 of file antenna_attributes.py.
| pl.DataFrame read_antenna_geometry | ( | Path | qrh_dot_dat, |
| ant_type = 'MI' ) |
Reads in antenna positions (Cartesian coordinates, meters) and attitudes (degrees) from qrh.dat in the pueo-data repository.
| [in] | qrh_dot_dat | Path to qrh.dat |
qrh.dat contains the face centers of all main-instrument (MI) antennas (quad-ridged horn antennas) and NOT the phase center.qrh.dat contains an index that is not listed in ALL_PUEO_ANTENNA_NAMES.Definition at line 160 of file antenna_attributes.py.
| pl.DataFrame get_nominal_phase_center | ( | pl.DataFrame | face_centers, |
| str | coordinates = None, | ||
| ant_type = 'MI' ) |
Takes the antenna face centers and returns the (nominal) antenna phase centers
| [in] | face_centers | The output of #read_MI_antenna_geometry |
| [in] | coordinates | can be "cylindrical" or default (Cartesian) |
| phase_centers | Same as face_centers except X[m], Y[m], and Z[m] now represent phase centers. |
face_centers must contain X[m] and Y[m]coordinates is not specified then Cartesian coordinates is used, and the output schema is coordinates is cylindrical, then the ouput schema is Definition at line 238 of file antenna_attributes.py.
| pl.DataFrame generate_MI_antenna_pairs | ( | pl.DataFrame | antennas, |
| int | phi_sector_group_size = 3 ) |
Pairs up neighboring antennas in the main instrument.
| [in] | antennas | Column AntIdx is required |
| [in] | phi_sector_group_size | (optional) Make sure \(\geq 1\) |
| antenna_pairs | See the sample output below. |
antennas: The AntIdx column is required, all other columns are optional. See the following examples.phi_sector_group_size: Actually this is (roughly) half the group size. Check out the plots in the file description to see what effect this parameter has on the number of pairs generated. phi_sector_group_size \(\geq 1\)antennas: phi_sector_group_size and the example input above, the output schema looks like Definition at line 44 of file antenna_pairs.py.
| tuple ALL_PUEO_ANTENNA_NAMES |
All possible AntNums.
AntNum within Polars.Definition at line 29 of file antenna_attributes.py.
| ANTENNA_POLARIZATION_TYPE = pl.Enum(["H", "V"]) |
Enum that specifies either the horizontally or the vertically polarized channel.
Definition at line 68 of file antenna_attributes.py.
| int NUM_PHI_SECTORS = 24 |
Number of azimuthal angle ( \(\phi\)) groups.
Definition at line 81 of file antenna_attributes.py.
| int ASSUMED_PHI_SECTOR_APERTURE_WIDTH = 50 |
How "wide" an antenna can see in degrees.
Definition at line 91 of file antenna_attributes.py.