NASA-Openscapes / common

Common modules/tutorials/resources for NASA DAACs
0 stars 0 forks source link

Set up a Notebook with EDLogin (netrc) #12

Closed virdi closed 3 years ago

virdi commented 3 years ago

We need a common method for login credential, reusable component

virdi commented 3 years ago

Duplicate of #1

jules32 commented 3 years ago

Bringing links from issue #1 and closing it, since it's flagged as duplicate

From Erin's original #1 :

[PODAA AGU tutorial with EarthData login materials]

Create common netrc file setup tutorial based on HLS tutorial and others

jules32 commented 3 years ago

Following @cpkrehbiel's success adding a .ipynb to the jupyterbook, I added a placeholder/stub .ipynb chapter too, linking to Christine's post on Jupyter Discourse.

jjmcnelis commented 3 years ago

Perhaps check out this example: https://github.com/podaac/ECCO/blob/main/Data_Access/local_bulk_download_and_open_in_py3.ipynb

Could be a starting point (or stopping point depending on what we want to accomplish).

jules32 commented 3 years ago

Thanks @jjmcnelis. I've added the netrc parts of that as a .ipynb file. Would you be able to review when you have a chance and even add more prose/description or outline what would be useful as an intro here?

https://nasa-openscapes.github.io/openscapes_jupyterbook_test/getting_started/podaac-ecco-netrc.html

jjmcnelis commented 3 years ago

Thanks @jjmcnelis. I've added the netrc parts of that as a .ipynb file. Would you be able to review when you have a chance and even add more prose/description or outline what would be useful as an intro here?

https://nasa-openscapes.github.io/openscapes_jupyterbook_test/getting_started/podaac-ecco-netrc.html

Sure thing

Btw it looks like you added my example lines to your netrc a few times @jules32

The ipynb shoulda made a backup copy of the original tho. See the very first part if you need to revert

jules32 commented 3 years ago

Thanks @jjmcnelis, I've just copy-pasted your notebook and re-rendered several times. There should be a way to have code display but not run each time we render.

I actually didn't look at the netrc I produced, because I was just focused on the book structure. Would you be able to write up more documentation and narrative about what researchers should do if they needed to revert, and why?

jules32 commented 3 years ago

Closing this here, see https://github.com/NASA-Openscapes/earthdata-cloud-cookbook/issues/44 for more up-to-date activity