@@ -13,7 +13,7 @@ channel should be aligned.
1313.. code :: ipython3
1414
1515 import os
16-
16+
1717 from dtscalibration import read_silixa_files
1818 import matplotlib.pyplot as plt
1919 %matplotlib inline
@@ -28,12 +28,12 @@ channel should be aligned.
2828 .. code :: ipython3
2929
3030 filepath = os.path.join('..', '..', 'tests', 'data', 'double_ended2')
31-
31+
3232 ds = read_silixa_files(
3333 directory=filepath,
3434 timezone_netcdf='UTC',
3535 file_ext='*.xml')
36-
36+
3737 ds100 = ds.sel(x=slice(0, 100)) # only calibrate parts of the fiber
3838 sections = {
3939 'probe1Temperature': [slice(7.5, 17.), slice(70., 80.)], # cold bath
@@ -57,8 +57,8 @@ channel should be aligned.
5757
5858 .. parsed-literal ::
5959
60-
61-
60+
61+
6262 Parameters
6363 ----------
6464 store_p_cov : str
@@ -149,20 +149,20 @@ channel should be aligned.
149149 has three items. The first two items are the slices of the sections
150150 that are matched. The third item is a boolean and is True if the two
151151 sections have a reverse direction ("J-configuration").
152-
153-
152+
153+
154154 Returns
155155 -------
156-
157-
156+
157+
158158
159159
160160 .. code :: ipython3
161161
162- st_label = 'ST '
163- ast_label = 'AST '
164- rst_label = 'REV-ST '
165- rast_label = 'REV-AST '
162+ st_label = 'st '
163+ ast_label = 'ast '
164+ rst_label = 'rst '
165+ rast_label = 'rast '
166166 ds100.calibration_double_ended(sections=sections,
167167 st_label=st_label,
168168 ast_label=ast_label,
@@ -171,8 +171,8 @@ channel should be aligned.
171171 method='ols')
172172
173173 After calibration, two data variables are added to the ``DataStore ``
174- object: - ``TMPF ``, temperature calculated along the forward direction -
175- ``TMPB ``, temperature calculated along the backward direction
174+ object: - ``tmpf ``, temperature calculated along the forward direction -
175+ ``tmpb ``, temperature calculated along the backward direction
176176
177177A better estimate, with a lower expected variance, of the temperature
178178along the fiber is the average of the two. We cannot weigh on more than
@@ -181,10 +181,10 @@ the other, as we do not have more information about the weighing.
181181.. code :: ipython3
182182
183183 ds1 = ds100.isel(time=0) # take only the first timestep
184-
185- ds1.TMPF .plot(linewidth=1, label='User cali. Forward', figsize=(12, 8)) # plot the temperature calibrated by us
186- ds1.TMPB .plot(linewidth=1, label='User cali. Backward') # plot the temperature calibrated by us
187- ds1.TMP .plot(linewidth=1, label='Device calibrated') # plot the temperature calibrated by the device
184+
185+ ds1.tmpf .plot(linewidth=1, label='User cali. Forward', figsize=(12, 8)) # plot the temperature calibrated by us
186+ ds1.tmpb .plot(linewidth=1, label='User cali. Backward') # plot the temperature calibrated by us
187+ ds1.tmp .plot(linewidth=1, label='Device calibrated') # plot the temperature calibrated by the device
188188 plt.legend();
189189
190190
@@ -198,9 +198,9 @@ first.
198198
199199.. code :: ipython3
200200
201- ds1['TMPAVG'] = (ds1.TMPF + ds1.TMPB ) / 2
201+ ds1['TMPAVG'] = (ds1.tmpf + ds1.tmpb ) / 2
202202 ds1_diff = ds1.TMP - ds1.TMPAVG
203-
203+
204204 ds1_diff.plot(figsize=(12, 8));
205205
206206
0 commit comments