@@ -54,14 +54,14 @@ The steps for performing these analyses are summarized below:
54
54
.. code-block :: python
55
55
56
56
# Reduce data based on physical units
57
- ds_MVBS = ep.preprocess .compute_MVBS(
57
+ ds_MVBS = ep.commongrid .compute_MVBS(
58
58
ds_Sv, # calibrated Sv dataset
59
59
range_meter_bin = 20 , # bin size to average along echo_range in meters
60
60
ping_time_bin = ' 20S' # bin size to average along ping_time in seconds
61
61
)
62
62
63
63
# Reduce data based on sample number
64
- ds_MVBS = ep.preprocess .compute_MVBS_index_binning(
64
+ ds_MVBS = ep.commongrid .compute_MVBS_index_binning(
65
65
ds_Sv, # calibrated Sv dataset
66
66
range_sample_num = 30 , # number of sample bins to average along the range_sample dimensionm
67
67
ping_num = 5 # number of pings to average
@@ -72,21 +72,27 @@ The steps for performing these analyses are summarized below:
72
72
.. code-block :: python
73
73
74
74
# Remove noise
75
- ds_Sv_clean = ep.preprocess .remove_noise( # obtain a denoised Sv dataset
75
+ ds_Sv_clean = ep.clean .remove_noise( # obtain a denoised Sv dataset
76
76
ds_Sv, # calibrated Sv dataset
77
77
range_sample_num = 30 , # number of samples along the range_sample dimension for estimating noise
78
78
ping_num = 5 , # number of pings for estimating noise
79
79
)
80
80
81
+ .. attention ::
82
+
83
+ The ``clean `` and ``commongrid `` subpackages were introduced in version 0.7.0.
84
+ They contain functions previously found in the deprecated ``preprocess `` subpackage;
85
+ ``preprocess `` was removed in version 0.8.0.
86
+
81
87
The functions in the ``calibrate `` subpackage take in an ``EchoData `` object,
82
88
which is essentially a container for multiple xarray ``Dataset `` instances,
83
89
and return a single xarray ``Dataset `` containing the calibrated backscatter
84
90
quantities and the samples' corresponding range in meters.
85
- The input and output of all functions in the ``preprocess ``
86
- subpackage are xarray ``Dataset `` instances, with the input being a ``Dataset ``
91
+ The input and output of all functions in the ``clean `` and `` commongrid ``
92
+ subpackages are xarray ``Dataset `` instances, with the input being a ``Dataset ``
87
93
containing ``Sv `` and ``echo_range `` generated from calibration.
88
94
89
- The ``calibrate `` and ``preprocess `` functions do not save the calculation results to disk,
95
+ The ``calibrate ``, `` clean `` and ``commongrid `` functions do not save the calculation results to disk,
90
96
but the returned xarray ``Dataset `` can be saved using native xarray methods
91
97
such as ``to_netcdf `` and ``to_zarr ``.
92
98
@@ -98,7 +104,9 @@ For example, to save the Sv and MVBS results to disk:
98
104
ds_MVBS.to_netcdf(' file_MVBS.nc' )
99
105
100
106
101
- .. note :: Echopype's data processing functionality is being developed actively.
107
+ .. note ::
108
+
109
+ Echopype's data processing functionality is being developed actively.
102
110
Be sure to check back here often!
103
111
104
112
0 commit comments