#!/bin/bash
# Fetch IRI ENSO "quick look" monthly pages 2012-2026 (contain the CPC/IRI official probability table).
cd "${ENSO_ROOT:-/work/enso-outlooks}"
for y in $(seq 2012 2026); do for m in january february march april may june july august september october november december; do
  f=raw/iri_ql/$y-$m.html; [ -s $f ] && continue
  echo "https://iri.columbia.edu/our-expertise/climate/forecasts/enso/$y-$m-quick-look/ $f"
done; done | xargs -P 4 -n 2 sh -c 'curl -sL -f --max-time 60 -o "$1" "$0" || echo "MISS $0" >> raw/missing_ql.log'
