z_to_portnumο
- bapsflib.lapd.tools.tools.z_to_portnum(z: int | float | Quantity, unit='cm', round_to_nearest=False) Quantityο
Converts LaPD axial z location to port number.
- Parameters:
unit (
str, optional) β string orastropy.unitsspecifying unit typeround_to_nearest (
bool, optional) βFalse(DEFAULT),Truewill round the port number to the nearest full integernote:: (..) β Port 53 defines z = 0 cm and is the most Northern port. The +z axis points South towards the main cathode.