{ "cells": [ { "attachments": {}, "cell_type": "markdown", "id": "41536945", "metadata": {}, "source": [ "# RRFS 🅱\n", "\n", "\n", "\n", "BETA\n", "\n", "The Rapid Refresh Forecast System (RRFS) is _undergoing rapid development_. There are some prototype products and forecasts available on the cloud on AWS. Some files have an index file, others do not.\n" ] }, { "cell_type": "code", "execution_count": 1, "id": "5a05a584", "metadata": {}, "outputs": [], "source": [ "from herbie import Herbie\n", "from herbie.toolbox import EasyMap, pc\n", "from herbie import paint\n", "\n", "import matplotlib.pyplot as plt" ] }, { "cell_type": "code", "execution_count": 5, "id": "b918b218", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "✅ Found ┊ model=rrfs ┊ \u001b[3mproduct=prslev\u001b[0m ┊ \u001b[38;2;41;130;13m2024-Aug-15 12:00 UTC\u001b[92m F01\u001b[0m ┊ \u001b[38;2;255;153;0m\u001b[3mGRIB2 @ aws_0\u001b[0m ┊ \u001b[38;2;255;153;0m\u001b[3mIDX @ aws_0\u001b[0m\n" ] }, { "data": { "text/plain": [ "{'aws_0': 'https://noaa-rrfs-pds.s3.amazonaws.com/rrfs_a/rrfs_a.20240815/12/control/rrfs.t12z.prslev.f001.conus.grib2',\n", " 'aws_1': 'https://noaa-rrfs-pds.s3.amazonaws.com/rrfs_a/rrfs_a.20240815/12/control/rrfs.t12z.prslev.f001.conus_3km.grib2'}" ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "H = Herbie(\n", " \"2024-08-15 12:00\",\n", " model=\"rrfs\",\n", " fxx=1,\n", " member=\"control\",\n", " domain=\"conus\",\n", " # product=\"testbed\",\n", ")\n", "\n", "H.SOURCES" ] }, { "cell_type": "code", "execution_count": 3, "id": "fdd6aa01", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "â•─ Herbie ────────────────────────────────\n", "│ Help for model='rrfs'\n", "│ \n", "│ Rapid Refresh Forecast System (RRFS) Ensemble\n", "│ aws product description: https://registry.opendata.aws/noaa-rrfs/\n", "│\n", "│ Herbie(date, model='rrfs', ...)\n", "│ \n", "│ fxx : int\n", "│ product : {\"prs\", \"nat\", \"testbed\", \"ififip\"}\n", "│ member : {\"control\", int}\n", "│ domain : {\"conus\", \"alaska\", \"hawaii\", \"puerto rico\", None}\n", "│ \n", "│ If product=\"natlev', then domain must be None\n", "│\n", "╰─────────────────────────────────────────\n" ] } ], "source": [ "H.help()" ] }, { "cell_type": "code", "execution_count": 6, "id": "c32ecceb", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
<xarray.Dataset> Size: 38MB\n",
"Dimensions: (y: 1059, x: 1799)\n",
"Coordinates:\n",
" time datetime64[ns] 8B 2024-08-15T12:00:00\n",
" step timedelta64[ns] 8B 01:00:00\n",
" heightAboveGround float64 8B 2.0\n",
" latitude (y, x) float64 15MB 21.14 21.15 21.15 ... 47.85 47.84\n",
" longitude (y, x) float64 15MB 237.3 237.3 237.3 ... 299.0 299.1\n",
" valid_time datetime64[ns] 8B 2024-08-15T13:00:00\n",
" gribfile_projection object 8B None\n",
"Dimensions without coordinates: y, x\n",
"Data variables:\n",
" t2m (y, x) float32 8MB 297.3 297.3 297.3 ... 291.5 291.5\n",
"Attributes:\n",
" GRIB_edition: 2\n",
" GRIB_centre: kwbc\n",
" GRIB_centreDescription: US National Weather Service - NCEP\n",
" GRIB_subCentre: 0\n",
" Conventions: CF-1.7\n",
" institution: US National Weather Service - NCEP\n",
" model: rrfs\n",
" product: prslev\n",
" description: Rapid Refresh Forecast System (RRFS) Ensemble\n",
" remote_grib: https://noaa-rrfs-pds.s3.amazonaws.com/rrfs_a/rr...\n",
" local_grib: /home/blaylock/data/rrfs/20240815/control/subset...\n",
" search: TMP:2 m above ground| \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", "?? | \n", "search_this | \n", "
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 91 | \n", "92 | \n", "467606623 | \n", "478003639.0 | \n", "467606623-478003639 | \n", "2024-06-22 | \n", "2024-06-22 | \n", "TMP | \n", "5 hybrid level | \n", "anl | \n", "NaN | \n", "NaN | \n", ":TMP:5 hybrid level:anl:nan | \n", "
<xarray.Dataset> Size: 289MB\n",
"Dimensions: (y: 2961, x: 4881)\n",
"Coordinates:\n",
" time datetime64[ns] 8B 2024-06-22\n",
" step timedelta64[ns] 8B 00:00:00\n",
" hybrid float64 8B 5.0\n",
" latitude (y, x) float64 116MB -1.606 -1.591 ... 41.5 41.48\n",
" longitude (y, x) float64 116MB -157.3 -157.3 ... -1.81 -1.802\n",
" valid_time datetime64[ns] 8B 2024-06-22\n",
" gribfile_projection object 8B None\n",
"Dimensions without coordinates: y, x\n",
"Data variables:\n",
" t (y, x) float32 58MB nan nan nan nan ... nan nan nan nan\n",
"Attributes:\n",
" GRIB_edition: 2\n",
" GRIB_centre: kwbc\n",
" GRIB_centreDescription: US National Weather Service - NCEP\n",
" GRIB_subCentre: 0\n",
" Conventions: CF-1.7\n",
" institution: US National Weather Service - NCEP\n",
" model: rrfs\n",
" product: natlev\n",
" description: Rapid Refresh Forecast System (RRFS) Ensemble\n",
" remote_grib: https://noaa-rrfs-pds.s3.amazonaws.com/rrfs_a/rr...\n",
" local_grib: /home/blaylock/data/rrfs/20240622/control/subset...\n",
" search: TMP:5 hybrid