Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed the interpolation function to not use chunking #129

Merged
merged 1 commit into from
Nov 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion oceanstream/L2_calibrated_data/sv_interpolation.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ def interpolate_sv(
dataset = read_processed(path_to_file)

# Retrieve the Sv DataArray from the dataset
sv_dataarray = dataset["Sv"].chunk({"ping_time": -1})
# sv_dataarray = dataset["Sv"].chunk({"ping_time": -1})
# Ensure the data is loaded into memory as a regular array (not Dask chunked)
sv_dataarray = dataset["Sv"]
sv_dataarray = sv_dataarray.load()

# Initialize an empty list to store the processed channels
processed_channels = []
Expand Down
Loading