Skip to article frontmatterSkip to article content

Using the 2i2c Hub

This notebook lays out instructions to log into the cloud infrastructure (JupyterHub) provided by 2i2c for this tutorial.

You won’t be able to complete this step until the actual day of the tutorial (you’ll get the password then).

1. Logging into the 2i2c Hub

To login to the JupyterHub provided by 2i2c, follow these steps:

  1. Navigate to the 2i2c Hub: Point your web browser to this link.

  2. Log in with your Credentials:

2i2c_login
  1. Logging In:

The login process might take a few minutes, especially if a new virtual workspace needs to be created just for you.

start_server2

By default, logging into https://climaterisk.opensci.2i2c.cloud automatically clones a repository to work in. If the login is successful, you will see the following screen and are ready to start working.

work_environment_jupyter_lab

Notes: Any files you work on will persist between sessions as long as you use the same username when logging in.

2. Configuring the Cloud Environment to Access NASA EarthData from Python

To access NASA’s EarthData products from Python programs or Jupyter notebooks, it is necessary to save your NASA EarthData credentials in a special file called .netrc in your home directory.

%run make_netrc.py

3. Verifying Access to NASA EarthData Products

To make sure everything is working properly, execute the script test_netrc.py:

$ python test_netrc.py

Again, you can execute this directly from this notebook using the Python cell below:

%run test_netrc.py

If that worked smoothly, you’re done! You now have everything you need to explore NASA’s Earth observation data through the EarthData portal!