RABIGH REGIONAL WATER BRIEFING
Data edition of 21 November 2026

Open briefing.html locally for the interactive reader. Open briefing.pdf for
the six-page print edition. Keep the directory intact for the GIS, source and
PDF links. The reader embeds its own fonts, graphics and chart data.

ANALYSIS WINDOW

22.50 to 23.50 degrees north, 38.75 to 39.75 degrees east. Geographic
coordinates use WGS 84. The window is a regional rectangle chosen for this
briefing. Area summaries use its mapped land portion. The terrain transect
begins at the mapped coast on 23 degrees north and runs due east to 39.75 E.

REBUILD THE TABLES AND FIGURES OFFLINE

Use Python 3.12 or later. Run these commands in the extracted briefing folder.
Install the dependencies once in your chosen Python environment. The
calculation itself only reads the bundled inputs.

  python -m pip install -r reproducibility/requirements.txt
  python reproducibility/rebuild.py --package . --out rebuilt

The new rebuilt/data and rebuilt/figures directories contain the six CSV
tables, the JSON used by the reader and all six SVG plates. On the tested
runtime, the regenerated files match the delivered files byte for byte. Other
library versions may serialize SVG/PNG paths or floating-point decimals
differently. Compare the underlying values when working across platforms.

To verify the package contents against their individual SHA-256 hashes, run
the following command in the extracted folder.

  python reproducibility/verify_files.py

INPUTS

inputs/rainfall.tif contains 240 float32 bands of original CHIRPS v3.0 final
monthly cells. Band 1 is January 2001 and band 240 is December 2020. Band
descriptions give the year and month. Depth is mm/month. The window is a
20 by 20 subset of the native global grid at nominal 0.05-degree spacing.
The affine transform is set to the published nominal spacing. The original
COG transform differs by about three millionths of a degree at this window.
The nodata value is -9999. The subsets preserve the native numerical values.

inputs/elevation.tif contains the native 1 arc-second SRTM point grid.
The 3,601 by 3,601 posts include both study boundaries. GIS raster bounds
therefore extend half a posting beyond the window on each side. Height is
integer metres relative to EGM96. Nodata is -32768. The four component
tiles retain their shared edges only once in the merged grid.

inputs/land.geojson is the clipped Natural Earth land polygon. The same
shoreline determines the rainfall area weights and the elevation land mask.
inputs/locator.geojson is a wider generalised coastline for the locator inset.
inputs/place.geojson holds the GeoNames point used to label the city.

inputs/source-files.csv lists the publisher URL, retrieval timestamp and
SHA-256 for each of the 246 source entries. For rainfall, the digest covers
the original 20 by 20 float32 cells in north-to-south row-major order,
little endian, including nodata. The file also records the upstream COG ETag
and Last-Modified response. For each topography, land or place-name source
the digest covers the full downloaded file.

CALCULATIONS AND UNITS

Rainfall support. Intersect each of 400 nominal cells with mapped land.
Measure each intersection in EPSG:6933, an equal-area projection. Intersections
under 0.001 square metres are ignored as numerical slivers. Retain cells with
valid precipitation in all 240 months. Coastal weights include only the land
fraction. This leaves 366 contributing cells and approximately 9,962.1 square
kilometres at the precision of the support calculation.

Monthly depth = sum(cell depth x contributing land area) / sum(land area).
Annual depth = sum of the 12 monthly depths in that calendar year.
Monthly climatology here = arithmetic mean for that month over 20 years.
The October-to-March share sums those six calendar-month means and divides
by the sum of all 12 means. It is a share of period rainfall. It is not the
mean of yearly percentage shares. Calculations retain unrounded precision.

Terrain bands. Assign a native posting to land by its centre. Exclude nodata.
Approximate class area using each post's equal-area cell area by latitude,
clipped to the window at the edges. The land totals for raster classification
and the vector shoreline differ slightly because of coastal rasterisation.
The four elevation ranges in metres are below 50, 50 to below 200, 200 to
below 500, and 500 or higher. Negative coastal elevations are retained.

Profile. Find the continuous 23 N land segment reaching the eastern edge.
Sample 361 equally spaced longitudes from its western end, using nearest
native elevation posts. Compute distances along the WGS 84 latitude parallel.
Sample spacing is about 271 m. The ground is not sampled continuously.
The shaded map uses every fourth posting for display, with illumination
calculated from local slope. Quantitative bands use the full grid.

OUTPUT TABLES

rainfall-monthly.csv        240 monthly regional estimates, mm
rainfall-seasonality.csv    12 month means (mm) and period rainfall shares (%)
rainfall-annual.csv         20 totals and differences from the period mean, mm
rainfall-support.csv        400 grid cell centres, land area (km2), valid-month
                            counts and inclusion flags. Row/column indices
                            start at zero in the northwest.
terrain-profile.csv         361 points, longitude, latitude, inland km and m EGM96
elevation-bands.csv         Four elevation classes, land area (km2) and share (%)

The figures directory contains shaded relief, elevation bands, the peninsula
locator, the profile, seasonal rainfall and annual rainfall as SVG files.
Raster relief is embedded in the map SVG. Labels and chart marks are vector
elements. GeoTIFF inputs can be opened directly in standard GIS software.

OPTIONAL FRESH RETRIEVAL

This step requires network access and makes a separate package-input folder.
It is unnecessary for the offline rebuild.

  python reproducibility/prepare_inputs.py fresh
  python reproducibility/rebuild.py --package fresh --out fresh-derived

Source files are cached in reproducibility/raw. The rainfall downloader reads
the original full-resolution COG tiles by HTTP byte ranges. Compare the
resulting fresh/inputs/source-files.csv digests with the supplied inventory
if a publisher has revised a file since the access date.

DATA CREDITS AND SCOPE

Climate Hazards Center, University of California, Santa Barbara. Climate
Hazards Center Infrared Precipitation with Stations version 3 Data Repository
(2025). Final monthly product. https://doi.org/10.15780/G2JQ0P
Funk and colleagues (2026), Scientific Data 13, 718.
https://doi.org/10.1038/s41597-026-07096-4

NASA JPL. NASA Shuttle Radar Topography Mission Global 1 arc second V003.
https://doi.org/10.5067/MEaSUREs/SRTM/SRTMGL1.003
Shuttle Radar Topography Mission Global, distributed by OpenTopography.
https://doi.org/10.5069/G9445JDF

Natural Earth. 1:10m physical land polygons v5.1.1, public domain.
https://www.naturalearthdata.com/downloads/10m-physical-vectors/10m-land/

GeoNames. Rabigh, populated place 103035. The label uses its coordinates.
https://www.geonames.org/103035/rabigh.html
Creative Commons Attribution 4.0. https://creativecommons.org/licenses/by/4.0/

All spatial datasets accessed 21 November 2026. See licences/ for the
font licences for Playfair Display and Lora.

The groundwater section sets out measurements needed for a local assessment.
The package provides no site measurements, aquifer parameters or design flood
estimates. Published monthly grid values cannot resolve a short-duration storm.
