{ "cells": [ { "cell_type": "markdown", "id": "117d1e97-381d-4771-953a-30573739c4e9", "metadata": {}, "source": [ "# Blending Observations from TRACER using Py-ART\n", "\n", "The TRacking Aerosol Convection Interactions (TRACER) field experiment was a U.S. Department of Energy IOP with the goal of studying the lifecycle of convection over Houston as well as potential aerosol impacts on this lifecycle. Houston is uniquely suited for this kind of field experiment where seabreeze convection forms off of the coast of Houston in cleaner air conditions and then approaches the more polluted Houston region. For more information about the TRACER field experiment, click [here](https://www.arm.gov/research/campaigns/amf2021tracer).\n", "\n", "This post will show how to plot overlays of Texas A&M University Lightning Mapping Array data over GOES and ARM CSAPR2 data for a case of wildfire smoke entraining into developing convection sampled during July 12 and 13, 2022. In addition, we highlight a case that was tracked by CSAPR2 for 90 minutes on June 17, 2022. " ] }, { "cell_type": "markdown", "id": "429ee2c4-ddcd-4f8c-aae5-2041345d2264", "metadata": {}, "source": [ "## Imports" ] }, { "cell_type": "code", "execution_count": 87, "id": "4f5b03b8-ff33-4124-824a-eb1df07b6972", "metadata": {}, "outputs": [], "source": [ "import pyart\n", "import act\n", "import matplotlib.pyplot as plt\n", "import xarray as xr\n", "import numpy as np\n", "import s3fs\n", "import cartopy.crs as ccrs\n", "import pandas as pd\n", "\n", "from scipy.spatial import KDTree\n", "\n", "%matplotlib inline" ] }, { "cell_type": "markdown", "id": "3adeb7e8-0138-4f3a-9d48-06300b397323", "metadata": {}, "source": [ "# GOES data access\n", "\n", "All of the NOAA GOES satellite data are available on Amazon Web Services for download. Therefore, you can use the s3fs tool to download the required data. We will download band 13, which is the longwave infrared band of GOES. In order to only download the band 13 files, we will ensure that there is a \"C13\" in the filename as this denotes the band number for each file." ] }, { "cell_type": "code", "execution_count": 15, "id": "9d9e7920-e4d3-4403-8203-036d14ff0f67", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Downloading noaa-goes16/ABI-L1b-RadC/2022/168/20/OR_ABI-L1b-RadC-M6C13_G16_s20221682001178_e20221682003562_c20221682004026.nc\n", "Downloading noaa-goes16/ABI-L1b-RadC/2022/168/20/OR_ABI-L1b-RadC-M6C13_G16_s20221682006178_e20221682008562_c20221682009028.nc\n", "Downloading noaa-goes16/ABI-L1b-RadC/2022/168/20/OR_ABI-L1b-RadC-M6C13_G16_s20221682011178_e20221682013562_c20221682014023.nc\n", "Downloading noaa-goes16/ABI-L1b-RadC/2022/168/20/OR_ABI-L1b-RadC-M6C13_G16_s20221682016178_e20221682018562_c20221682019019.nc\n", "Downloading noaa-goes16/ABI-L1b-RadC/2022/168/20/OR_ABI-L1b-RadC-M6C13_G16_s20221682021178_e20221682023563_c20221682024031.nc\n", "Downloading noaa-goes16/ABI-L1b-RadC/2022/168/20/OR_ABI-L1b-RadC-M6C13_G16_s20221682026178_e20221682028562_c20221682029025.nc\n", "Downloading noaa-goes16/ABI-L1b-RadC/2022/168/20/OR_ABI-L1b-RadC-M6C13_G16_s20221682031178_e20221682033562_c20221682034018.nc\n", "Downloading noaa-goes16/ABI-L1b-RadC/2022/168/20/OR_ABI-L1b-RadC-M6C13_G16_s20221682036178_e20221682038562_c20221682039022.nc\n", "Downloading noaa-goes16/ABI-L1b-RadC/2022/168/20/OR_ABI-L1b-RadC-M6C13_G16_s20221682041178_e20221682043562_c20221682044024.nc\n", "Downloading noaa-goes16/ABI-L1b-RadC/2022/168/20/OR_ABI-L1b-RadC-M6C13_G16_s20221682046178_e20221682048562_c20221682049023.nc\n", "Downloading noaa-goes16/ABI-L1b-RadC/2022/168/20/OR_ABI-L1b-RadC-M6C13_G16_s20221682051178_e20221682053562_c20221682054018.nc\n", "Downloading noaa-goes16/ABI-L1b-RadC/2022/168/20/OR_ABI-L1b-RadC-M6C13_G16_s20221682056178_e20221682058562_c20221682059029.nc\n" ] } ], "source": [ "# Use the anonymous credentials to access public data\n", "fs = s3fs.S3FileSystem(anon=True)\n", "\n", "day_no = 168 # Day number of year (here is June 17th, 16th on leap year)\n", "year = 2022\n", "hour = 20\n", "files = np.array(fs.ls(\"noaa-goes16/ABI-L1b-RadC/%d/%d/%02d/\" % (year, day_no, hour)))\n", "band = \"13\"\n", "for fi in files:\n", " if \"C13\" in fi:\n", " print(\"Downloading %s\" % fi)\n", " fs.get(fi, \"../data/\" + fi.split(\"/\")[-1])" ] }, { "cell_type": "code", "execution_count": 81, "id": "a49275e2-2a6f-4af3-8ad9-fbc39208617e", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
<xarray.Dataset>\n", "Dimensions: (y: 1500, x: 2500,\n", " number_of_time_bounds: 2,\n", " number_of_image_bounds: 2,\n", " band: 1,\n", " num_star_looks: 24)\n", "Coordinates:\n", " t datetime64[ns] 2022-07-...\n", " * y (y) float64 0.1282 ... ...\n", " * x (x) float64 -0.1013 ......\n", " y_image float32 0.08624\n", " x_image float32 -0.03136\n", " band_id (band) int8 13\n", " band_wavelength (band) float32 10.33\n", " t_star_look (num_star_looks) datetime64[ns] ...\n", " band_wavelength_star_look (num_star_looks) float32 ...\n", "Dimensions without coordinates: number_of_time_bounds, number_of_image_bounds,\n", " band, num_star_looks\n", "Data variables: (12/37)\n", " Rad (y, x) float32 ...\n", " DQF (y, x) float32 ...\n", " time_bounds (number_of_time_bounds) datetime64[ns] ...\n", " goes_imager_projection int32 -2147483647\n", " y_image_bounds (number_of_image_bounds) float32 ...\n", " x_image_bounds (number_of_image_bounds) float32 ...\n", " ... ...\n", " algorithm_dynamic_input_data_container int32 -2147483647\n", " processing_parm_version_container int32 -2147483647\n", " algorithm_product_version_container int32 -2147483647\n", " star_id (num_star_looks) float32 ...\n", " channel_integration_time float64 336.0\n", " channel_gain_field float64 0.0\n", "Attributes: (12/30)\n", " naming_authority: gov.nesdis.noaa\n", " Conventions: CF-1.7\n", " standard_name_vocabulary: CF Standard Name Table (v35, 20 July 2016)\n", " institution: DOC/NOAA/NESDIS > U.S. Department of Commerce,...\n", " project: GOES\n", " production_site: WCDAS\n", " ... ...\n", " timeline_id: ABI Mode 6\n", " date_created: 2022-07-12T20:09:02.3Z\n", " time_coverage_start: 2022-07-12T20:06:17.3Z\n", " time_coverage_end: 2022-07-12T20:08:55.7Z\n", " LUT_Filenames: SpaceLookParams(FM1A_CDRL79RevP_PR_09_00_02)-6...\n", " id: f45b564c-dcb9-498a-ac56-da80a1d735a5
\n", " | Unnamed: 0 | \n", "scan_mode | \n", "scan_name | \n", "template_name | \n", "azimuth_min | \n", "azimuth_max | \n", "elevation_min | \n", "elevation_max | \n", "range_min | \n", "range_max | \n", "cell_azimuth | \n", "cell_range | \n", "cell_zh | \n", "ngates_gt_0 | \n", "ngates_gt_10 | \n", "ngates_gt_30 | \n", "ngates_gt_50 | \n", "ngates_gt_10_5km | \n", "ngates_gt40_5km | \n", "ngates | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
time | \n", "\n", " | \n", " | \n", " | \n", " | \n", " | \n", " | \n", " | \n", " | \n", " | \n", " | \n", " | \n", " | \n", " | \n", " | \n", " | \n", " | \n", " | \n", " | \n", " | \n", " |
2022-06-17 00:00:03 | \n", "0 | \n", "rhi | \n", "rhi | \n", "hou-rhi-cell-track-05-deg | \n", "303.74450 | \n", "303.74450 | \n", "0.637207 | \n", "4.383545 | \n", "0.0 | \n", "109900.0 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
2022-06-17 00:06:09 | \n", "1 | \n", "ppi | \n", "ppi | \n", "hou-ppi-cell-track-05-deg | \n", "297.59216 | \n", "307.63367 | \n", "3.021240 | \n", "3.988037 | \n", "0.0 | \n", "109900.0 | \n", "297.910767 | \n", "700.0 | \n", "30.930866 | \n", "59 | \n", "30 | \n", "3 | \n", "0 | \n", "0 | \n", "0 | \n", "78 | \n", "
2022-06-17 00:06:40 | \n", "2 | \n", "rhi | \n", "rhi | \n", "hou-rhi-cell-track-05-deg | \n", "302.64587 | \n", "302.64587 | \n", "0.637207 | \n", "4.383545 | \n", "0.0 | \n", "109900.0 | \n", "302.645874 | \n", "1800.0 | \n", "-0.776333 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "2 | \n", "
2022-06-17 00:06:59 | \n", "3 | \n", "rhi | \n", "rhi | \n", "hou-rhi-cell-track-05-deg | \n", "302.55798 | \n", "302.59094 | \n", "0.637207 | \n", "4.383545 | \n", "0.0 | \n", "109900.0 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
2022-06-17 00:07:18 | \n", "4 | \n", "rhi | \n", "rhi | \n", "hou-rhi-cell-track-05-deg | \n", "302.97546 | \n", "302.99744 | \n", "0.637207 | \n", "4.383545 | \n", "0.0 | \n", "109900.0 | \n", "302.975464 | \n", "900.0 | \n", "-2.972101 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "2 | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
2022-06-17 23:39:46 | \n", "2826 | \n", "rhi | \n", "rhi | \n", "hou-rhi-cell-track-10-deg | \n", "301.48132 | \n", "301.50330 | \n", "0.648193 | \n", "9.382324 | \n", "0.0 | \n", "109900.0 | \n", "301.503296 | \n", "62400.0 | \n", "40.327583 | \n", "990 | \n", "989 | \n", "210 | \n", "0 | \n", "134 | \n", "0 | \n", "995 | \n", "
2022-06-17 23:40:02 | \n", "2827 | \n", "rhi | \n", "rhi | \n", "hou-rhi-cell-track-10-deg | \n", "305.70007 | \n", "305.70007 | \n", "0.648193 | \n", "9.404297 | \n", "0.0 | \n", "109900.0 | \n", "305.700073 | \n", "13600.0 | \n", "29.037998 | \n", "12 | \n", "6 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "20 | \n", "
2022-06-17 23:40:16 | \n", "2828 | \n", "rhi | \n", "rhi | \n", "hou-rhi-cell-track-10-deg | \n", "297.23510 | \n", "297.26807 | \n", "0.648193 | \n", "9.382324 | \n", "0.0 | \n", "109900.0 | \n", "297.235107 | \n", "700.0 | \n", "28.459156 | \n", "28 | \n", "25 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "34 | \n", "
2022-06-17 23:40:29 | \n", "2829 | \n", "ppi | \n", "ppi | \n", "hou-ppi-cell-track-10-deg | \n", "296.08704 | \n", "306.16150 | \n", "2.999268 | \n", "6.998291 | \n", "0.0 | \n", "109900.0 | \n", "300.646362 | \n", "59100.0 | \n", "33.882927 | \n", "807 | \n", "783 | \n", "27 | \n", "0 | \n", "63 | \n", "0 | \n", "830 | \n", "
2022-06-17 23:40:54 | \n", "2830 | \n", "rhi | \n", "rhi | \n", "hou-rhi-cell-track-10-deg | \n", "301.05835 | \n", "301.08032 | \n", "0.648193 | \n", "9.382324 | \n", "0.0 | \n", "109900.0 | \n", "301.058350 | \n", "62800.0 | \n", "37.198204 | \n", "767 | \n", "767 | \n", "75 | \n", "0 | \n", "76 | \n", "0 | \n", "773 | \n", "
2831 rows × 20 columns
\n", "