Reference

Load the data

See example notebooks 01, A2, A3, and A4. Import directly from dtscalibration.

read_apsensing_files

Read a folder with measurement files from a device of the Sensortran brand.

read_sensornet_files

Read a folder with measurement files.

read_sensortran_files

Read a folder with measurement files from a device of the Sensortran brand.

read_silixa_files

Read a folder with measurement files from a device of the Silixa brand.

Compute the variance in the Stokes measurements

See example notebooks 04. Import from dtscalibration.variance_stokes.

variance_stokes_constant

Approximate the variance of the noise in Stokes intensity measurements with one value, suitable for small setups.

variance_stokes_linear

Approximate the variance of the noise in Stokes intensity measurements with a linear function of the intensity, suitable for large setups.

variance_stokes_exponential

Approximate the variance of the noise in Stokes intensity measurements with one value, suitable for small setups with measurements from only a few times.

The DTS Accessor

These methods are available as an xarray.Dataset accessor. Add `# The following line introduces the .dts accessor for xarray datasets import dtscalibration # noqa: E401 ` to your import statements. See example natebooks 07, 08, and 17.

dts.sections

Define calibration sections.

dts.calibrate_single_ended

Calibrate the measured data of a single ended setup to temperature.

dts.calibrate_double_ended

Calibrate the measured data of a double ended setup to temperature.

dts.monte_carlo_single_ended

The result object is what comes out of the single_ended_calibration routine).

dts.monte_carlo_double_ended

Estimation of the confidence intervals for the temperatures measured with a double-ended setup.

dts.average_monte_carlo_single_ended

Average temperatures from single-ended setups.

dts.average_monte_carlo_double_ended

Average temperatures from double-ended setups.

dts.get_default_encoding

Returns a dictionary with sensible compression setting for writing netCDF files.

dts.get_timeseries_keys

Returns a list of the keys of the time series variables.

dts.matching_sections

Define calibration sections.

dts.ufunc_per_section

Functions applied to parts of the cable.

Plot the results

Import from dtscalibration.plot.

plot_residuals_reference_sections

Analyze the residuals of the reference sections, between the Stokes signal and a best-fit decaying exponential.

plot_residuals_reference_sections_single

Analyze the residuals of the reference sections, between the Stokes signal and a best-fit decaying exponential.

plot_accuracy

Analyze the residuals of the reference sections, between the Stokes signal and a best-fit decaying exponential.

plot_sigma_report

Returns two sub-plots.

plot_location_residuals_double_ended