{ "cells": [ { "attachments": {}, "cell_type": "markdown", "id": "2469ed4e", "metadata": {}, "source": [ "# HRRR Data\n", "\n", "This tutorial shows you how to download HRRR data from Amazon (and other sources) with the Herbie Python package.\n", "\n", "\n", "**Data Sources**\n", "\n", "|`prioriy=`|Data source| Archive Duration|\n", "|--|--|--|\n", "|`\"aws\"` | [Amazon Web Services](https://registry.opendata.aws/noaa-hrrr-pds/) | 2014-07-30 to present\n", "|`\"nomads\"` | [NOMADS](https://nomads.ncep.noaa.gov/pub/data/nccf/com/hrrr/prod/) | Yesterday and today\n", "|`\"google\"` | [Google Cloud Platform ](https://console.cloud.google.com/marketplace/product/noaa-public/hrrr?project=python-232920) | 2014-07-30 to present\n", "|`\"azure\"` | [Microsoft Azure](https://github.com/microsoft/AIforEarthDataSets/blob/main/data/noaa-hrrr.md) | 2021-03-21 to present\n", "|`\"pando\"` | [University of Utah Pando archive](https://home.chpc.utah.edu/~u0553130/Brian_Blaylock/cgi-bin/hrrr_download.cgi) | varies\n", "\n", "**Model Initialization**\n", "\n", "Model cyles every hour.\n", "\n", "**Forecast Hour**\n", "\n", "For the most recent version of HRRR...\n", "\n", "|`fxx=`|Forecast lead time|\n", "|--|--|\n", "|`0` through `48`, step=1| available for runs initialized at 00z, 06z, 12z, 18z\n", "|`0` through `18`, step=1| available for runs initialized at all other hours.\n", "\n", "**Products**\n", "\n", "|`product=`| Product Description | \n", "|--|--|\n", "|`\"sfc\"` | surface fields|\n", "|`\"prs\"` | pressure levels|\n", "|`\"nat\"` | native levels|\n", "|`\"subh\"`| subhourly products|\n", "\n", "\n", "\n" ] }, { "cell_type": "code", "execution_count": 1, "id": "062de1dc", "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, "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": 5, "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": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# Show available products\n", "H.PRODUCTS" ] }, { "cell_type": "code", "execution_count": 3, "id": "85284add", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
<xarray.Dataset>\n",
"Dimensions: (y: 1059, x: 1799)\n",
"Coordinates:\n",
" time datetime64[ns] 2021-07-19\n",
" step timedelta64[ns] 00:00:00\n",
" heightAboveGround float64 2.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",
" t2m (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: 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: C:\\Users\\blaylock\\data\\hrrr\\20210719\\subset_6eef...\n",
" searchString: TMP:2 m above