Hudson Bay Sea Ice Monitoring

Automated geospatial processing pipeline for daily Arctic sea ice observations. The project combines automated data acquisition, GIS processing, quantitative trend analysis and automated publication workflows — backed by 291 automated tests, static analysis and CI quality gates.

Source code: github.com/Chris010980/hudson_bay_sea_ice_showcase

Testing & Quality Assurance →

Project Overview

Daily satellite products are automatically downloaded from NSIDC, processed using Rasterio and GeoPandas, analysed for five predefined Arctic regions, and exported as publication-quality figures and machine-readable datasets.

The archive currently covers more than four decades of daily observations (about 79,000 GeoTIFF products) and the pipeline is fully reproducible, intended for unattended daily execution.

Current Dataset

Observation

loading...

Observations

loading...

Dataset

loading...

Generated

loading...

Pipeline

✔ Daily update successful

The values above and the regional statistics below are generated automatically during the daily processing pipeline.

Regional Summary

Region Coverage Ice Area Ocean Area

Processing Pipeline

  1. Automatic download of daily NSIDC GeoTIFF products, atomically and with retries
  2. GeoTIFF validation
  3. Polar stereographic processing
  4. Region masking using GeoJSON polygons
  5. Ice coverage statistics, climatology and trend analysis
  6. Automatic generation of all figure products
  7. Export of CSV products and latest.json
  8. QA validation of the complete output tree
  9. Deployment to GitHub Pages

Regional Overview

Hudson Bay overview
Daily sea ice concentration map together with the analysis region used for the statistical evaluation.
Daily download pipeline
summary = downloader.sync(
    start_date=start_date,
    keep_existing=True,
)

Seasonal Evolution

Hudson Bay Time Series
Relative sea ice coverage for all available years. Colours indicate observation year.
Region analysis
mask = filter_manager.get_mask("Hudson Bay")

coverage = analyzer.calculate(
    raster,
    mask,
)

Seasonal Cycle

Hudson Bay Polar Plot
Polar representation of the annual freeze-up and melt cycle. Each curve represents one individual year.
Cartopy visualization
ax.pcolormesh(
    lon,
    lat,
    concentration,
    cmap=ice_cmap,
    transform=ccrs.PlateCarree(),
)

Climate Anomalies

Hudson Bay Anomaly Time Series
Daily deviation of the relative sea ice coverage from the 1981–2010 climatological mean. Negative values indicate below-normal ice conditions.

Long-Term Trend

Hudson Bay Yearly Mean Trend
Annual mean relative sea ice coverage with linear least-squares trend and coefficient of determination (R²).
Trend computation — pinned by a unit test
from src.analysis.timeseries_analyzer import (
    compute_linear_trend,
)


def test_noisy_fit_matches_hand_calculation() -> None:
    """Least-squares fit of (1,1), (2,2), (3,4).

    slope = 1.5, intercept = -2/3, R² = 27/28 (hand values).
    """
    x = np.array([1.0, 2.0, 3.0])
    y = np.array([1.0, 2.0, 4.0])

    slope, intercept, r_squared = compute_linear_trend(x, y)

    assert slope == pytest.approx(1.5)
    assert intercept == pytest.approx(-2.0 / 3.0)
    assert r_squared == pytest.approx(27.0 / 28.0)

Threshold Durations

Hudson Bay Threshold Durations
Duration of the annual period in which the relative ice coverage exceeds the 10 %, 50 % and 90 % thresholds.

Quality Assurance

Every change passes mandatory CI quality gates (ruff lint and format checks, pytest with coverage) before it reaches the production branch. The suite currently comprises 291 automated tests in 45 files with 96 % line coverage, organized into five test levels from isolated unit tests to full end-to-end pipeline runs.

Testing & Quality Assurance in detail (with code samples) →

Technical Highlights

  • Automated daily data acquisition with atomic downloads
  • Python-based geospatial processing
  • Rasterio for GeoTIFF analysis
  • Cartopy polar map projections
  • GeoJSON polygon masking
  • Pandas time-series aggregation and trend analysis
  • Publication-quality Matplotlib figures
  • 291 automated tests, 96 % line coverage
  • Mandatory CI quality gates and static analysis
  • Automated QA validation of the daily output tree
  • Fully reproducible processing pipeline

Repository

The repository contains the complete processing pipeline: automated downloads, geospatial analysis, time-series generation, quality assurance and publication-quality visualisations, together with the full documentation of the test model and the findings register.

All figures and statistics shown on this page are generated automatically from the latest available NSIDC dataset and updated daily.

← Back to portfolio  •  Testing & QA →