Skip to content

Commit

Permalink
Implemented modified Blackwell
Browse files Browse the repository at this point in the history
  • Loading branch information
ruxandra-valcu committed Dec 5, 2023
1 parent 8008cc6 commit 7e6c5a6
Show file tree
Hide file tree
Showing 4 changed files with 413 additions and 1,120 deletions.
22 changes: 7 additions & 15 deletions echopype/mask/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,10 +561,9 @@ def get_seabed_mask(
a Dataset. This input must correspond to a Dataset that has the
coordinate ``channel`` and variables ``frequency_nominal`` and ``Sv``.
desired_channel: str - channel to generate the mask for
desired_freuency: int - desired frequency, in case the channel isn't directly specified
method: str with either "ariza", "experimental", "blackwell_mod",
"blackwell", "deltaSv", "maxSv"
based on the preferred method for seabed mask generation
desired_frequency: int - desired frequency, in case the channel isn't directly specified
method: str with either "ariza", "blackwell", based on the preferred method
for seabed mask generation
Returns
-------
xr.DataArray
Expand All @@ -574,8 +573,7 @@ def get_seabed_mask(
Raises
------
ValueError
If neither "ariza", "experimental", "blackwell_mod",
"blackwell", "deltaSv", "maxSv" are given
If neither "ariza", "blackwell" are given
Notes
-----
Expand All @@ -588,11 +586,7 @@ def get_seabed_mask(
source_Sv = get_dataset(source_Sv)
mask_map = {
"ariza": seabed._ariza,
"experimental": seabed._experimental,
"blackwell": seabed._blackwell,
"blackwell_mod": seabed._blackwell_mod,
"delta_Sv": seabed._deltaSv,
"max_Sv": seabed._maxSv,
}

if method not in mask_map.keys():
Expand Down Expand Up @@ -621,9 +615,8 @@ def get_seabed_mask_multichannel(
else it specifies the path to a zarr or netcdf file containing
a Dataset. This input must correspond to a Dataset that has the
coordinate ``channel`` and variables ``frequency_nominal`` and ``Sv``.
method: str with either "ariza", "experimental", "blackwell_mod",
"blackwell", "deltaSv", "maxSv"
based on the preferred method for seabed mask generation
method: str with either "ariza", "blackwell"
based on the preferred method for seabed mask generation
Returns
-------
xr.DataArray
Expand All @@ -633,8 +626,7 @@ def get_seabed_mask_multichannel(
Raises
------
ValueError
If neither "ariza", "experimental", "blackwell_mod",
"blackwell", "deltaSv", "maxSv" are given
If neither "ariza" or "blackwell" are given
Notes
-----
Expand Down
Loading

0 comments on commit 7e6c5a6

Please sign in to comment.