EN208

Compute scale numbers using the EN208 standard.

lasersafety.en208.continuous_scale_number_en208(average_power: float | int, area: float | int, wavelength: float | int) int

Compute the cotninuous scale number for en208.

It computes the power density by dividing the power density by the area and uses it to return the sccale number.

Parameters:
  • average_power (Union[float, int]) – the average power, in W.

  • area (Union[float, int]) – the beam area, in m^2.

  • wavelength (Union[float, int]) – the wavelength, in m.

Returns:

the scale number for the continuous laser.

Return type:

int

lasersafety.en208.pulsed_scale_number_en208(peak_power: float | int, pulse_energy: float | int, area: float | int, pulse_duration: float | int, repetition_rate: float | int, wavelength: float | int) int

Compute the scale number for the EN208 standard for pulsed lasers.

It computes the corrected energy density by using the pulse energy, the area and the repetion rate, then returns the scale number.

Parameters:
  • peak_power (Union[float, int]) – the peak power, in W.

  • pulse_energy (Union[float, int]) – the pulse energy, in J.

  • area (Union[float, int]) – the beam area, in m^2.

  • pulse_duration (Union[float, int]) – the pulse duration, in s.

  • repetition_rate (Union[float, int]) – the repetition rate, in Hz.

  • wavelength (Union[float, int]) – the wavelength, in m.

Raises:

ValueError – if pulse duration is less or equal than 1 ns.

Returns:

the scale number for the EN208 standard.

Return type:

int