smiet.numpy.utilities.cs_transformations module

smiet.numpy.utilities.cs_transformations.e_ce(traces, x, y)

Calculate the charge-excess (or Askaryan) component of electric field in the shower plane, i.e. the electric field should be in the (vxB, vxvxB, v) CS

Parameters:
traces : np.ndarray

The traces in the shower plane, shaped as (samples, polarisations)

x : float

The antenna position along the vxB axis

y : float

The antenna position along the vxvxB axis

Returns:

e_ce – The charge-excess component of the electric field

Return type:

np.ndarray

smiet.numpy.utilities.cs_transformations.e_geo(traces, x, y)

Calculate the geomagnetic component from the electric field in the shower plane, i.e. the electric field should be in the (vxB, vxvxB, v) CS

Parameters:
traces : np.ndarray

The traces in the shower plane, shaped as (samples, polarisations)

x : float

The antenna position along the vxB axis

y : float

The antenna position along the vxvxB axis

Returns:

e_geo – The geomagnetic component of the electric field

Return type:

np.ndarray

smiet.numpy.utilities.cs_transformations.e_to_geo_ce(traces, x, y)

Decouples the electric field in the shower plane, i.e. the electric field should be in the (vxB, vxvxB, v) CS, into the geomagnetic and charge-excess components.

Parameters:
traces : np.ndarray

The traces in the shower plane, shaped as (samples, polarisations)

x : float

The antenna position along the vxB axis

y : float

The antenna position along the vxvxB axis

Returns:

  • e_geo (np.ndarray) – The geomagnetic component of the electric field

  • e_ce (np.ndarray) – The charge-excess component of the electric field

smiet.numpy.utilities.cs_transformations.geo_ce_to_e(my_e_geo, my_e_ce, x, y)

Convert the geomagnetic and charge-excess components to a three-dimensional electric field in the shower plane, i.e. the (vxB, vxvxB, v) CS.

Note that the v-component is simply set to zero.

Parameters:
my_e_geo : np.ndarray

The electric field traces of the geomagnetic component, shaped as (n_antennas, n_samples, n_slices,)

my_e_ce : np.ndarray

The electric field traces of the charge-excess component, shaped as (n_antennas, n_samples, n_slices,)

x : float

The antenna position along the vxB axis, shaped as (n_antennas, )

y : float

The antenna position along the vxvxB axis, shaped as (n_antennas, )

Returns:

e_field – The three-dimensional electric field, in the shower plane CS, shaped as (samples, polarisations)

Return type:

np.ndarray