Disclaimer: it is highly recommended to run a tutorial within NASA VEDA JupyterHub, which already includes functions for processing and visualizing data specific to VEDA stories. Running the tutorial outside of the VEDA JupyterHub may lead to errors, specifically related to EarthData authentication. Additionally, it is recommended to use the Pangeo workspace within the VEDA JupyterHub, since certain packages relevant to this tutorial are already installed.
If you do not have a VEDA Jupyterhub Account you can launch this notebook on your local environment using MyBinder by clicking the icon below.
Clone Required Repository
import osimport subprocess# Check if disasters-aws-conversion exists, if not clone itrepo_name ="disasters-aws-conversion"repo_url ="https://github.com/Disasters-Learning-Portal/disasters-aws-conversion.git"ifnot os.path.exists(repo_name):print(f"Cloning {repo_name} repository...")try: result = subprocess.run( ["git", "clone", repo_url, f"{repo_name}"], capture_output=True, text=True, check=True )print(f"Successfully cloned {repo_name}")except subprocess.CalledProcessError as e:print(f"Error cloning repository: {e.stderr}")else:print(f"{repo_name} repository already exists")