Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
Make final improvements to example for PO.DAAC Drive
Browse files Browse the repository at this point in the history
  • Loading branch information
lewismc committed Oct 23, 2018
1 parent 5cc0343 commit 986e8f7
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions examples/Using podaacpy to interact with PO.DAAC Drive.ipynb
Expand Up @@ -26,11 +26,18 @@
"outputs": [],
"source": [
"# In this example we replicate the following workflow \n",
"# * Define time period\n",
"# * Define spatial bounding box\n",
"# * Extract all (or just wind speed) variables from available granules\n",
"# * Aggregate into single netCDF output file\n",
"# * View aggregation in the Panoply data viewer\n",
"# * Define temporal and spatial characteristics of a given event \n",
"# e.g. Hurricane Florence which was a very recent major hurricane \n",
"# to impact Southeastern US\n",
"# * Search for all available (whole orbit) granules for that event and \n",
"# download them from PO.DAAC Drive to the local machine\n",
"# * View files in the Panoply data viewer\n",
"# more information on Panoply can be found at\n",
"# https://www.giss.nasa.gov/tools/panoply/\n",
"# * Streamline the above data acquisition task using PO.DAAC's\n",
"# Level 2 Subsetting software to download a regional data subset for the\n",
"# event at the given space and time.\n",
"# * Finally, view the subsetted granule again in Panoply\n",
"\n",
"# In this example we has chosen the MetOp-A ASCAT Level 2 Ocean \n",
"# Surface Wind Vectors Optimized for Coastal Ocean collection as our \n",
Expand All @@ -50,7 +57,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 1,
"metadata": {},
"outputs": [
{
Expand All @@ -60,7 +67,7 @@
"<IPython.core.display.Image object>"
]
},
"execution_count": 2,
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -101,7 +108,8 @@
"metadata": {},
"outputs": [],
"source": [
"# Let's discover PO.DAAC Wind data relating to Hurricane Florence \n",
"# Let's discover PO.DAAC Wind data relating to Hurricane Florence, which\n",
"# was a very recent major hurricane to impact Southeastern US\n",
"# https://en.wikipedia.org/wiki/Hurricane_Florence\n",
"# Using specific parameters to confine the discovery space, we opt for the full \n",
"# metadata record in atom format\n",
Expand Down Expand Up @@ -148,7 +156,7 @@
" sort_by='timeAsc',\n",
" items_per_page='400',\n",
" format='atom',\n",
" pretty='true')\n",
" pretty='True')\n",
"#print(result)\n",
"searchStr = 'totalResults'\n",
"numResultsStr = [ str(i) for i in result.strip().split() if searchStr in i ]\n",
Expand Down Expand Up @@ -218,8 +226,7 @@
"from podaac import l2ss as l2ss\n",
"l = l2ss.L2SS()\n",
"granule_id = 'ascat_20180913_134800_metopa_61756_eps_o_coa_2401_ovw.l2.nc'\n",
"query = \n",
" {\n",
"query = {\n",
" \"email\": \"your_email@here.com\",\n",
" \"query\":\n",
" [\n",
Expand Down

0 comments on commit 986e8f7

Please sign in to comment.