PyREx

pyrex.custom.ara.detector.convert_hex_coords

pyrex.custom.ara.detector.convert_hex_coords(hex_coords, unit=1)

Convert from hexagonal coordinates to Cartesian.

Parameters
hex_coordsarray_like

Array with two elements representing the hexagonal coordinate.

unitfloat, optional

Optional unit used to multiply the Cartesian coordinates.

Returns
xfloat

Cartesian x-position with the unit correction.

yfloat

Cartesian y-position with the unit correction.

Notes

Hexagonal coordinate system defined along non-perpendicular axes where the first axis is 30 degrees from the Cartesian x-axis and the second axis is parallel to the Cartesian y-axis. The conversion equations are therefore x=h_0-h_1/2 and y=h_1*sqrt(3)/2.

PyREx

A Python package for simulation of neutrinos and radio antennas in ice. Version 1.10.0

Navigation