SCShores: Time-Series of Shorelines from Spanish Sandy Beaches¶
Category: Coasts & Oceanography · Size: 9.3 MB · Format: GeoJSON License: CC-BY-4.0 · Zenodo record · Data sheet on the CSDH
1,721 shorelines over 5 years derived from a citizen monitoring programme on 5 Spanish sandy beaches (Atlantic and Mediterranean), in GeoJSON format.
The data is mounted read-only at /srv/data/scshores-shorelines/.
Save anything you produce in your personal folder (~/).
What's in the dataset¶
In [1]:
from pathlib import Path
DATA = Path('/srv/data/scshores-shorelines')
for f in sorted(DATA.rglob('*')):
if f.is_file():
print(f"{f.relative_to(DATA)} ({f.stat().st_size/1e6:,.1f} MB)")
SCShores_v1.0.0.geojson (9.3 MB)
Load the data¶
The dataset is GeoJSON: data with geometry. GeoPandas loads and plots it in one line.
In [2]:
import geopandas as gpd
geo = sorted(DATA.rglob('*.geojson'))
print('Using:', geo[0].name)
df = gpd.read_file(geo[0])
print(df.shape)
df.plot(figsize=(9, 6))
df.head()
Using: SCShores_v1.0.0.geojson
ERROR 1: PROJ: proj_create_from_database: Open of /opt/tljh/user/share/proj failed
(1721, 8)
Out[2]:
| site | timestampQuality | date | imageSource | elevation_m | timezone | verticalDatum | geometry | |
|---|---|---|---|---|---|---|---|---|
| 0 | agrelo | 1.0 | 2019-01-23 16:18:09 | 2.211 | UTC | NMMA | MULTIPOINT Z ((-8.77245 42.33204 2.21093), (-8... | |
| 1 | agrelo | 1.0 | 2019-01-25 15:41:00 | 0.708 | UTC | NMMA | MULTIPOINT Z ((-8.77214 42.33221 0.708), (-8.7... | |
| 2 | agrelo | 1.0 | 2019-01-26 16:32:00 | 0.749 | UTC | NMMA | MULTIPOINT Z ((-8.77216 42.33221 0.7494), (-8.... | |
| 3 | agrelo | 1.0 | 2019-01-26 16:36:37 | 0.798 | UTC | NMMA | MULTIPOINT Z ((-8.77214 42.33221 0.79834), (-8... | |
| 4 | agrelo | 1.0 | 2019-01-28 11:15:00 | 0.944 | UTC | NMMA | MULTIPOINT Z ((-8.77216 42.3322 0.944), (-8.77... |
Your turn¶
This is just the starting point. Some ideas:
- Check the dataset challenge on its CSDH data sheet.
- Work on a copy: right-click the file → Duplicate (or Save Notebook As…). Your changes only live in your Hub space — they're never pushed to GitHub.
- Edited this notebook and want the original back? Use the Restore cell
below (or the
restore.ipynbnotebook). - Questions and results: on the platform forum.
Attribution: data from SCShores: Time-Series of Shorelines from Spanish Sandy Beaches, license CC-BY-4.0. Notebook from the Citizen Science Data Hub (CSDH) — Fundación Ibercivis.
In [3]:
# ⚠️ RESTORE: this DISCARDS YOUR CHANGES to this notebook and resets it to the original.
# 1. Uncomment the line below (remove the #) 2. Run this cell
# 3. Then: menu File → Reload Notebook from Disk
# !git -C ~/citizen-science-data fetch -q origin && git -C ~/citizen-science-data checkout origin/main -- scshores-shorelines.ipynb && echo "Restored. Now: File → Reload Notebook from Disk"