oceanstream 0.0.15.dev0__tar.gz → 1.0.0rc1__tar.gz

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.
Files changed (314) hide show
  1. {oceanstream-0.0.15.dev0 → oceanstream-1.0.0rc1}/LICENSE +1 -1
  2. oceanstream-1.0.0rc1/PKG-INFO +204 -0
  3. oceanstream-1.0.0rc1/oceanstream/README.md +126 -0
  4. oceanstream-1.0.0rc1/oceanstream/__init__.py +117 -0
  5. oceanstream-1.0.0rc1/oceanstream/__main__.py +5 -0
  6. oceanstream-1.0.0rc1/oceanstream/adcp/__init__.py +13 -0
  7. oceanstream-1.0.0rc1/oceanstream/adcp/_compat.py +21 -0
  8. oceanstream-1.0.0rc1/oceanstream/adcp/ad2cp_reader.py +726 -0
  9. oceanstream-1.0.0rc1/oceanstream/adcp/processor.py +300 -0
  10. oceanstream-1.0.0rc1/oceanstream/adcp/rdi_reader.py +65 -0
  11. oceanstream-1.0.0rc1/oceanstream/adcp/sv_computation.py +214 -0
  12. oceanstream-1.0.0rc1/oceanstream/adcp/transforms.py +291 -0
  13. oceanstream-1.0.0rc1/oceanstream/app.py +64 -0
  14. oceanstream-1.0.0rc1/oceanstream/argo/__init__.py +45 -0
  15. oceanstream-1.0.0rc1/oceanstream/argo/dataset.py +541 -0
  16. oceanstream-1.0.0rc1/oceanstream/argo/profiles.py +212 -0
  17. oceanstream-1.0.0rc1/oceanstream/campaign/__init__.py +1 -0
  18. oceanstream-1.0.0rc1/oceanstream/campaign/catalogue.py +572 -0
  19. oceanstream-1.0.0rc1/oceanstream/campaign/cli.py +269 -0
  20. oceanstream-1.0.0rc1/oceanstream/cli.py +2558 -0
  21. oceanstream-1.0.0rc1/oceanstream/config/__init__.py +1 -0
  22. oceanstream-1.0.0rc1/oceanstream/config/settings.py +190 -0
  23. oceanstream-1.0.0rc1/oceanstream/configuration.py +260 -0
  24. oceanstream-1.0.0rc1/oceanstream/echodata/__init__.py +477 -0
  25. oceanstream-1.0.0rc1/oceanstream/echodata/calibrate/__init__.py +36 -0
  26. oceanstream-1.0.0rc1/oceanstream/echodata/calibrate/calibration.py +137 -0
  27. oceanstream-1.0.0rc1/oceanstream/echodata/calibrate/case_xml.py +79 -0
  28. oceanstream-1.0.0rc1/oceanstream/echodata/calibrate/ecs.py +457 -0
  29. oceanstream-1.0.0rc1/oceanstream/echodata/calibrate/saildrone.py +283 -0
  30. oceanstream-1.0.0rc1/oceanstream/echodata/compute/__init__.py +42 -0
  31. oceanstream-1.0.0rc1/oceanstream/echodata/compute/mvbs.py +297 -0
  32. oceanstream-1.0.0rc1/oceanstream/echodata/compute/nasc.py +539 -0
  33. oceanstream-1.0.0rc1/oceanstream/echodata/compute/nasc_export.py +259 -0
  34. oceanstream-1.0.0rc1/oceanstream/echodata/compute/sv.py +722 -0
  35. oceanstream-1.0.0rc1/oceanstream/echodata/concat.py +540 -0
  36. oceanstream-1.0.0rc1/oceanstream/echodata/config.py +720 -0
  37. oceanstream-1.0.0rc1/oceanstream/echodata/consolidate/__init__.py +30 -0
  38. oceanstream-1.0.0rc1/oceanstream/echodata/consolidate/depth.py +259 -0
  39. oceanstream-1.0.0rc1/oceanstream/echodata/consolidate/location.py +344 -0
  40. oceanstream-1.0.0rc1/oceanstream/echodata/convert.py +310 -0
  41. oceanstream-1.0.0rc1/oceanstream/echodata/denoise/__init__.py +44 -0
  42. oceanstream-1.0.0rc1/oceanstream/echodata/denoise/attenuation.py +138 -0
  43. oceanstream-1.0.0rc1/oceanstream/echodata/denoise/background_estimators.py +78 -0
  44. oceanstream-1.0.0rc1/oceanstream/echodata/denoise/background_noise.py +247 -0
  45. oceanstream-1.0.0rc1/oceanstream/echodata/denoise/denoise.py +976 -0
  46. oceanstream-1.0.0rc1/oceanstream/echodata/denoise/impulse_noise.py +281 -0
  47. oceanstream-1.0.0rc1/oceanstream/echodata/denoise/transient_noise.py +628 -0
  48. oceanstream-1.0.0rc1/oceanstream/echodata/environment/__init__.py +83 -0
  49. oceanstream-1.0.0rc1/oceanstream/echodata/environment/absorption.py +234 -0
  50. oceanstream-1.0.0rc1/oceanstream/echodata/environment/blended.py +350 -0
  51. oceanstream-1.0.0rc1/oceanstream/echodata/environment/copernicus.py +298 -0
  52. oceanstream-1.0.0rc1/oceanstream/echodata/environment/ctd_casts.py +239 -0
  53. oceanstream-1.0.0rc1/oceanstream/echodata/environment/enrich.py +999 -0
  54. oceanstream-1.0.0rc1/oceanstream/echodata/environment/geoparquet.py +856 -0
  55. oceanstream-1.0.0rc1/oceanstream/echodata/environment/globe.py +216 -0
  56. oceanstream-1.0.0rc1/oceanstream/echodata/environment/sound_speed.py +287 -0
  57. oceanstream-1.0.0rc1/oceanstream/echodata/export.py +176 -0
  58. oceanstream-1.0.0rc1/oceanstream/echodata/models.py +222 -0
  59. oceanstream-1.0.0rc1/oceanstream/echodata/multifrequency/__init__.py +25 -0
  60. oceanstream-1.0.0rc1/oceanstream/echodata/multifrequency/frequency_differencing.py +189 -0
  61. oceanstream-1.0.0rc1/oceanstream/echodata/plot/__init__.py +68 -0
  62. oceanstream-1.0.0rc1/oceanstream/echodata/plot/colormaps.py +84 -0
  63. oceanstream-1.0.0rc1/oceanstream/echodata/plot/combined.py +565 -0
  64. oceanstream-1.0.0rc1/oceanstream/echodata/plot/echogram.py +1712 -0
  65. oceanstream-1.0.0rc1/oceanstream/echodata/plot/qc.py +265 -0
  66. oceanstream-1.0.0rc1/oceanstream/echodata/presets/__init__.py +50 -0
  67. oceanstream-1.0.0rc1/oceanstream/echodata/presets/cli.py +186 -0
  68. oceanstream-1.0.0rc1/oceanstream/echodata/presets/library/munkholmen-fjord.toml +47 -0
  69. oceanstream-1.0.0rc1/oceanstream/echodata/presets/library/nancy-foster-reef-shelf.toml +80 -0
  70. oceanstream-1.0.0rc1/oceanstream/echodata/presets/library/reef-shelf-shallow.toml +65 -0
  71. oceanstream-1.0.0rc1/oceanstream/echodata/presets/library/research-vessel-nordic-shelf.toml +90 -0
  72. oceanstream-1.0.0rc1/oceanstream/echodata/presets/library/research-vessel-open-ocean-perping.toml +63 -0
  73. oceanstream-1.0.0rc1/oceanstream/echodata/presets/library/research-vessel-open-ocean-ryan-margin.toml +59 -0
  74. oceanstream-1.0.0rc1/oceanstream/echodata/presets/library/research-vessel-open-ocean-ryan-short-snr10-int.toml +94 -0
  75. oceanstream-1.0.0rc1/oceanstream/echodata/presets/library/research-vessel-open-ocean-ryan-short-snr10-pw20.toml +59 -0
  76. oceanstream-1.0.0rc1/oceanstream/echodata/presets/library/research-vessel-open-ocean-ryan-short-snr10.toml +66 -0
  77. oceanstream-1.0.0rc1/oceanstream/echodata/presets/library/research-vessel-open-ocean-ryan-short.toml +59 -0
  78. oceanstream-1.0.0rc1/oceanstream/echodata/presets/library/research-vessel-open-ocean-ryan-tn.toml +61 -0
  79. oceanstream-1.0.0rc1/oceanstream/echodata/presets/library/research-vessel-open-ocean-scaled.toml +64 -0
  80. oceanstream-1.0.0rc1/oceanstream/echodata/presets/library/research-vessel-open-ocean-sensitive.toml +61 -0
  81. oceanstream-1.0.0rc1/oceanstream/echodata/presets/library/research-vessel-open-ocean.toml +65 -0
  82. oceanstream-1.0.0rc1/oceanstream/echodata/presets/library/ryan-inspired.toml +47 -0
  83. oceanstream-1.0.0rc1/oceanstream/echodata/presets/library/saildrone-shelf.toml +60 -0
  84. oceanstream-1.0.0rc1/oceanstream/echodata/presets/library/tpos-sd-2023.toml +44 -0
  85. oceanstream-1.0.0rc1/oceanstream/echodata/presets/library/tropical-pacific-v3.toml +46 -0
  86. oceanstream-1.0.0rc1/oceanstream/echodata/presets/registry.py +566 -0
  87. oceanstream-1.0.0rc1/oceanstream/echodata/presets/schema.py +327 -0
  88. oceanstream-1.0.0rc1/oceanstream/echodata/processor.py +1340 -0
  89. oceanstream-1.0.0rc1/oceanstream/echodata/products.py +687 -0
  90. oceanstream-1.0.0rc1/oceanstream/echodata/seabed/__init__.py +52 -0
  91. oceanstream-1.0.0rc1/oceanstream/echodata/seabed/bathymetry.py +183 -0
  92. oceanstream-1.0.0rc1/oceanstream/echodata/seabed/detection.py +1905 -0
  93. oceanstream-1.0.0rc1/oceanstream/echodata/shoal/__init__.py +32 -0
  94. oceanstream-1.0.0rc1/oceanstream/echodata/shoal/detection.py +646 -0
  95. oceanstream-1.0.0rc1/oceanstream/echodata/stac/__init__.py +40 -0
  96. oceanstream-1.0.0rc1/oceanstream/echodata/stac/echodata_emit.py +820 -0
  97. oceanstream-1.0.0rc1/oceanstream/echodata/stac/segments.py +529 -0
  98. oceanstream-1.0.0rc1/oceanstream/echodata/storage.py +711 -0
  99. oceanstream-1.0.0rc1/oceanstream/echodata/survey_segments.py +188 -0
  100. oceanstream-1.0.0rc1/oceanstream/echodata/time_correction.py +60 -0
  101. oceanstream-1.0.0rc1/oceanstream/echodata/utils/__init__.py +8 -0
  102. oceanstream-1.0.0rc1/oceanstream/echodata/utils/encoding.py +83 -0
  103. oceanstream-1.0.0rc1/oceanstream/echodata/utils/mask_transforms.py +204 -0
  104. oceanstream-1.0.0rc1/oceanstream/geotrack/README.md +440 -0
  105. oceanstream-1.0.0rc1/oceanstream/geotrack/__init__.py +16 -0
  106. oceanstream-1.0.0rc1/oceanstream/geotrack/binning.py +90 -0
  107. oceanstream-1.0.0rc1/oceanstream/geotrack/campaign.py +418 -0
  108. oceanstream-1.0.0rc1/oceanstream/geotrack/csv_reader.py +243 -0
  109. oceanstream-1.0.0rc1/oceanstream/geotrack/deduplication.py +187 -0
  110. oceanstream-1.0.0rc1/oceanstream/geotrack/geoparquet_writer.py +210 -0
  111. oceanstream-1.0.0rc1/oceanstream/geotrack/interpolation.py +309 -0
  112. oceanstream-1.0.0rc1/oceanstream/geotrack/metadata.py +147 -0
  113. oceanstream-1.0.0rc1/oceanstream/geotrack/processor.py +2545 -0
  114. oceanstream-1.0.0rc1/oceanstream/geotrack/raster/__init__.py +9 -0
  115. oceanstream-1.0.0rc1/oceanstream/geotrack/raster/heatmap.py +405 -0
  116. oceanstream-1.0.0rc1/oceanstream/geotrack/report.py +600 -0
  117. oceanstream-1.0.0rc1/oceanstream/geotrack/tiling/__init__.py +15 -0
  118. oceanstream-1.0.0rc1/oceanstream/geotrack/tiling/pmtiles.py +857 -0
  119. oceanstream-1.0.0rc1/oceanstream/geotrack/validation.py +170 -0
  120. oceanstream-1.0.0rc1/oceanstream/hpc/__init__.py +22 -0
  121. oceanstream-1.0.0rc1/oceanstream/hpc/__main__.py +5 -0
  122. oceanstream-1.0.0rc1/oceanstream/hpc/cli.py +407 -0
  123. oceanstream-1.0.0rc1/oceanstream/hpc/cluster.py +214 -0
  124. oceanstream-1.0.0rc1/oceanstream/hpc/compare.py +105 -0
  125. oceanstream-1.0.0rc1/oceanstream/hpc/console.py +35 -0
  126. oceanstream-1.0.0rc1/oceanstream/hpc/cruise.py +382 -0
  127. oceanstream-1.0.0rc1/oceanstream/hpc/deploy.py +52 -0
  128. oceanstream-1.0.0rc1/oceanstream/hpc/flowlib.py +131 -0
  129. oceanstream-1.0.0rc1/oceanstream/hpc/flows.py +529 -0
  130. oceanstream-1.0.0rc1/oceanstream/hpc/node.py +181 -0
  131. oceanstream-1.0.0rc1/oceanstream/hpc/publish.py +68 -0
  132. oceanstream-1.0.0rc1/oceanstream/hpc/remote.py +138 -0
  133. oceanstream-1.0.0rc1/oceanstream/hpc/site.py +239 -0
  134. oceanstream-1.0.0rc1/oceanstream/hpc/slurm.py +332 -0
  135. oceanstream-1.0.0rc1/oceanstream/hpc/staging.py +190 -0
  136. oceanstream-1.0.0rc1/oceanstream/hpc/templates/process-day.sbatch +24 -0
  137. oceanstream-1.0.0rc1/oceanstream/hpc/templates/process-node.sbatch +24 -0
  138. oceanstream-1.0.0rc1/oceanstream/hpc/transfer.py +644 -0
  139. oceanstream-1.0.0rc1/oceanstream/multibeam/__init__.py +9 -0
  140. oceanstream-1.0.0rc1/oceanstream/multibeam/backscatter.py +101 -0
  141. oceanstream-1.0.0rc1/oceanstream/multibeam/grid.py +274 -0
  142. oceanstream-1.0.0rc1/oceanstream/multibeam/processor.py +471 -0
  143. oceanstream-1.0.0rc1/oceanstream/multibeam/quicklook.py +134 -0
  144. oceanstream-1.0.0rc1/oceanstream/multibeam/reader.py +125 -0
  145. oceanstream-1.0.0rc1/oceanstream/multibeam/soundings.py +100 -0
  146. oceanstream-1.0.0rc1/oceanstream/multibeam/tiles.py +418 -0
  147. oceanstream-1.0.0rc1/oceanstream/providers/__init__.py +17 -0
  148. oceanstream-1.0.0rc1/oceanstream/providers/base.py +69 -0
  149. oceanstream-1.0.0rc1/oceanstream/providers/cmems.py +300 -0
  150. oceanstream-1.0.0rc1/oceanstream/providers/emodnet.py +109 -0
  151. oceanstream-1.0.0rc1/oceanstream/providers/emso.py +134 -0
  152. oceanstream-1.0.0rc1/oceanstream/providers/factory.py +119 -0
  153. oceanstream-1.0.0rc1/oceanstream/providers/generic.py +163 -0
  154. oceanstream-1.0.0rc1/oceanstream/providers/models.py +18 -0
  155. oceanstream-1.0.0rc1/oceanstream/providers/norsoop.py +157 -0
  156. oceanstream-1.0.0rc1/oceanstream/providers/oceanlab.py +382 -0
  157. oceanstream-1.0.0rc1/oceanstream/providers/ooi.py +86 -0
  158. oceanstream-1.0.0rc1/oceanstream/providers/plocan.py +80 -0
  159. oceanstream-1.0.0rc1/oceanstream/providers/r2r/__init__.py +11 -0
  160. oceanstream-1.0.0rc1/oceanstream/providers/r2r/r2r.py +355 -0
  161. oceanstream-1.0.0rc1/oceanstream/providers/r2r/r2r_archive.py +90 -0
  162. oceanstream-1.0.0rc1/oceanstream/providers/r2r/r2r_metadata.py +13 -0
  163. oceanstream-1.0.0rc1/oceanstream/providers/r2r_archive.py +138 -0
  164. oceanstream-1.0.0rc1/oceanstream/providers/r2r_metadata.py +144 -0
  165. oceanstream-1.0.0rc1/oceanstream/providers/saildrone.py +312 -0
  166. oceanstream-1.0.0rc1/oceanstream/semantic/__init__.py +3 -0
  167. oceanstream-1.0.0rc1/oceanstream/semantic/data/README.md +87 -0
  168. oceanstream-1.0.0rc1/oceanstream/semantic/data/cf-standard-names.json +131 -0
  169. oceanstream-1.0.0rc1/oceanstream/semantic/data/saildrone-aliases.json +293 -0
  170. oceanstream-1.0.0rc1/oceanstream/semantic/semantic.py +201 -0
  171. oceanstream-1.0.0rc1/oceanstream/sensors/README.md +298 -0
  172. oceanstream-1.0.0rc1/oceanstream/sensors/__init__.py +16 -0
  173. oceanstream-1.0.0rc1/oceanstream/sensors/catalogue.py +194 -0
  174. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/README.md +97 -0
  175. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/airmar-150wx/README.md +40 -0
  176. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/airmar-150wx/sensor.json +42 -0
  177. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/apogee-si111/README.md +34 -0
  178. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/apogee-si111/sensor.json +21 -0
  179. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/gnss-navigation/sensor.json +35 -0
  180. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/imu-navigation/README.md +38 -0
  181. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/imu-navigation/sensor.json +41 -0
  182. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/kipp-zonen-cgr/README.md +45 -0
  183. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/kipp-zonen-cgr/sensor.json +25 -0
  184. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/kipp-zonen-cmp/README.md +35 -0
  185. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/kipp-zonen-cmp/sensor.json +23 -0
  186. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/lci90i-winch/README.md +60 -0
  187. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/lci90i-winch/sensor.json +41 -0
  188. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/licor-li190r/README.md +34 -0
  189. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/licor-li190r/sensor.json +21 -0
  190. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/nortek-ad2cp/README.md +32 -0
  191. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/nortek-ad2cp/sensor.json +55 -0
  192. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/sbe-911plus/README.md +66 -0
  193. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/sbe-911plus/sensor.json +107 -0
  194. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/sbe19plus/sensor.json +64 -0
  195. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/sbe37-odo/README.md +37 -0
  196. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/sbe37-odo/sensor.json +32 -0
  197. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/thermistor-0.5m/README.md +34 -0
  198. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/thermistor-0.5m/sensor.json +21 -0
  199. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/valeport-minisvs/README.md +64 -0
  200. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/valeport-minisvs/sensor.json +29 -0
  201. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/wave-imu/README.md +33 -0
  202. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/wave-imu/sensor.json +18 -0
  203. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/wetlabs-eco-flntu/README.md +53 -0
  204. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/wetlabs-eco-flntu/sensor.json +24 -0
  205. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/wetlabs-flbbcd/README.md +31 -0
  206. oceanstream-1.0.0rc1/oceanstream/sensors/definitions/wetlabs-flbbcd/sensor.json +20 -0
  207. oceanstream-1.0.0rc1/oceanstream/sensors/loader.py +80 -0
  208. oceanstream-1.0.0rc1/oceanstream/sensors/processor_base.py +105 -0
  209. oceanstream-1.0.0rc1/oceanstream/sensors/processors/__init__.py +75 -0
  210. oceanstream-1.0.0rc1/oceanstream/sensors/processors/eco_flntu.py +143 -0
  211. oceanstream-1.0.0rc1/oceanstream/sensors/processors/example_sensor.py +50 -0
  212. oceanstream-1.0.0rc1/oceanstream/sensors/processors/lci90i.py +267 -0
  213. oceanstream-1.0.0rc1/oceanstream/sensors/processors/minisvs.py +115 -0
  214. oceanstream-1.0.0rc1/oceanstream/sensors/processors/nmea_gnss.py +457 -0
  215. oceanstream-1.0.0rc1/oceanstream/sensors/processors/sbe911.py +1150 -0
  216. oceanstream-1.0.0rc1/oceanstream/sensors/saildrone.py +97 -0
  217. oceanstream-1.0.0rc1/oceanstream/sources/__init__.py +1 -0
  218. oceanstream-1.0.0rc1/oceanstream/sources/argovis.py +170 -0
  219. oceanstream-1.0.0rc1/oceanstream/sources/erddap.py +189 -0
  220. oceanstream-1.0.0rc1/oceanstream/sources/gps.py +107 -0
  221. oceanstream-1.0.0rc1/oceanstream/sources/mirror.py +380 -0
  222. oceanstream-1.0.0rc1/oceanstream/sources/ncei.py +99 -0
  223. oceanstream-1.0.0rc1/oceanstream/stac/__init__.py +3 -0
  224. oceanstream-1.0.0rc1/oceanstream/stac/echodata.py +393 -0
  225. oceanstream-1.0.0rc1/oceanstream/stac/emit.py +316 -0
  226. oceanstream-1.0.0rc1/oceanstream/stac/publish.py +177 -0
  227. oceanstream-1.0.0rc1/oceanstream/stac/tracks.py +88 -0
  228. oceanstream-1.0.0rc1/oceanstream/storage/__init__.py +5 -0
  229. oceanstream-1.0.0rc1/oceanstream/storage/azure_blob.py +23 -0
  230. oceanstream-1.0.0rc1/oceanstream/storage/config.py +267 -0
  231. oceanstream-1.0.0rc1/oceanstream/storage/crypto.py +143 -0
  232. oceanstream-1.0.0rc1/oceanstream/storage/filesystem.py +366 -0
  233. oceanstream-1.0.0rc1/oceanstream/storage/local.py +11 -0
  234. oceanstream-1.0.0rc1/oceanstream/storage/manager.py +333 -0
  235. oceanstream-1.0.0rc1/oceanstream/storage/providers.py +275 -0
  236. oceanstream-1.0.0rc1/pyproject.toml +185 -0
  237. oceanstream-0.0.15.dev0/.flake8 +0 -29
  238. oceanstream-0.0.15.dev0/.gitattributes +0 -0
  239. oceanstream-0.0.15.dev0/.gitignore +0 -178
  240. oceanstream-0.0.15.dev0/CODE_OF_CONDUCT.md +0 -128
  241. oceanstream-0.0.15.dev0/MANIFEST.in +0 -9
  242. oceanstream-0.0.15.dev0/PKG-INFO +0 -179
  243. oceanstream-0.0.15.dev0/README.md +0 -152
  244. oceanstream-0.0.15.dev0/notebooks/README.md +0 -1
  245. oceanstream-0.0.15.dev0/oceanstream/__init__.py +0 -5
  246. oceanstream-0.0.15.dev0/oceanstream/cli/__init__.py +0 -3
  247. oceanstream-0.0.15.dev0/oceanstream/cli/main.py +0 -363
  248. oceanstream-0.0.15.dev0/oceanstream/cli/requirements.txt +0 -1
  249. oceanstream-0.0.15.dev0/oceanstream/convert/__init__.py +0 -5
  250. oceanstream-0.0.15.dev0/oceanstream/convert/convert_raw_file.py +0 -53
  251. oceanstream-0.0.15.dev0/oceanstream/core.py +0 -174
  252. oceanstream-0.0.15.dev0/oceanstream/denoise/__init__.py +0 -2
  253. oceanstream-0.0.15.dev0/oceanstream/denoise/apply_masks.py +0 -49
  254. oceanstream-0.0.15.dev0/oceanstream/denoise/applying_masks_handler.py +0 -173
  255. oceanstream-0.0.15.dev0/oceanstream/denoise/background_noise_remover.py +0 -97
  256. oceanstream-0.0.15.dev0/oceanstream/denoise/create_masks.py +0 -87
  257. oceanstream-0.0.15.dev0/oceanstream/denoise/noise_masks.py +0 -398
  258. oceanstream-0.0.15.dev0/oceanstream/denoise/requirements.txt +0 -0
  259. oceanstream-0.0.15.dev0/oceanstream/denoise/types.py +0 -73
  260. oceanstream-0.0.15.dev0/oceanstream/echodata/__init__.py +0 -5
  261. oceanstream-0.0.15.dev0/oceanstream/echodata/dataset.py +0 -586
  262. oceanstream-0.0.15.dev0/oceanstream/echodata/ensure_time_continuity.py +0 -75
  263. oceanstream-0.0.15.dev0/oceanstream/echodata/mvbs_computation.py +0 -77
  264. oceanstream-0.0.15.dev0/oceanstream/echodata/raw_handler.py +0 -577
  265. oceanstream-0.0.15.dev0/oceanstream/echodata/requirements.txt +0 -0
  266. oceanstream-0.0.15.dev0/oceanstream/echodata/sv_computation.py +0 -125
  267. oceanstream-0.0.15.dev0/oceanstream/echodata/sv_dataset_extension.py +0 -125
  268. oceanstream-0.0.15.dev0/oceanstream/echodata/sv_interpolation.py +0 -259
  269. oceanstream-0.0.15.dev0/oceanstream/echodata/target_strength_computation.py +0 -109
  270. oceanstream-0.0.15.dev0/oceanstream/exports/__init__.py +0 -6
  271. oceanstream-0.0.15.dev0/oceanstream/exports/csv/csv_export_from_Sv.py +0 -183
  272. oceanstream-0.0.15.dev0/oceanstream/exports/csv/csv_export_from_raw.py +0 -92
  273. oceanstream-0.0.15.dev0/oceanstream/exports/csv/csv_export_nasc.py +0 -135
  274. oceanstream-0.0.15.dev0/oceanstream/exports/frequency_differencing_handler.py +0 -210
  275. oceanstream-0.0.15.dev0/oceanstream/exports/nasc.py +0 -23
  276. oceanstream-0.0.15.dev0/oceanstream/exports/nasc_computation.py +0 -62
  277. oceanstream-0.0.15.dev0/oceanstream/exports/requirements.txt +0 -4
  278. oceanstream-0.0.15.dev0/oceanstream/exports/shoals/shoal_detection_handler.py +0 -109
  279. oceanstream-0.0.15.dev0/oceanstream/exports/shoals/shoal_process.py +0 -224
  280. oceanstream-0.0.15.dev0/oceanstream/exports/shoals/shoals_handler.py +0 -35
  281. oceanstream-0.0.15.dev0/oceanstream/plot/__init__.py +0 -2
  282. oceanstream-0.0.15.dev0/oceanstream/plot/echogram.py +0 -579
  283. oceanstream-0.0.15.dev0/oceanstream/plot/requirements.txt +0 -2
  284. oceanstream-0.0.15.dev0/oceanstream/process/__init__.py +0 -23
  285. oceanstream-0.0.15.dev0/oceanstream/process/aws/__init__.py +0 -9
  286. oceanstream-0.0.15.dev0/oceanstream/process/aws/s3.py +0 -94
  287. oceanstream-0.0.15.dev0/oceanstream/process/azure/__init__.py +0 -8
  288. oceanstream-0.0.15.dev0/oceanstream/process/azure/azure_processor.py +0 -66
  289. oceanstream-0.0.15.dev0/oceanstream/process/azure/blob_storage.py +0 -85
  290. oceanstream-0.0.15.dev0/oceanstream/process/cloud.py +0 -21
  291. oceanstream-0.0.15.dev0/oceanstream/process/combine_zarr.py +0 -89
  292. oceanstream-0.0.15.dev0/oceanstream/process/file_processor.py +0 -237
  293. oceanstream-0.0.15.dev0/oceanstream/process/file_processor_class.py +0 -217
  294. oceanstream-0.0.15.dev0/oceanstream/process/folder_processor.py +0 -395
  295. oceanstream-0.0.15.dev0/oceanstream/process/process.py +0 -81
  296. oceanstream-0.0.15.dev0/oceanstream/process/processed_data_io.py +0 -140
  297. oceanstream-0.0.15.dev0/oceanstream/process/requirements.txt +0 -0
  298. oceanstream-0.0.15.dev0/oceanstream/process/utils.py +0 -226
  299. oceanstream-0.0.15.dev0/oceanstream/settings/__init__.py +0 -1
  300. oceanstream-0.0.15.dev0/oceanstream/settings/config.py +0 -17
  301. oceanstream-0.0.15.dev0/oceanstream/settings/defaults.config.json +0 -120
  302. oceanstream-0.0.15.dev0/oceanstream/utils.py +0 -101
  303. oceanstream-0.0.15.dev0/oceanstream.egg-info/PKG-INFO +0 -179
  304. oceanstream-0.0.15.dev0/oceanstream.egg-info/SOURCES.txt +0 -78
  305. oceanstream-0.0.15.dev0/oceanstream.egg-info/dependency_links.txt +0 -1
  306. oceanstream-0.0.15.dev0/oceanstream.egg-info/entry_points.txt +0 -2
  307. oceanstream-0.0.15.dev0/oceanstream.egg-info/requires.txt +0 -31
  308. oceanstream-0.0.15.dev0/oceanstream.egg-info/top_level.txt +0 -1
  309. oceanstream-0.0.15.dev0/pyproject.toml +0 -8
  310. oceanstream-0.0.15.dev0/requirements-dev.txt +0 -52
  311. oceanstream-0.0.15.dev0/requirements-local.txt +0 -4
  312. oceanstream-0.0.15.dev0/requirements.txt +0 -10
  313. oceanstream-0.0.15.dev0/setup.cfg +0 -60
  314. oceanstream-0.0.15.dev0/setup.py +0 -19
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023 Pine View Software AS
3
+ Copyright (c) 2026 OceanStream
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -0,0 +1,204 @@
1
+ Metadata-Version: 2.4
2
+ Name: oceanstream
3
+ Version: 1.0.0rc1
4
+ Summary: Process ship, USV and mooring data into GeoParquet, Zarr and STAC: tracks and sensors, echosounders, multibeam and ADCP.
5
+ License: MIT
6
+ License-File: LICENSE
7
+ Keywords: oceanography,geoparquet,stac,saildrone,geospatial,usv,marine-data,echosounder,multibeam,adcp
8
+ Author: Andrei Neacsu
9
+ Author-email: andrei@oceanstream.io
10
+ Requires-Python: >=3.11,<3.14
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Topic :: Scientific/Engineering :: GIS
21
+ Classifier: Topic :: Scientific/Engineering :: Oceanography
22
+ Provides-Extra: adcp
23
+ Provides-Extra: all
24
+ Provides-Extra: echodata
25
+ Provides-Extra: echodata-viz
26
+ Provides-Extra: multibeam
27
+ Provides-Extra: norsoop
28
+ Requires-Dist: adlfs (>=2024.4.0) ; extra == "echodata" or extra == "all"
29
+ Requires-Dist: azure-storage-blob (>=12.19)
30
+ Requires-Dist: bokeh (>=3.3) ; extra == "echodata-viz" or extra == "all"
31
+ Requires-Dist: bottleneck (==1.5.0) ; extra == "echodata" or extra == "all"
32
+ Requires-Dist: copernicusmarine (>=1.0.0) ; extra == "echodata" or extra == "all"
33
+ Requires-Dist: dask[complete] (>=2024.9.0) ; extra == "echodata" or extra == "all"
34
+ Requires-Dist: datashader (>=0.16) ; extra == "echodata-viz" or extra == "all"
35
+ Requires-Dist: distributed (>=2024.9.0) ; extra == "echodata" or extra == "all"
36
+ Requires-Dist: dolfyn (>=1.3) ; extra == "adcp" or extra == "all"
37
+ Requires-Dist: erddapy (>=2.0) ; extra == "norsoop" or extra == "all"
38
+ Requires-Dist: fsspec (==2025.3.2) ; extra == "echodata" or extra == "all"
39
+ Requires-Dist: geopandas (>=0.14)
40
+ Requires-Dist: gsw (>=3.6.0) ; extra == "echodata" or extra == "all"
41
+ Requires-Dist: haversine (>=2.8) ; extra == "echodata" or extra == "all"
42
+ Requires-Dist: holoviews (>=1.18) ; extra == "echodata-viz" or extra == "all"
43
+ Requires-Dist: hvplot (>=0.9) ; extra == "echodata-viz" or extra == "all"
44
+ Requires-Dist: matplotlib (>=3.7) ; extra == "echodata-viz" or extra == "multibeam" or extra == "all"
45
+ Requires-Dist: netcdf4 (>=1.6) ; extra == "echodata" or extra == "all"
46
+ Requires-Dist: numcodecs (==0.14.1) ; extra == "echodata" or extra == "all"
47
+ Requires-Dist: numpy (>=1.26.4,<2.1) ; (python_version < "3.13") and (extra == "echodata" or extra == "multibeam" or extra == "all")
48
+ Requires-Dist: numpy (>=2.1,<2.3) ; (python_version >= "3.13") and (extra == "echodata" or extra == "multibeam" or extra == "all")
49
+ Requires-Dist: oceanstream-echopype (==0.11.1a3) ; extra == "echodata" or extra == "all"
50
+ Requires-Dist: openpyxl (>=3.0) ; extra == "echodata" or extra == "all"
51
+ Requires-Dist: pandas (>=2.1)
52
+ Requires-Dist: panel (>=1.3) ; extra == "echodata-viz" or extra == "all"
53
+ Requires-Dist: pmtiles (>=3.4) ; extra == "multibeam"
54
+ Requires-Dist: pyarrow (>=14)
55
+ Requires-Dist: pydantic (>=2,<3)
56
+ Requires-Dist: pynmea2 (>=1.18)
57
+ Requires-Dist: pyproj (>=3.6) ; extra == "multibeam" or extra == "all"
58
+ Requires-Dist: python-dotenv (>=1.0)
59
+ Requires-Dist: rasterio (>=1.3) ; extra == "multibeam" or extra == "all"
60
+ Requires-Dist: requests (>=2.31) ; extra == "all"
61
+ Requires-Dist: rich (>=13.7)
62
+ Requires-Dist: s3fs (==2025.3.2) ; extra == "echodata" or extra == "all"
63
+ Requires-Dist: scipy (>=1.12) ; extra == "multibeam" or extra == "adcp" or extra == "all"
64
+ Requires-Dist: seabirdscientific (>=2.7,<2.7.9)
65
+ Requires-Dist: setuptools (<81) ; extra == "adcp" or extra == "all"
66
+ Requires-Dist: shapely (>=2.0)
67
+ Requires-Dist: themachinethatgoesping (==0.37.1) ; (python_version >= "3.12") and (extra == "multibeam")
68
+ Requires-Dist: tqdm (>=4.66)
69
+ Requires-Dist: typer (>=0.12)
70
+ Requires-Dist: xarray (>=2024.11.0,<2026.9) ; extra == "echodata" or extra == "adcp" or extra == "all"
71
+ Requires-Dist: zarr (>=2.16) ; extra == "echodata" or extra == "all"
72
+ Project-URL: Documentation, https://github.com/OceanStreamIO/oceanstream-cli/tree/main/docs
73
+ Project-URL: Homepage, https://oceanstream.io
74
+ Project-URL: Issues, https://github.com/OceanStreamIO/oceanstream-cli/issues
75
+ Project-URL: Repository, https://github.com/OceanStreamIO/oceanstream-cli
76
+ Description-Content-Type: text/markdown
77
+
78
+ # OceanStream
79
+
80
+ OceanStream converts raw oceanographic data from ships, uncrewed surface vehicles and moorings into analysis-ready datasets:
81
+
82
+ - **Tracks and sensors**: Saildrone CSVs, R2R cruise archives, NMEA logs, SeaBird CTD `.hex` files, and CSV or GeoCSV from CMEMS, EMODnet, EMSO, NorSOOP, OceanLab, OOI and PLOCAN become GeoParquet partitioned by latitude and longitude, with STAC metadata, PMTiles of the track and COG heatmaps.
83
+ - **Echosounders**: Simrad EK60 and EK80 `.raw` files become EchoData Zarr stores, then Sv, denoised Sv, MVBS, NASC and echograms.
84
+ - **Multibeam**: Kongsberg `.all` files become per-day soundings in Parquet, bathymetry and backscatter grids as Cloud Optimized GeoTIFFs, and PMTiles.
85
+ - **ADCP**: Teledyne RDI `.raw` files become ensemble-averaged velocity profiles in NetCDF.
86
+
87
+ It also keeps a registry of campaigns, collects Argo float profiles along a cruise track, and runs the echosounder pipeline on a Slurm cluster over SSH.
88
+
89
+ ## Installation
90
+
91
+ Python 3.11 to 3.13. A plain install processes tracks and sensor data, including NMEA logs and SeaBird CTD files. Add extras for the other instruments:
92
+
93
+ ```bash
94
+ pip install oceanstream
95
+ pip install "oceanstream[echodata,echodata-viz]"
96
+ ```
97
+
98
+ Release candidates install only when named, for example `pip install "oceanstream==1.0.0rc1"`.
99
+
100
+ | Extra | Installs | Needed for |
101
+ |-------|----------|------------|
102
+ | `echodata` | oceanstream-echopype, xarray, dask, zarr, netCDF4, fsspec, s3fs, gsw, copernicusmarine and others | `process echodata` |
103
+ | `echodata-viz` | matplotlib, hvplot, datashader, holoviews, panel, bokeh | Echogram plots |
104
+ | `multibeam` | themachinethatgoesping (Python 3.12+), scipy, rasterio, pyproj, matplotlib, pmtiles | `process multibeam` |
105
+ | `adcp` | dolfyn, scipy, xarray | `process adcp` |
106
+ | `norsoop` | erddapy | NorSOOP FerryBox data |
107
+ | `all` | Every extra except `multibeam` | |
108
+
109
+ The `echodata` extra installs [oceanstream-echopype](https://pypi.org/project/oceanstream-echopype/), OceanStream's fork of [echopype](https://github.com/OSOceanAcoustics/echopype). It provides the same `echopype` module as upstream echopype and replaces it, so run `pip uninstall echopype` before installing the extra into an environment that has echopype.
110
+
111
+ PMTiles of tracks need the [tippecanoe](https://github.com/felt/tippecanoe) and [pmtiles](https://github.com/protomaps/go-pmtiles) executables on `PATH`. Heatmaps also need rasterio: `pip install rasterio`, or the `all` extra.
112
+
113
+ ## Command line
114
+
115
+ ```bash
116
+ # Saildrone CSVs -> ./out/TPOS_2023/ (GeoParquet partitions)
117
+ oceanstream process geotrack convert \
118
+ --input-source ./raw/saildrone --output-dir ./out \
119
+ --campaign-id TPOS_2023 --provider noaa_pmel --yes
120
+
121
+ # The same, with PMTiles of the track and heatmaps
122
+ oceanstream process geotrack convert \
123
+ --input-source ./raw/saildrone --output-dir ./out \
124
+ --campaign-id TPOS_2023 --provider noaa_pmel --yes \
125
+ --generate-pmtiles --generate-heatmaps
126
+
127
+ # EK80 .raw files -> ./out/SE2204/echodata/raw/*.zarr, then Sv
128
+ oceanstream process echodata convert \
129
+ --input-source ./raw/ek80 --output-dir ./out --campaign-id SE2204 --sonar-model EK80
130
+ oceanstream process echodata compute-sv \
131
+ --input-source ./out/SE2204/echodata/raw -o ./out/SE2204/echodata/sv
132
+
133
+ # Kongsberg .all files -> soundings, grids and quick-looks
134
+ oceanstream process multibeam --input-dir ./raw/em304 --output-dir ./out/multibeam
135
+
136
+ # RDI ADCP .raw files -> NetCDF
137
+ oceanstream process adcp --input-dir ./raw/adcp --output-dir ./out/adcp
138
+
139
+ # Campaigns and providers
140
+ oceanstream campaign list
141
+ oceanstream providers
142
+ ```
143
+
144
+ `oceanstream --help` and `--help` on each command list every option. The echosounder steps after Sv are `denoise`, `enrich-location`, `compute-mvbs`, `compute-nasc` and `plot`. `process echodata presets` lists the denoise presets.
145
+
146
+ ## Python
147
+
148
+ ```python
149
+ from pathlib import Path
150
+ from oceanstream.geotrack import convert
151
+ from oceanstream.providers import get_provider
152
+
153
+ convert(
154
+ provider=get_provider("noaa_pmel"),
155
+ input_source=Path("./raw/saildrone"),
156
+ output_dir=Path("./out"),
157
+ campaign_id="TPOS_2023",
158
+ yes=True, # skip the confirmation prompt
159
+ )
160
+ ```
161
+
162
+ `oceanstream.echodata.EchodataProcessor` runs the whole echosounder chain, from conversion to echograms, in one call.
163
+
164
+ ## Output
165
+
166
+ A geotrack campaign is written as:
167
+
168
+ ```
169
+ out/TPOS_2023/
170
+ ├── lat_bin=lat_20_22/lon_bin=lon_-158_-156/<uuid>-0.parquet
171
+ ├── stac/ # collection.json and items, when semantic mapping is enabled
172
+ ├── tiles/ # track.pmtiles, with --generate-pmtiles
173
+ └── heatmaps/ # COG rasters, with --generate-heatmaps
174
+ ```
175
+
176
+ Partitions cover 2° × 2°. Each file has a WKB point `geometry` column and GeoParquet 1.1 metadata, so GIS tools read the positions directly:
177
+
178
+ ```python
179
+ import geopandas as gpd
180
+
181
+ gdf = gpd.read_parquet("out/TPOS_2023", ignore_prefixes=[".", "_", "stac", "tiles", "heatmaps"])
182
+ ```
183
+
184
+ ```sql
185
+ -- DuckDB
186
+ SELECT * FROM read_parquet('out/TPOS_2023/**/*.parquet', hive_partitioning = true);
187
+ ```
188
+
189
+ ## Documentation
190
+
191
+ Guides in the repository's [docs folder](https://github.com/OceanStreamIO/oceanstream-cli/tree/main/docs):
192
+
193
+ - [Denoise presets](https://github.com/OceanStreamIO/oceanstream-cli/blob/main/docs/denoise-presets.md)
194
+ - [Echo integration](https://github.com/OceanStreamIO/oceanstream-cli/blob/main/docs/echo-integration.md)
195
+ - [Multibeam](https://github.com/OceanStreamIO/oceanstream-cli/blob/main/docs/multibeam.md)
196
+ - [Argo profiles](https://github.com/OceanStreamIO/oceanstream-cli/blob/main/docs/argo.md)
197
+ - [Running on a Slurm cluster](https://github.com/OceanStreamIO/oceanstream-cli/blob/main/docs/hpc.md) and [processing campaigns there](https://github.com/OceanStreamIO/oceanstream-cli/blob/main/docs/hpc-campaigns.md)
198
+
199
+ Report problems at [github.com/OceanStreamIO/oceanstream-cli/issues](https://github.com/OceanStreamIO/oceanstream-cli/issues).
200
+
201
+ ## License
202
+
203
+ MIT. See [LICENSE](https://github.com/OceanStreamIO/oceanstream-cli/blob/main/LICENSE). The oceanstream-echopype dependency is licensed under Apache 2.0.
204
+
@@ -0,0 +1,126 @@
1
+ # OceanStream
2
+
3
+ OceanStream converts raw oceanographic data from ships, uncrewed surface vehicles and moorings into analysis-ready datasets:
4
+
5
+ - **Tracks and sensors**: Saildrone CSVs, R2R cruise archives, NMEA logs, SeaBird CTD `.hex` files, and CSV or GeoCSV from CMEMS, EMODnet, EMSO, NorSOOP, OceanLab, OOI and PLOCAN become GeoParquet partitioned by latitude and longitude, with STAC metadata, PMTiles of the track and COG heatmaps.
6
+ - **Echosounders**: Simrad EK60 and EK80 `.raw` files become EchoData Zarr stores, then Sv, denoised Sv, MVBS, NASC and echograms.
7
+ - **Multibeam**: Kongsberg `.all` files become per-day soundings in Parquet, bathymetry and backscatter grids as Cloud Optimized GeoTIFFs, and PMTiles.
8
+ - **ADCP**: Teledyne RDI `.raw` files become ensemble-averaged velocity profiles in NetCDF.
9
+
10
+ It also keeps a registry of campaigns, collects Argo float profiles along a cruise track, and runs the echosounder pipeline on a Slurm cluster over SSH.
11
+
12
+ ## Installation
13
+
14
+ Python 3.11 to 3.13. A plain install processes tracks and sensor data, including NMEA logs and SeaBird CTD files. Add extras for the other instruments:
15
+
16
+ ```bash
17
+ pip install oceanstream
18
+ pip install "oceanstream[echodata,echodata-viz]"
19
+ ```
20
+
21
+ Release candidates install only when named, for example `pip install "oceanstream==1.0.0rc1"`.
22
+
23
+ | Extra | Installs | Needed for |
24
+ |-------|----------|------------|
25
+ | `echodata` | oceanstream-echopype, xarray, dask, zarr, netCDF4, fsspec, s3fs, gsw, copernicusmarine and others | `process echodata` |
26
+ | `echodata-viz` | matplotlib, hvplot, datashader, holoviews, panel, bokeh | Echogram plots |
27
+ | `multibeam` | themachinethatgoesping (Python 3.12+), scipy, rasterio, pyproj, matplotlib, pmtiles | `process multibeam` |
28
+ | `adcp` | dolfyn, scipy, xarray | `process adcp` |
29
+ | `norsoop` | erddapy | NorSOOP FerryBox data |
30
+ | `all` | Every extra except `multibeam` | |
31
+
32
+ The `echodata` extra installs [oceanstream-echopype](https://pypi.org/project/oceanstream-echopype/), OceanStream's fork of [echopype](https://github.com/OSOceanAcoustics/echopype). It provides the same `echopype` module as upstream echopype and replaces it, so run `pip uninstall echopype` before installing the extra into an environment that has echopype.
33
+
34
+ PMTiles of tracks need the [tippecanoe](https://github.com/felt/tippecanoe) and [pmtiles](https://github.com/protomaps/go-pmtiles) executables on `PATH`. Heatmaps also need rasterio: `pip install rasterio`, or the `all` extra.
35
+
36
+ ## Command line
37
+
38
+ ```bash
39
+ # Saildrone CSVs -> ./out/TPOS_2023/ (GeoParquet partitions)
40
+ oceanstream process geotrack convert \
41
+ --input-source ./raw/saildrone --output-dir ./out \
42
+ --campaign-id TPOS_2023 --provider noaa_pmel --yes
43
+
44
+ # The same, with PMTiles of the track and heatmaps
45
+ oceanstream process geotrack convert \
46
+ --input-source ./raw/saildrone --output-dir ./out \
47
+ --campaign-id TPOS_2023 --provider noaa_pmel --yes \
48
+ --generate-pmtiles --generate-heatmaps
49
+
50
+ # EK80 .raw files -> ./out/SE2204/echodata/raw/*.zarr, then Sv
51
+ oceanstream process echodata convert \
52
+ --input-source ./raw/ek80 --output-dir ./out --campaign-id SE2204 --sonar-model EK80
53
+ oceanstream process echodata compute-sv \
54
+ --input-source ./out/SE2204/echodata/raw -o ./out/SE2204/echodata/sv
55
+
56
+ # Kongsberg .all files -> soundings, grids and quick-looks
57
+ oceanstream process multibeam --input-dir ./raw/em304 --output-dir ./out/multibeam
58
+
59
+ # RDI ADCP .raw files -> NetCDF
60
+ oceanstream process adcp --input-dir ./raw/adcp --output-dir ./out/adcp
61
+
62
+ # Campaigns and providers
63
+ oceanstream campaign list
64
+ oceanstream providers
65
+ ```
66
+
67
+ `oceanstream --help` and `--help` on each command list every option. The echosounder steps after Sv are `denoise`, `enrich-location`, `compute-mvbs`, `compute-nasc` and `plot`. `process echodata presets` lists the denoise presets.
68
+
69
+ ## Python
70
+
71
+ ```python
72
+ from pathlib import Path
73
+ from oceanstream.geotrack import convert
74
+ from oceanstream.providers import get_provider
75
+
76
+ convert(
77
+ provider=get_provider("noaa_pmel"),
78
+ input_source=Path("./raw/saildrone"),
79
+ output_dir=Path("./out"),
80
+ campaign_id="TPOS_2023",
81
+ yes=True, # skip the confirmation prompt
82
+ )
83
+ ```
84
+
85
+ `oceanstream.echodata.EchodataProcessor` runs the whole echosounder chain, from conversion to echograms, in one call.
86
+
87
+ ## Output
88
+
89
+ A geotrack campaign is written as:
90
+
91
+ ```
92
+ out/TPOS_2023/
93
+ ├── lat_bin=lat_20_22/lon_bin=lon_-158_-156/<uuid>-0.parquet
94
+ ├── stac/ # collection.json and items, when semantic mapping is enabled
95
+ ├── tiles/ # track.pmtiles, with --generate-pmtiles
96
+ └── heatmaps/ # COG rasters, with --generate-heatmaps
97
+ ```
98
+
99
+ Partitions cover 2° × 2°. Each file has a WKB point `geometry` column and GeoParquet 1.1 metadata, so GIS tools read the positions directly:
100
+
101
+ ```python
102
+ import geopandas as gpd
103
+
104
+ gdf = gpd.read_parquet("out/TPOS_2023", ignore_prefixes=[".", "_", "stac", "tiles", "heatmaps"])
105
+ ```
106
+
107
+ ```sql
108
+ -- DuckDB
109
+ SELECT * FROM read_parquet('out/TPOS_2023/**/*.parquet', hive_partitioning = true);
110
+ ```
111
+
112
+ ## Documentation
113
+
114
+ Guides in the repository's [docs folder](https://github.com/OceanStreamIO/oceanstream-cli/tree/main/docs):
115
+
116
+ - [Denoise presets](https://github.com/OceanStreamIO/oceanstream-cli/blob/main/docs/denoise-presets.md)
117
+ - [Echo integration](https://github.com/OceanStreamIO/oceanstream-cli/blob/main/docs/echo-integration.md)
118
+ - [Multibeam](https://github.com/OceanStreamIO/oceanstream-cli/blob/main/docs/multibeam.md)
119
+ - [Argo profiles](https://github.com/OceanStreamIO/oceanstream-cli/blob/main/docs/argo.md)
120
+ - [Running on a Slurm cluster](https://github.com/OceanStreamIO/oceanstream-cli/blob/main/docs/hpc.md) and [processing campaigns there](https://github.com/OceanStreamIO/oceanstream-cli/blob/main/docs/hpc-campaigns.md)
121
+
122
+ Report problems at [github.com/OceanStreamIO/oceanstream-cli/issues](https://github.com/OceanStreamIO/oceanstream-cli/issues).
123
+
124
+ ## License
125
+
126
+ MIT. See [LICENSE](https://github.com/OceanStreamIO/oceanstream-cli/blob/main/LICENSE). The oceanstream-echopype dependency is licensed under Apache 2.0.
@@ -0,0 +1,117 @@
1
+ """Oceanstream package
2
+
3
+ Process oceanographic measurements into partitioned GeoParquet datasets.
4
+
5
+ SDK Usage:
6
+ # Quick start
7
+ from oceanstream import get_provider, convert
8
+
9
+ provider = get_provider('saildrone')
10
+ convert(provider, input_source='./data', output_dir='./output', campaign_id='my_campaign')
11
+
12
+ # Or use the processor class directly
13
+ from oceanstream import GeotrackProcessor
14
+
15
+ processor = GeotrackProcessor(provider=provider, campaign_id='my_campaign')
16
+ csv_files = processor.scan_input_source(Path('./data'))
17
+ df = processor.process_files(csv_files)
18
+ """
19
+
20
+ from importlib.metadata import PackageNotFoundError
21
+ from importlib.metadata import version as _version
22
+
23
+ try:
24
+ __version__ = _version("oceanstream")
25
+ except PackageNotFoundError: # running from a source tree that was never installed
26
+ __version__ = "0+unknown"
27
+
28
+ # Lazy imports for SDK convenience
29
+ # These are loaded on first access to avoid import overhead
30
+
31
+
32
+ def __getattr__(name: str):
33
+ """Lazy import SDK modules for convenience access."""
34
+ # Provider functions
35
+ if name == "get_provider":
36
+ from .providers import get_provider
37
+ return get_provider
38
+ if name == "list_providers":
39
+ from .providers import list_providers
40
+ return list_providers
41
+ if name == "ProviderBase":
42
+ from .providers import ProviderBase
43
+ return ProviderBase
44
+
45
+ # Geotrack functions
46
+ if name == "convert":
47
+ from .geotrack import convert
48
+ return convert
49
+ if name == "process":
50
+ from .geotrack import process
51
+ return process
52
+ if name == "generate_tiles":
53
+ from .geotrack import generate_tiles
54
+ return generate_tiles
55
+ if name == "generate_report":
56
+ from .geotrack import generate_report
57
+ return generate_report
58
+ if name == "GeotrackProcessor":
59
+ from .geotrack.processor import GeotrackProcessor
60
+ return GeotrackProcessor
61
+
62
+ # Sensor classes
63
+ if name == "Sensor":
64
+ from .sensors import Sensor
65
+ return Sensor
66
+ if name == "SensorCatalogue":
67
+ from .sensors import SensorCatalogue
68
+ return SensorCatalogue
69
+ if name == "get_sensor_catalogue":
70
+ from .sensors import get_sensor_catalogue
71
+ return get_sensor_catalogue
72
+
73
+ # Semantic mapping
74
+ if name == "SemanticMapper":
75
+ from .semantic import SemanticMapper
76
+ return SemanticMapper
77
+ if name == "SemanticConfig":
78
+ from .semantic import SemanticConfig
79
+ return SemanticConfig
80
+
81
+ # STAC
82
+ if name == "emit_stac_collection_and_item":
83
+ from .stac import emit_stac_collection_and_item
84
+ return emit_stac_collection_and_item
85
+
86
+ # Settings
87
+ if name == "Settings":
88
+ from .config.settings import Settings
89
+ return Settings
90
+
91
+ raise AttributeError(f"module 'oceanstream' has no attribute '{name}'")
92
+
93
+
94
+ __all__ = [
95
+ "__version__",
96
+ # Providers
97
+ "get_provider",
98
+ "list_providers",
99
+ "ProviderBase",
100
+ # Geotrack
101
+ "convert",
102
+ "process",
103
+ "generate_tiles",
104
+ "generate_report",
105
+ "GeotrackProcessor",
106
+ # Sensors
107
+ "Sensor",
108
+ "SensorCatalogue",
109
+ "get_sensor_catalogue",
110
+ # Semantic
111
+ "SemanticMapper",
112
+ "SemanticConfig",
113
+ # STAC
114
+ "emit_stac_collection_and_item",
115
+ # Config
116
+ "Settings",
117
+ ]
@@ -0,0 +1,5 @@
1
+ """``python -m oceanstream``: the CLI, for environments where it is not installed."""
2
+
3
+ from .cli import app
4
+
5
+ app()
@@ -0,0 +1,13 @@
1
+ """ADCP processing submodule for oceanstream.
2
+
3
+ This submodule handles processing of Acoustic Doppler Current Profiler data.
4
+
5
+ - **RDI (Teledyne)**: Reads ``.raw`` binary files via dolfyn, applies
6
+ beam-to-earth coordinate transforms, and produces time-averaged velocity
7
+ profiles.
8
+ - **Nortek AD2CP**: Reads ``.ad2cp`` binary files directly (no dolfyn),
9
+ extracts echosounder amplitude, and computes Sv.
10
+ """
11
+ from .processor import process, process_ad2cp_file, process_file
12
+
13
+ __all__ = ["process", "process_file", "process_ad2cp_file"]
@@ -0,0 +1,21 @@
1
+ """Compatibility shims for dolfyn with numpy 2.x and scipy 1.14+.
2
+
3
+ Import this module before importing dolfyn to apply necessary patches.
4
+ """
5
+ from __future__ import annotations
6
+
7
+ import numpy as np
8
+
9
+ # numpy 2.0 removed np.NaN (use np.nan)
10
+ if not hasattr(np, "NaN"):
11
+ np.NaN = np.nan # type: ignore[attr-defined]
12
+
13
+ # numpy 2.0 moved RankWarning to np.exceptions
14
+ if not hasattr(np, "RankWarning"):
15
+ np.RankWarning = np.exceptions.RankWarning # type: ignore[attr-defined]
16
+
17
+ # scipy 1.14 renamed cumtrapz -> cumulative_trapezoid
18
+ import scipy.integrate # noqa: E402
19
+
20
+ if not hasattr(scipy.integrate, "cumtrapz"):
21
+ scipy.integrate.cumtrapz = scipy.integrate.cumulative_trapezoid # type: ignore[attr-defined]