import os
import subprocess
# Check if disasters-aws-conversion exists, if not clone it
repo_name = "disasters-aws-conversion"
repo_url = "https://github.com/Disasters-Learning-Portal/disasters-aws-conversion.git"
if not 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")Clone conversion repository into current directory
To begin processing data effectively, run the cells below to clone the repository.
🚀 Launch in Disasters-Hub JupyterHub (requires access)
To obtain credentials to VEDA Hub, follow this link for more information.
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.