From 8770da0e67d7b19218e2a98cdafebae532fcc554 Mon Sep 17 00:00:00 2001 From: Joey Schultz Date: Mon, 21 Oct 2024 13:40:58 -0400 Subject: [PATCH] Reorganize some of the notebook functions --- docs/TEMPO_O3TOT_L2_example.ipynb | 42 +++++++++++++++---------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/docs/TEMPO_O3TOT_L2_example.ipynb b/docs/TEMPO_O3TOT_L2_example.ipynb index 55384d3..d4ec1df 100644 --- a/docs/TEMPO_O3TOT_L2_example.ipynb +++ b/docs/TEMPO_O3TOT_L2_example.ipynb @@ -104,25 +104,6 @@ "granule_id = 'G1270257472-EEDTEST'" ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "#### Building Swath Projector Request:" - ] - }, - { - "cell_type": "code", - "execution_count": 5, - "metadata": {}, - "outputs": [], - "source": [ - "harmony_client = Client(env=Environment.LOCAL)\n", - "request = Request(\n", - " crs='EPSG:4326', interpolation='near', collection=collection, granule_id=granule_id\n", - ")" - ] - }, { "cell_type": "markdown", "metadata": {}, @@ -149,7 +130,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "#### Submitting Harmony Request:" + "#### Utility functions for submitting Harmony Requests:" ] }, { @@ -189,8 +170,27 @@ "\n", "def print_error(error_string: str) -> str:\n", " \"\"\"Print an error, with formatting for red text.\"\"\"\n", - " print(f'\\033[91m{error_string}\\033[0m')\n", + " print(f'\\033[91m{error_string}\\033[0m')" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "#### Submitting Harmony Request:" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ "\n", + "harmony_client = Client(env=Environment.LOCAL)\n", + "request = Request(\n", + " crs='EPSG:4326', interpolation='near', collection=collection, granule_id=granule_id\n", + ")\n", "\n", "swath_output_file_name = output_directory + f'TEMPO_O3TOT_L2_{granule_id}_output.h5'\n", "submit_and_download(harmony_client, request, swath_output_file_name)"