Skip to content

Commit

Permalink
Reorganize some of the notebook functions
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyschultz committed Oct 21, 2024
1 parent 735894d commit 8770da0
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions docs/TEMPO_O3TOT_L2_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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": {},
Expand All @@ -149,7 +130,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Submitting Harmony Request:"
"#### Utility functions for submitting Harmony Requests:"
]
},
{
Expand Down Expand Up @@ -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)"
Expand Down

0 comments on commit 8770da0

Please sign in to comment.