Skip to content

Commit

Permalink
add earthdata tutorials to toc and remove warning (#83)
Browse files Browse the repository at this point in the history
* add earthaccess tutorials to toc and remove spaces in filenames

* filter warnings and remove stderr output from rendered notebook

* fix indentation
  • Loading branch information
JessicaS11 authored Dec 9, 2023
1 parent 002e172 commit 8978549
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 39 deletions.
5 changes: 5 additions & 0 deletions book/_toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ parts:
- file: tutorials/IS2_ATL15_surface_height_anomalies/IS2_ATL15_surface_height_anomalies
- file: external/ICESAT2_ATL10-h5coro_large_scale_time_series
- file: tutorials/ARCOdata_writingZarrs
sections:
- file: tutorials/NASA-Earthdata-Cloud-Access/1.Intro-Earthdata-Cloud
- file: tutorials/NASA-Earthdata-Cloud-Access/2.earthdata_search
- file: tutorials/NASA-Earthdata-Cloud-Access/3.earthaccess
- file: tutorials/NASA-Earthdata-Cloud-Access/4.icepyx
- file: tutorials/GrIMP/GrIMP_tutorial_AGU23
- file: tutorials/SlideRule_applications/SlideRule_applications
- caption: Contributing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,7 @@
"source": [
"import json\n",
"import math\n",
"import warnings\n",
"\n",
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
Expand Down Expand Up @@ -1414,16 +1415,6 @@
"tags": []
},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/srv/conda/envs/notebook/lib/python3.10/site-packages/icepyx/core/read.py:520: UserWarning: rename 'delta_time' to 'photon_idx' does not create an index anymore. Try using swap_dims instead or use set_index after rename to create an indexed coordinate.\n",
" .rename({\"delta_time\": \"photon_idx\"})\n",
"/srv/conda/envs/notebook/lib/python3.10/site-packages/icepyx/core/read.py:520: UserWarning: rename 'delta_time' to 'photon_idx' does not create an index anymore. Try using swap_dims instead or use set_index after rename to create an indexed coordinate.\n",
" .rename({\"delta_time\": \"photon_idx\"})\n"
]
},
{
"data": {
"text/html": [
Expand Down Expand Up @@ -2050,7 +2041,10 @@
}
],
"source": [
"ds = reader.load()\n",
"# turn off warnings for load to not show an xarray warning that was resolved in the coming release of icepyx v1.0.0\n",
"with warnings.catch_warnings(record=True): \n",
" ds = reader.load()\n",
"\n",
"ds"
]
},
Expand Down Expand Up @@ -2184,20 +2178,6 @@
"id": "47fc67bb-5eba-4481-8dae-bc7248d09c91",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/srv/conda/envs/notebook/lib/python3.10/site-packages/icepyx/core/read.py:520: UserWarning: rename 'delta_time' to 'photon_idx' does not create an index anymore. Try using swap_dims instead or use set_index after rename to create an indexed coordinate.\n",
" .rename({\"delta_time\": \"photon_idx\"})\n",
"/srv/conda/envs/notebook/lib/python3.10/site-packages/icepyx/core/read.py:520: UserWarning: rename 'delta_time' to 'photon_idx' does not create an index anymore. Try using swap_dims instead or use set_index after rename to create an indexed coordinate.\n",
" .rename({\"delta_time\": \"photon_idx\"})\n",
"/srv/conda/envs/notebook/lib/python3.10/site-packages/icepyx/core/read.py:520: UserWarning: rename 'delta_time' to 'photon_idx' does not create an index anymore. Try using swap_dims instead or use set_index after rename to create an indexed coordinate.\n",
" .rename({\"delta_time\": \"photon_idx\"})\n",
"/srv/conda/envs/notebook/lib/python3.10/site-packages/icepyx/core/read.py:520: UserWarning: rename 'delta_time' to 'photon_idx' does not create an index anymore. Try using swap_dims instead or use set_index after rename to create an indexed coordinate.\n",
" .rename({\"delta_time\": \"photon_idx\"})\n"
]
},
{
"data": {
"text/html": [
Expand Down Expand Up @@ -2642,8 +2622,11 @@
}
],
"source": [
"# load the dataset\n",
"ds_photons = reader.load()\n",
"# turn off warnings for load to not show an xarray warning that was resolved in the coming release of icepyx v1.0.0\n",
"with warnings.catch_warnings(record=True):\n",
" # load the dataset\n",
" ds_photons = reader.load()\n",
" \n",
"ds_photons"
]
},
Expand Down Expand Up @@ -2774,16 +2757,6 @@
"id": "25272b20-5b03-4213-af06-1d73799fab70",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/srv/conda/envs/notebook/lib/python3.10/site-packages/icepyx/core/read.py:520: UserWarning: rename 'delta_time' to 'photon_idx' does not create an index anymore. Try using swap_dims instead or use set_index after rename to create an indexed coordinate.\n",
" .rename({\"delta_time\": \"photon_idx\"})\n",
"/srv/conda/envs/notebook/lib/python3.10/site-packages/icepyx/core/read.py:520: UserWarning: rename 'delta_time' to 'photon_idx' does not create an index anymore. Try using swap_dims instead or use set_index after rename to create an indexed coordinate.\n",
" .rename({\"delta_time\": \"photon_idx\"})\n"
]
},
{
"data": {
"text/html": [
Expand Down Expand Up @@ -3405,8 +3378,11 @@
}
],
"source": [
"# load the data\n",
"ds_te = reader.load()\n",
"# turn off warnings for load to not show an xarray warning that was resolved in the coming release of icepyx v1.0.0\n",
"with warnings.catch_warnings(record=True):\n",
" # load the data\n",
" ds_te = reader.load()\n",
" \n",
"ds_te"
]
},
Expand Down

0 comments on commit 8978549

Please sign in to comment.