water-column-sonar-processing 25.1.4__py3-none-any.whl → 25.1.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of water-column-sonar-processing might be problematic. Click here for more details.

@@ -63,6 +63,7 @@ class ResampleRegrid:
63
63
  for channel in range(
64
64
  len(channels)
65
65
  ): # TODO: leaving off here, need to subset for just indices in time axis
66
+ gc.collect()
66
67
  print(
67
68
  np.nanmax(
68
69
  input_xr.echo_range.sel(
@@ -88,6 +89,7 @@ class ResampleRegrid:
88
89
  ) # removes nan's
89
90
  # iterate through partitions of data with similar depths and resample
90
91
  for select_max_depth in set_of_max_depths:
92
+ gc.collect()
91
93
  # TODO: for nan just skip and leave all nan's
92
94
  select_indices = [
93
95
  i
@@ -134,7 +136,7 @@ class ResampleRegrid:
134
136
  print(f"Problem finding the dynamodb table: {err}")
135
137
  raise err
136
138
  print("Done interpolating data.")
137
- return regrid_resample
139
+ return regrid_resample.values.copy()
138
140
 
139
141
  #################################################################
140
142
  def resample_regrid(
@@ -226,21 +228,11 @@ class ResampleRegrid:
226
228
  min_echo_range = np.nanmin(np.float32(cruise_df["MIN_ECHO_RANGE"]))
227
229
  max_echo_range = np.nanmax(np.float32(cruise_df["MAX_ECHO_RANGE"]))
228
230
 
229
- print("Creating empty ndarray for Sv data.") # Note: cruise dims (depth, time, frequency)
230
- output_zarr_store_shape = output_zarr_store.Sv.shape
231
- end_ping_time_index - start_ping_time_index
232
- output_zarr_store_height = output_zarr_store_shape[0]
233
- output_zarr_store_width = end_ping_time_index - start_ping_time_index
234
- output_zarr_store_depth = output_zarr_store_shape[2]
235
- cruise_sv_subset = np.empty(
236
- shape=(output_zarr_store_height, output_zarr_store_width, output_zarr_store_depth)
237
- )
238
- cruise_sv_subset[:, :, :] = np.nan
239
-
231
+ # Note: cruise dims (depth, time, frequency)
240
232
  all_cruise_depth_values = zarr_manager.get_depth_values(
241
233
  min_echo_range=min_echo_range,
242
234
  max_echo_range=max_echo_range
243
- ) # (5262,) and
235
+ )
244
236
 
245
237
  print(" ".join(list(input_xr_zarr_store.Sv.dims)))
246
238
  if set(input_xr_zarr_store.Sv.dims) != {
@@ -282,7 +274,9 @@ class ResampleRegrid:
282
274
  print(f"start_ping_time_index: {start_ping_time_index}, end_ping_time_index: {end_ping_time_index}")
283
275
  #########################################################################
284
276
  # write Sv values to cruise-level-model-store
285
- output_zarr_store.Sv[:, start_ping_time_index:end_ping_time_index, :] = regrid_resample.values
277
+
278
+ for fff in range(regrid_resample.shape[-1]):
279
+ output_zarr_store.Sv[:, start_ping_time_index:end_ping_time_index, fff] = regrid_resample[:, :, fff]
286
280
  #########################################################################
287
281
  # TODO: add the "detected_seafloor_depth/" to the
288
282
  # L2 cruise dataarrays
@@ -91,7 +91,7 @@ class ZarrManager:
91
91
  chunks=Constants.SPATIOTEMPORAL_CHUNK_SIZE.value,
92
92
  dtype=np.dtype(Coordinates.TIME_DTYPE.value),
93
93
  compressor=self.__compressor,
94
- fill_value=np.nan, # TODO: do i want nan's?
94
+ fill_value=np.nan,
95
95
  overwrite=self.__overwrite,
96
96
  )
97
97
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: water_column_sonar_processing
3
- Version: 25.1.4
3
+ Version: 25.1.6
4
4
  Summary: Processing tool for water column sonar data.
5
5
  Author-email: Rudy Klucik <rudy.klucik@noaa.gov>
6
6
  Project-URL: Homepage, https://github.com/CI-CMG/water-column-sonar-processing
@@ -136,7 +136,7 @@ https://colab.research.google.com/drive/1KiLMueXiz9WVB9o4RuzYeGjNZ6PsZU7a#scroll
136
136
  # Tag a Release
137
137
  Step 1 --> increment the semantic version in the zarr_manager.py "metadata" & the "pyproject.toml"
138
138
  ```commandline
139
- git tag -a v25.1.4 -m "Releasing version v25.1.4"
139
+ git tag -a v25.1.6 -m "Releasing version v25.1.6"
140
140
  git push origin --tags
141
141
  ```
142
142
 
@@ -9,7 +9,7 @@ water_column_sonar_processing/aws/sqs_manager.py,sha256=NSUrWmnSC8h8Gf7gT0U8zFaQ
9
9
  water_column_sonar_processing/cruise/__init__.py,sha256=H5hW0JMORuaFvQk_R31B4VL8RnRyKeanOOiWmqEMZJk,156
10
10
  water_column_sonar_processing/cruise/create_empty_zarr_store.py,sha256=ZsFQTDA0gXfQHlxDsXBGD1qQ0ipmx4kS81DcY6ml5Ew,7767
11
11
  water_column_sonar_processing/cruise/datatree_manager.py,sha256=Qy4dZCW8_q31lbjxbMsx3JtBS4BvQT17_2P0QD1RQcY,639
12
- water_column_sonar_processing/cruise/resample_regrid.py,sha256=wnog-qwFXRH20AYRD_3BXUgP-TN5ZnyPHpFws3527Mk,14533
12
+ water_column_sonar_processing/cruise/resample_regrid.py,sha256=lEFBXVxh0l-LvLKbvM8XNrS7cPBpPr4g7SNikWMU16o,14049
13
13
  water_column_sonar_processing/geometry/__init__.py,sha256=GIzzc-_7pwEwbOkGpc4i_fmjWI5ymllXqzdHq_d3Rio,299
14
14
  water_column_sonar_processing/geometry/elevation_manager.py,sha256=eq9w691WJknPwWYkvO3giKTPleIxCVc2tMGR0e8ZRxQ,4267
15
15
  water_column_sonar_processing/geometry/geometry_manager.py,sha256=nz5T1vCDWHYIfQ853EqKYHDetTul7jRWS3y8Evep8QU,10855
@@ -18,7 +18,7 @@ water_column_sonar_processing/geometry/pmtile_generation.py,sha256=7Lm08Jr6YaM4n
18
18
  water_column_sonar_processing/index/__init__.py,sha256=izEObsKiOoIJ0kZCFhvaYsBd6Ga71XJxnogjrNInw68,68
19
19
  water_column_sonar_processing/index/index_manager.py,sha256=qsS6rKObJlFXKyzRuT1bk2_qW1YagW-Fg_AkQ1U_KRs,14213
20
20
  water_column_sonar_processing/model/__init__.py,sha256=FXaCdbPqxp0ogmZm9NplRirqpgMiYs1iRYgJbFbbX2Y,65
21
- water_column_sonar_processing/model/zarr_manager.py,sha256=wAO_8jcKIEonTNH12Fzzdirz0XLS7qgwOJGrmcVALR8,15678
21
+ water_column_sonar_processing/model/zarr_manager.py,sha256=YOoUBaSo_63lPY0BbTRodAjBQ33r1UY81RAZ98hBE5E,15652
22
22
  water_column_sonar_processing/processing/__init__.py,sha256=tdpSfwnY6lbAS_yBTu4aG0SjPgCKqh6LAFvIj_t3j3U,168
23
23
  water_column_sonar_processing/processing/batch_downloader.py,sha256=qXoruHdbgzAolmroK6eRn9bWgeHFgaVQLwhJ6X5oHRE,6299
24
24
  water_column_sonar_processing/processing/raw_to_zarr.py,sha256=Sn0_zBT7yYP6abbSTlQBPA6iZSBxeVqPYYSgoroiBEU,17599
@@ -27,8 +27,8 @@ water_column_sonar_processing/utility/cleaner.py,sha256=bNbs-hopWxtKAFBK0Eu18xdR
27
27
  water_column_sonar_processing/utility/constants.py,sha256=UtzFkvH5VE7eb8PzeKUDVt-nX6SOdlHtkul1zycF_Z0,2146
28
28
  water_column_sonar_processing/utility/pipeline_status.py,sha256=O-0SySqdRGJ6bs3zQe1NV9vkOpmsRM7zj5QoHgzYioY,4395
29
29
  water_column_sonar_processing/utility/timestamp.py,sha256=bO0oir7KxxoEHPGRkz9FCBfOligkocUyRiWRzAq8fnU,361
30
- water_column_sonar_processing-25.1.4.dist-info/LICENSE,sha256=lz4IpJ5_adG3S0ali-WaIpQFVTnEAOucMDQPECUVEYw,1110
31
- water_column_sonar_processing-25.1.4.dist-info/METADATA,sha256=vI9oh0A7AwlM3jQSKWNw3CdPR_yz4yHiynYuKbzNYH0,5959
32
- water_column_sonar_processing-25.1.4.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
33
- water_column_sonar_processing-25.1.4.dist-info/top_level.txt,sha256=aRYU4A7RNBlNrL4vzjytFAir3BNnmOgsvIGKKA36tg4,30
34
- water_column_sonar_processing-25.1.4.dist-info/RECORD,,
30
+ water_column_sonar_processing-25.1.6.dist-info/LICENSE,sha256=lz4IpJ5_adG3S0ali-WaIpQFVTnEAOucMDQPECUVEYw,1110
31
+ water_column_sonar_processing-25.1.6.dist-info/METADATA,sha256=cMqKrx6xaDmiDsNoTsIfdQpherR4uf_6rolTvgGmw-0,5959
32
+ water_column_sonar_processing-25.1.6.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
33
+ water_column_sonar_processing-25.1.6.dist-info/top_level.txt,sha256=aRYU4A7RNBlNrL4vzjytFAir3BNnmOgsvIGKKA36tg4,30
34
+ water_column_sonar_processing-25.1.6.dist-info/RECORD,,