# Digital Earth Pacific Satellite-Derived Bathymetry (Sentinel-2, 10 m)

## Facts

- Provider: Pacific Community (SPC) / Digital Earth Pacific
- License: CC-BY-4.0
- Size: 2,495 objects, 179.4 GB
- Records: 499 tiles x 4 layers; each layer 9600 x 9600 px (92,160,000 px) at 10 m. 1,996 GeoTIFFs and 499 STAC items (full recursive listing, exact)
- Format: JSON, TIFF (in sampled files)
- Stored at: Amazon S3, s3://dep-public-data/dep_s2_sdb (us-west-2)
- Access: public, readable without an account
- Category: Earth Observation & Geospatial
- Source: https://registry.opendata.aws/dep-satellite-derived-bathymetry/
- Page: https://scigantic.com/archive/9895e2a2-d5d0-5407-b5c8-be2cf37be70f
- Keywords: Earth Observation & Geospatial, satellite imagery, AWS Open Data

## About

Shallow-water depth estimated from Sentinel-2 imagery at 10 m across Pacific coastal waters: one 2024 composite per tile (mean, stdev, count and a count-masked depth layer), 499 tiles, EPSG:3832. Measured: the prefix holds 2,495 objects and about 179 GB. Part of the Digital Earth Pacific public bucket dep-public-data (us-west-2), published by the Pacific Community (SPC) under CC BY 4.0.

## Load the data

```python
# Task: summarise one SDB tile (depth in metres, negative below the water surface) and how much of it is usable.
import os, numpy as np, rasterio
root = os.path.expanduser("~/archive")
d = f"{root}/0-0-1/009/045/2024-07/2024-12/dep_s2_sdb_009_045_2024-07/2024-12_"
with rasterio.open(d + "depth.tif") as s:
    print(s.crs, s.shape, s.dtypes[0], "nodata", s.nodata, "res", s.res)
    depth = s.read(1)
with rasterio.open(d + "count.tif") as s:
    count = s.read(1)          # uint8, 255 = nodata
ok = ~np.isnan(depth)
print("pixels with depth: %d (%.3f%% of tile), range %.1f to %.1f m" % (ok.sum(), 100 * ok.mean(), depth[ok].min(), depth[ok].max()))
print("pixels with any estimate (count != 255): %.1f%%" % (100 * (count != 255).mean()))
print("count at depth pixels:", dict(zip(*[x.tolist() for x in np.unique(count[ok], return_counts=True)])))
```

Written for a Scigantic notebook, where /mnt/archive (SCIGANTIC_MOUNT_PATH) is the mounted dataset.

## Data structure

File types in sampled files: JSON, TIFF

| Field | Type |
| --- | --- |
| `depth` | float32, metres, negative below the water surface, NaN nodata, no scale/offset. Equals mean wherever it is valid. Tile… |
| `mean` | float32, metres, negative below surface, NaN nodata, no scale/offset. Tile 009/045: valid on about 30% of px, range… |
| `stdev` | float32, metres, NaN nodata. Standard deviation of the per-observation depth estimates. Tile 009/045: 0.0 to 13.5; 2.5… |
| `count` | uint8, number of depth estimates behind each pixel, 255 nodata (no estimate). Tile 009/045: 1 to 11; 1 on 23.5M px, 2… |
| `grid` | All four layers: 9600 x 9600 px, 10 m, EPSG:3832, 512 x 512 tiled deflate GeoTIFF with overviews 2,4,8,16,32, identical… |
| `period` | One composite per tile. STAC start_datetime 2024-01-01, end_datetime 2024-12-31 (12 of 499 items read, plus all keys… |

Files:

```text
Single version folder 0-0-1, then COL/ROW tile, then a nested period folder, then an item folder, then four COGs and one STAC item per tile.
0-0-1/{COL}/{ROW}/2024-07/2024-12/dep_s2_sdb_{COL}_{ROW}_2024-07/2024-12_{layer}.tif   (layer = depth | mean | stdev | count)
0-0-1/{COL}/{ROW}/2024-07/2024-12/dep_s2_sdb_{COL}_{ROW}_2024-07/2024-12.stac-item.json
The odd nesting is real: the STAC item id is 'dep_s2_sdb_{COL}_{ROW}_2024-07/2024-12', and the slash in the id became a directory level. The directory 'dep_s2_sdb_009_045_2024-07' holds files whose names start with '2024-12_'. Tile id is COL/ROW, three digits each. Tiles are 96 km squares (9600 x 9600 px at 10 m) in EPSG:3832: xmin = COL*96000 - 3,000,000 and ymin = ROW*96000 - 4,000,000 (checked against proj:bbox of items in all three archives). EPSG:3832 is a Pacific-centred Mercator, so tiles east of the antimeridian have large positive x and negative longitude in STAC bbox. 499 tiles (columns 009 to 130, rows 008 to 069), every tile has exactly the same five objects.
```

Example file: `0-0-1/009/045/2024-07/2024-12/dep_s2_sdb_009_045_2024-07/2024-12_mean.tif  (139,906,352 bytes): mean estimated depth in metres, float32, 9600 x 9600 px, EPSG:3832, tile covering about 130.8E to 131.7E, 2.9N to 3.8N.`

## Open it

- In a hosted notebook with the data mounted: https://scigantic.com/archive/9895e2a2-d5d0-5407-b5c8-be2cf37be70f
- Full record as JSON (schema card included): https://api.scigantic.com/api/archives/9895e2a2-d5d0-5407-b5c8-be2cf37be70f
- Over MCP: `get_schema_card` with id `9895e2a2-d5d0-5407-b5c8-be2cf37be70f` at https://api.scigantic.com/mcp

## Related topics

- [Earth Observation & Geospatial datasets](https://scigantic.com/topics/earth-observation-and-geospatial)
- [Satellite imagery datasets](https://scigantic.com/topics/satellite-imagery)
