Context
ctd-viz needs seafloor depth to draw the bathymetry polygon under transect plots and a raster layer on the cruise map. It currently crops GEBCO bathymetry app-side in apps/ctd-viz/prep_db.R → data/gebco_calcofi.tif.
This is a stopgap — bathymetry should be a first-class layer in the release pipeline so every app/consumer shares one authoritative source.
Current stopgap (done in apps/ctd-viz)
apps/ctd-viz/prep_db.R crops gebco_2025_sub_ice_n90.0_s0.0_w-180.0_e-90.0.tif to the CalCOFI AOI (lon -126..-115, lat 29..36), negates elevation → positive-down depth (m), clamps land to 0, writes data/gebco_calcofi.tif (~3.5 MB, 15 arc-sec).
The prior source (a derived MSENS product) had NA holes in the ocean nearshore, which broke the transect bathymetry polygon — that's what motivated this.
Proposed (this issue)
Source: GEBCO_2025 Grid sub-ice — https://www.gebco.net/data_and_products/gridded_bathymetry_data/
Related: CalCOFI/apps#40
Context
ctd-vizneeds seafloor depth to draw the bathymetry polygon under transect plots and a raster layer on the cruise map. It currently crops GEBCO bathymetry app-side inapps/ctd-viz/prep_db.R→data/gebco_calcofi.tif.This is a stopgap — bathymetry should be a first-class layer in the release pipeline so every app/consumer shares one authoritative source.
Current stopgap (done in apps/ctd-viz)
apps/ctd-viz/prep_db.Rcropsgebco_2025_sub_ice_n90.0_s0.0_w-180.0_e-90.0.tifto the CalCOFI AOI (lon -126..-115, lat 29..36), negates elevation → positive-down depth (m), clamps land to 0, writesdata/gebco_calcofi.tif(~3.5 MB, 15 arc-sec).The prior source (a derived MSENS product) had NA holes in the ocean nearshore, which broke the transect bathymetry polygon — that's what motivated this.
Proposed (this issue)
workflows/, clipped to the CalCOFI grid extent.ctd_cast/siterows.seafloor_depth_mtoctd_cast(orsite) by sampling GEBCO at each station — most consumers just need depth-at-station.apps/ctd-vizto read released bathymetry; drop the app-side crop inprep_db.R.Source: GEBCO_2025 Grid sub-ice — https://www.gebco.net/data_and_products/gridded_bathymetry_data/
Related: CalCOFI/apps#40