Skip to content

Commit

Permalink
update concise notebook (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
sliu008 authored Sep 14, 2022
1 parent 6fbe5f8 commit e057500
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions jupyter_notebooks/harmony_concise_api_test.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -263,20 +263,24 @@
"variables = list(ds.variables)\n",
"\n",
"for v in variables:\n",
" if v not in ['subset_files', 'lat', 'lon', 'latitude', 'longitude']:\n",
" if v not in ['subset_files', 'lat', 'lon', 'latitude', 'longitude', 'beam_clat', 'beam_clon']:\n",
" variable = v\n",
" break;\n",
"\n",
"if \"lon\" in variables:\n",
" x = \"lon\"\n",
"elif \"longitude\" in variables:\n",
" x = \"longitude\"\n",
" \n",
"elif \"beam_clon\" in variables:\n",
" x = \"beam_clon\"\n",
" \n",
"if \"lat\" in variables:\n",
" y = \"lon\"\n",
"elif \"latitude\" in variables:\n",
" y = \"longitude\"\n",
"\n",
"elif \"beam_clat\":\n",
" y = \"beam_clat\"\n",
" \n",
"for index in range(0, max_results):\n",
" \n",
" ds.isel(subset_index=index).plot.scatter(\n",
Expand Down Expand Up @@ -354,7 +358,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.10"
"version": "3.8.12"
}
},
"nbformat": 4,
Expand Down

0 comments on commit e057500

Please sign in to comment.