Skip to content

Commit

Permalink
Fixed the interpolation function to not use chunking (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaiboldeanu committed Nov 10, 2023
1 parent 5a5b795 commit 527ec12
Showing 1 changed file with 4 additions and 1 deletion.
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

0 comments on commit 527ec12

Please sign in to comment.