{ "cells": [ { "attachments": {}, "cell_type": "markdown", "id": "96395cd4", "metadata": {}, "source": [ "# HGEFS\n", "\n", "In December 2025, NOAA announced the release of three AI global forecasting systems.\n", "\n", "[NOAA deploys new generation of AI-driven global weather models](https://www.noaa.gov/news-release/noaa-deploys-new-generation-of-ai-driven-global-weather-models)\n", "\n", "All three models are available for download in Herbie:\n", "\n", "- `model=\"aigfs\"`\n", "\n", "- `model=\"aigefs\"`\n", "\n", "- `model=\"hgefs\"`\n", "\n", "This notebook demonstrates how to download and use HGEFS data using Herbie.\n" ] }, { "cell_type": "code", "execution_count": 1, "id": "49ccc859", "metadata": {}, "outputs": [], "source": [ "import matplotlib.pyplot as plt\n", "import numpy as np\n", "\n", "from herbie import Herbie, paint\n", "from herbie.toolbox import EasyMap, ccrs, pc" ] }, { "cell_type": "markdown", "id": "466b18b1", "metadata": {}, "source": [ "There are two available products: \n", "\n", "- `product=\"sfc\"`\n", "- `product=\"pres\"`\n", "\n", "You must specify the member\n", "\n", "- `member=\"spr\"`\n", "- `member=\"avg\"`" ] }, { "cell_type": "code", "execution_count": 2, "id": "cd3f7ac0", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "✅ Found ┊ model=hgefs ┊ \u001b[3mproduct=sfc\u001b[0m ┊ \u001b[38;2;41;130;13m2026-Feb-01 00:00 UTC\u001b[92m F00\u001b[0m ┊ \u001b[38;2;255;153;0m\u001b[3mGRIB2 @ nomads\u001b[0m ┊ \u001b[38;2;255;153;0m\u001b[3mIDX @ local\u001b[0m\n" ] }, { "data": { "text/plain": [ "\u001b[48;2;255;255;255m\u001b[38;2;136;33;27m▌\u001b[0m\u001b[38;2;12;53;118m\u001b[48;2;240;234;210m▌\u001b[38;2;0;0;0m\u001b[1mHerbie\u001b[0m HGEFS model \u001b[3msfc\u001b[0m product initialized \u001b[38;2;41;130;13m2026-Feb-01 00:00 UTC\u001b[92m F00\u001b[0m ┊ \u001b[38;2;255;153;0m\u001b[3msource=nomads\u001b[0m" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "H = Herbie(\"2026-02-01\", model=\"hgefs\", product=\"sfc\", member=\"avg\")\n", "H" ] }, { "cell_type": "code", "execution_count": 3, "id": "52dcbd8c", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "{'nomads': 'https://nomads.ncep.noaa.gov/pub/data/nccf/com/hgefs/prod/hgefs.20260201/00/ensstat/products/atmos/grib2/hgefs.t00z.sfc.avg.f000.grib2'}" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# Show all available sources\n", "H.SOURCES" ] }, { "cell_type": "code", "execution_count": 4, "id": "2d3e379c", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
| \n", " | grib_message | \n", "start_byte | \n", "end_byte | \n", "range | \n", "reference_time | \n", "valid_time | \n", "variable | \n", "level | \n", "forecast_time | \n", "? | \n", "search_this | \n", "
|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | \n", "1 | \n", "0 | \n", "860132.0 | \n", "0-860132 | \n", "2026-02-01 | \n", "2026-02-01 | \n", "UGRD | \n", "10 m above ground | \n", "anl | \n", "ens mean | \n", ":UGRD:10 m above ground:anl:ens mean: | \n", "
| 1 | \n", "2 | \n", "860133 | \n", "1680810.0 | \n", "860133-1680810 | \n", "2026-02-01 | \n", "2026-02-01 | \n", "VGRD | \n", "10 m above ground | \n", "anl | \n", "ens mean | \n", ":VGRD:10 m above ground:anl:ens mean: | \n", "
| 2 | \n", "3 | \n", "1680811 | \n", "2131433.0 | \n", "1680811-2131433 | \n", "2026-02-01 | \n", "2026-02-01 | \n", "TMP | \n", "2 m above ground | \n", "anl | \n", "ens mean | \n", ":TMP:2 m above ground:anl:ens mean: | \n", "
| 3 | \n", "4 | \n", "2131434 | \n", "NaN | \n", "2131434- | \n", "2026-02-01 | \n", "2026-02-01 | \n", "PRMSL | \n", "mean sea level | \n", "anl | \n", "ens mean | \n", ":PRMSL:mean sea level:anl:ens mean: | \n", "
<xarray.Dataset> Size: 8MB\n",
"Dimensions: (latitude: 721, longitude: 1440)\n",
"Coordinates:\n",
" * latitude (latitude) float64 6kB 90.0 89.75 89.5 ... -89.75 -90.0\n",
" * longitude (longitude) float64 12kB 0.0 0.25 0.5 ... 359.5 359.8\n",
" time datetime64[ns] 8B 2026-02-01\n",
" step timedelta64[ns] 8B 00:00:00\n",
" heightAboveGround float64 8B 10.0\n",
" valid_time datetime64[ns] 8B 2026-02-01\n",
" gribfile_projection object 8B None\n",
"Data variables:\n",
" u10 (latitude, longitude) float32 4MB -6.69 -6.7 ... -5.87\n",
" v10 (latitude, longitude) float32 4MB -0.96 -0.93 ... 1.48\n",
"Attributes:\n",
" GRIB_edition: 2\n",
" GRIB_centre: kwbc\n",
" GRIB_centreDescription: US National Weather Service - NCEP\n",
" GRIB_subCentre: 2\n",
" Conventions: CF-1.7\n",
" institution: US National Weather Service - NCEP\n",
" model: hgefs\n",
" product: sfc\n",
" description: Hybrid Global Ensemble Forecast System (HGEFS)\n",
" remote_grib: https://nomads.ncep.noaa.gov/pub/data/nccf/com/h...\n",
" local_grib: /home/blaylock/data/hgefs/20260201/subset_afeff9...\n",
" search: GRD:10 m