FieldIntensity

class nexus.FieldIntensity(sample, energy, points=101, id='')

Bases: Measurement

Constructor for the FieldIntensity class. Calculates the depth-dependent field intensity inside a sample.

Parameters:
  • id (string) – User identifier.

  • sample (Sample) – Sample for the calculation. In case that the experiment has several objects only the field amplitude of the given sample is determined.

  • energy (float) – X-ray energy (eV).

  • points (int) – Number of calculation points.

id

User identifier.

Type:

string

sample

Sample for the calculation. In case that the experiment has several objects only the field amplitude of the given sample is determined.

Type:

Sample

energy

X-ray energy (eV).

Type:

float

result

List of field intensities

Type:

list

depth

List of the depth values for the calculation.

Type:

list

num_points

Number of calculation points.

Type:

int

Calculate()

Calculates the class method. Also callable via operator ().

Returns:

Array of depth values, array of intensity values.

Return type:

ndarray, ndarray

Plot()

Plot the field intensity in a sample.