{ "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. " ] }, { "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": 3, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "✅ Found ┊ model=rrfs ┊ \u001b[3mproduct=mean\u001b[0m ┊ \u001b[38;2;41;130;13m2021-Jul-23 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(\"2021-07-23\", model=\"rrfs\", fxx=1, member=1)" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "{'aws': 'https://noaa-rrfs-pds.s3.amazonaws.com/rrfs.20210723/00/ensprod/rrfsce.t00z.conus.mean.f01.grib2',\n", " 'aws-mem': 'https://noaa-rrfs-pds.s3.amazonaws.com/rrfs.20210723/00/mem01/rrfs.t00z.mem01.meanf001.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": [ "{'mean': 'ensemble mean',\n", " 'avrg': 'ensemble products: ???',\n", " 'eas': 'ensemble products: ???',\n", " 'ffri': 'ensemble products: ???',\n", " 'lpmm': 'ensemble products: ???',\n", " 'pmmn': 'ensemble products: ???',\n", " 'prob': 'ensemble products: ???',\n", " 'testbed.conus': 'surface grids (one for each member)',\n", " 'na': 'native grids (one for each member)'}" ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "H.PRODUCTS" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "👨🏻🏭 Created directory: [C:\\Users\\blaylock\\data\\rrfs\\20210723\\mem01]\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "C:\\Users\\blaylock\\_GITHUB\\Herbie\\herbie\\archive.py:1041: UserWarning: sorry, on windows I couldn't remove the file.\n", " warnings.warn(\"sorry, on windows I couldn't remove the file.\")\n" ] } ], "source": [ "ds = H.xarray(\"TMP:2 m\")" ] }, { "cell_type": "code", "execution_count": 7, "id": "fbf87c03", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
<xarray.Dataset>\n",
"Dimensions: (y: 1059, x: 1799)\n",
"Coordinates:\n",
" time datetime64[ns] 2021-07-23\n",
" step timedelta64[ns] 01:00:00\n",
" heightAboveGround float64 2.0\n",
" latitude (y, x) float64 21.14 21.14 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] 2021-07-23T01:00:00\n",
"Dimensions without coordinates: y, x\n",
"Data variables:\n",
" t2m (y, x) float32 295.3 295.3 295.3 ... 287.7 287.8 287.8\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: 2\n",
" Conventions: CF-1.7\n",
" institution: US National Weather Service - NCEP\n",
" model: rrfs\n",
" product: mean\n",
" description: Rapid Refresh Forecast System (RRFS) Ensemble\n",
" remote_grib: https://noaa-rrfs-pds.s3.amazonaws.com/rrfs.2021...\n",
" local_grib: C:\\Users\\blaylock\\data\\rrfs\\20210723\\mem01\\subse...\n",
" searchString: TMP:2 m<cartopy.crs.LambertConformal object at 0x2ab37c61ccc0>" ], "text/plain": [ "