Skip to content

Latest commit

 

History

History
35 lines (20 loc) · 2.19 KB

setup_instructions_python.md

File metadata and controls

35 lines (20 loc) · 2.19 KB

Repository Setup Instructions

The tutorials in this repository require a compatible Python Environment, an installation of Git. To setup the environment follow the steps in sections 1. To access or download HLS granules, a .netrc file with your NASA Earthdata Login information is needed.earthaccess.login(persist=True) function uses an existing .netrc file for authentication purposes. If one does not exist, it will prompt for your NASA Earthdata username and password. If you do not have a NASA Earthdata account, please register here.

  • If you do not have an Environment Manager installed, we recommend Anaconda or miniconda. When installing, be sure to check the box to "Add Anaconda to my PATH environment variable" to enable use of conda directly from your command line interface.
  • If you do not have Git, you can download it here.

1. Python Environment Setup

This Python Environment will work for all tutorials within this repository. Using your preferred command line interface (command prompt, terminal, cmder, etc.) navigate to your local copy of the repository, then type the following to create a compatible Python environment using the included .yml file.

conda env create -f python/setup/hls_tutorial.yml

Next, activate the Python Environment that you just created.

conda activate hls_tutorial

Now you can launch Jupyter Notebook to open the notebooks included.

jupyter notebook

Additional information on setting up and managing Conda environments.
Still having trouble getting a compatible Python environment set up? Contact LP DAAC User Services.

Contact Info:

Email: [email protected]
Voice: +1-866-573-3222
Organization: Land Processes Distributed Active Archive Center (LP DAAC)¹
Website: https://lpdaac.usgs.gov/
Date last modified: 06-05-2023

¹Work performed under USGS contract G15PD00467 for NASA contract NNG14HH33I.