Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/.quarto/

**/*.quarto_ipynb
<<<<<<< Updated upstream
=======

.claude
>>>>>>> Stashed changes

_site/
100 changes: 100 additions & 0 deletions Jupyterhub/clone_conversion_repo.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Clone conversion repository into current directory\n",
"\n",
"To begin processing data effectively, run the cells below to clone the repository.\n",
"\n",
"\n",
"\n",
"---"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<h3><a href=\"https://hub.disasters.2i2c.cloud/hub/user-redirect/git-pull?repo=https://github.com/Disasters-Learning-Portal/disasters-docs&urlpath=lab/tree/disasters-docs/Jupyterhub/clone_conversion_repo.ipynb&branch=main\">🚀 Launch in Disasters-Hub JupyterHub (requires access)</a></h3>\n",
"\n",
"<h4> To obtain credentials to VEDA Hub, <a href = \"https://docs.openveda.cloud/user-guide/scientific-computing/getting-access.html\"> follow this link for more information.</a></h4>"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<div class=\"alert alert-block\" style=\"\n",
" background-color: #f8d7da;\n",
" color: #721c24;\n",
" border-left: 4px solid #28a745;\n",
" \">\n",
"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. </div>\n",
"\n",
"<h4> If you <strong>do not</strong> have a VEDA Jupyterhub Account you can launch this notebook on your local environment using MyBinder by clicking the icon below.</h4>\n",
"<br/>\n",
"<a href=\"https://binder.openveda.cloud/v2/gh/NASA-IMPACT/veda-docs/9c8cdbae92906fb7062b8a0c759dad90e223a4f9?urlpath=lab%2Ftree%2Fuser-guide%2Fnotebooks%2Fstories%2Fderechos.ipynb\">\n",
"<img src=\"https://binder.openveda.cloud/badge_logo.svg\" alt=\"Binder\" title=\"A cute binder\" width=\"150\"/> </a>"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Clone Required Repository"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"import subprocess\n",
"\n",
"# Check if disasters-aws-conversion exists, if not clone it\n",
"repo_name = \"disasters-aws-conversion\"\n",
"repo_url = \"https://github.com/Disasters-Learning-Portal/disasters-aws-conversion.git\"\n",
"\n",
"if not os.path.exists(repo_name):\n",
" print(f\"Cloning {repo_name} repository...\")\n",
" try:\n",
" result = subprocess.run(\n",
" [\"git\", \"clone\", repo_url, f\"{repo_name}\"],\n",
" capture_output=True,\n",
" text=True,\n",
" check=True\n",
" )\n",
" print(f\"Successfully cloned {repo_name}\")\n",
" except subprocess.CalledProcessError as e:\n",
" print(f\"Error cloning repository: {e.stderr}\")\n",
"else:\n",
" print(f\"{repo_name} repository already exists\")"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.11"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
217 changes: 0 additions & 217 deletions Jupyterhub/convert_to_geotiff.qmd

This file was deleted.

Loading