{ "cells": [ { "attachments": {}, "cell_type": "markdown", "id": "2469ed4e", "metadata": {}, "source": [ "# HRRR\n", "\n", "This tutorial shows you how to download HRRR data from Amazon (and other sources) with the Herbie Python package." ] }, { "cell_type": "code", "execution_count": 1, "id": "062de1dc", "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\n", "import cartopy.crs as ccrs" ] }, { "cell_type": "code", "execution_count": 2, "id": "e143a23f", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "✅ Found ┊ model=hrrr ┊ \u001b[3mproduct=sfc\u001b[0m ┊ \u001b[38;2;41;130;13m2021-Jul-19 00:00 UTC\u001b[92m F00\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(\n", " \"2021-07-19\",\n", " model=\"hrrr\",\n", " product=\"sfc\",\n", " fxx=0,\n", ")" ] }, { "cell_type": "code", "execution_count": 3, "id": "d5ebfae2", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "{'sfc': '2D surface level fields; 3-km resolution',\n", " 'prs': '3D pressure level fields; 3-km resolution',\n", " 'nat': 'Native level fields; 3-km resolution',\n", " 'subh': 'Subhourly grids; 3-km resolution'}" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# Show available products\n", "H.PRODUCTS" ] }, { "cell_type": "code", "execution_count": 4, "id": "85284add", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "👨🏻🏭 Created directory: [/home/blaylock/data/hrrr/20210719]\n" ] }, { "data": { "text/html": [ "
<xarray.Dataset> Size: 38MB\n",
"Dimensions: (y: 1059, x: 1799)\n",
"Coordinates:\n",
" time datetime64[ns] 8B 2021-07-19\n",
" step timedelta64[ns] 8B 00: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 2021-07-19\n",
" gribfile_projection object 8B None\n",
"Dimensions without coordinates: y, x\n",
"Data variables:\n",
" t2m (y, x) float32 8MB 295.3 295.3 295.3 ... 287.7 287.6\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: hrrr\n",
" product: sfc\n",
" description: High-Resolution Rapid Refresh - CONUS\n",
" remote_grib: https://noaa-hrrr-bdp-pds.s3.amazonaws.com/hrrr....\n",
" local_grib: /home/blaylock/data/hrrr/20210719/subset_6eeffd5...\n",
" search: TMP:2 m above