{ "cells": [ { "attachments": {}, "cell_type": "markdown", "id": "41536945", "metadata": {}, "source": [ "# RRFS Data π ±\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, "metadata": {}, "outputs": [], "source": [ "from herbie import Herbie\n", "from toolbox import EasyMap, pc\n", "from paint.standard2 import cm_tmp\n", "\n", "import matplotlib.pyplot as plt\n", "import cartopy.crs as ccrs" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "β Found β model=rrfs β \u001b[3mproduct=prslev\u001b[0m β \u001b[38;2;41;130;13m2024-Jan-10 00:00 UTC\u001b[92m F01\u001b[0m β \u001b[38;2;255;153;0m\u001b[3mGRIB2 @ aws\u001b[0m β \u001b[38;2;255;153;0m\u001b[3mIDX @ aws\u001b[0m\n" ] } ], "source": [ "H = Herbie(\"2024-01-10\", model=\"rrfs\", fxx=1, member=\"control\", domain=\"conus\")" ] }, { "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", "\n" ] } ], "source": [ "H.help()" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "{'aws': 'https://noaa-rrfs-pds.s3.amazonaws.com/rrfs_a/rrfs_a.20240110/00/control/rrfs.t00z.prslev.f001.conus_3km.grib2'}" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "H.SOURCES" ] }, { "cell_type": "code", "execution_count": 5, "id": "10a55673", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "{'prslev': '', 'natlev': '', 'testbed': '', 'ififip': ''}" ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "H.PRODUCTS" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
<xarray.Dataset>\n",
"Dimensions: (y: 1059, x: 1799)\n",
"Coordinates:\n",
" time datetime64[ns] 2024-01-10\n",
" step timedelta64[ns] 01:00:00\n",
" heightAboveGround float64 2.0\n",
" latitude (y, x) float64 21.14 21.15 21.15 ... 47.86 47.85 47.84\n",
" longitude (y, x) float64 237.3 237.3 237.3 ... 299.0 299.0 299.1\n",
" valid_time datetime64[ns] 2024-01-10T01:00:00\n",
"Dimensions without coordinates: y, x\n",
"Data variables:\n",
" t2m (y, x) float32 291.9 291.9 291.9 ... 268.1 268.2 268.2\n",
" gribfile_projection object None\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/20240110/control/subset...\n",
" searchString: 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", "
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 87 | \n", "88 | \n", "500393712 | \n", "510769360.0 | \n", "500393712-510769360 | \n", "2024-01-10 | \n", "2024-01-10 | \n", "TMP | \n", "5 hybrid level | \n", "anl | \n", "NaN | \n", "NaN | \n", ":TMP:5 hybrid level:anl:nan | \n", "
<xarray.Dataset>\n",
"Dimensions: (y: 2961, x: 4881)\n",
"Coordinates:\n",
" time datetime64[ns] 2024-01-10\n",
" step timedelta64[ns] 00:00:00\n",
" hybrid float64 5.0\n",
" latitude (y, x) float64 ...\n",
" longitude (y, x) float64 ...\n",
" valid_time datetime64[ns] ...\n",
"Dimensions without coordinates: y, x\n",
"Data variables:\n",
" t (y, x) float32 ...\n",
" gribfile_projection object None\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/20240110/control/subset...\n",
" searchString: TMP:5 hybrid