{"id":17250578,"url":"https://github.com/loreabad6/ogh23","last_synced_at":"2025-04-14T05:17:19.898Z","repository":{"id":186799180,"uuid":"675742489","full_name":"loreabad6/ogh23","owner":"loreabad6","description":"Materials for the OGH 23 tutorial on S1 and S2 data handling with R and Python","archived":false,"fork":false,"pushed_at":"2024-02-20T16:32:08.000Z","size":22625,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T05:16:55.831Z","etag":null,"topics":["geopython","python","r","rspatial","sentinel-1","sentinel-2"],"latest_commit_sha":null,"homepage":"https://loreabad6.github.io/ogh23/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/loreabad6.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-08-07T16:06:01.000Z","updated_at":"2024-03-14T13:38:14.000Z","dependencies_parsed_at":"2023-12-28T13:20:48.179Z","dependency_job_id":"89abd57c-aa85-4f77-8f1a-41d42e11b806","html_url":"https://github.com/loreabad6/ogh23","commit_stats":{"total_commits":40,"total_committers":1,"mean_commits":40.0,"dds":0.0,"last_synced_commit":"c838027a7a20a700ba51082b10232bf3fd262711"},"previous_names":["loreabad6/ogh23"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loreabad6%2Fogh23","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loreabad6%2Fogh23/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loreabad6%2Fogh23/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loreabad6%2Fogh23/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loreabad6","download_url":"https://codeload.github.com/loreabad6/ogh23/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248824695,"owners_count":21167345,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["geopython","python","r","rspatial","sentinel-1","sentinel-2"],"created_at":"2024-10-15T06:49:03.948Z","updated_at":"2025-04-14T05:17:19.878Z","avatar_url":"https://github.com/loreabad6.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tools and packages to query and process Sentinel-1 and Sentinel-2 data with R and Python\n\nSee a summary blogpost here: \u003chttps://loreabad6.github.io/posts/2023-10-17-stac-across-languages/\u003e\n\n## [OpenGeoHub Summer School Poznan 2023](https://opengeohub.org/summer-school/opengeohub-summer-school-poznan-2023/)\n\nIntro slides [here](https://loreabad6.github.io/ogh23/intro.html).\n\nWednesday, Aug. 31th \u0026 Sept. 1st 2023\n\n## Part 1: Thu. 31.08. - 13h30-15h00\nDuring this session we will take a look at Sentinel-1 data, specifically tools to query data for subsequent large processing and some basic data analysis in Python.\n\nYou can browse the material [here](https://loreabad6.github.io/ogh23/notebooks/jupyter/sentinel1.html).\n\n## Part 2: Fri. 01.09. - 09h00-10h30\nOn Friday, we will focus on Sentinel-2 data and the STAC API going back and forth between R and Python environments. \n\nYou can browse the [R material here](https://loreabad6.github.io/ogh23/notebooks/quarto/sentinel2.html) and the [Python material here](https://loreabad6.github.io/ogh23/notebooks/jupyter/sentinel2.html).\n\n## Set-up\n\n### Docker\nSince installations of R, but mostly Python, can be complicated, I recommend using Docker for this tutorial. To use them, please download and install Docker Engine/Desktop:\n\n- Linux: https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository\n- Windows: https://docs.docker.com/docker-for-windows/install/\n- Mac: https://docs.docker.com/docker-for-mac/install/\n\nOnce you have installed this, start the docker engine. \n\nThere are two Dockerfiles for this tutorial.\n\n#### Python environment: \n\nWe will work on a minimal Jupyter notebook image enhanced with some geospatial flavor and the specific requirements for this lesson.\n\n1. Go to your terminal and navigate to your desired directory. \n\n2. Clone this repository.\n```\ngit clone https://github.com/loreabad6/ogh23.git\n```\n\n3. Build the Docker image:\n```\ncd dockerfiles/pyenv\ndocker build -t pyenv . \n```\n\n4. Run the Docker container. Note that `--rm` will remove the container when you quit. \n```\ncd ../..\ndocker run --name ogh-pyenv --rm -it -p 8888:8888 -v $PWD/:/home/jovyan pyenv \n```\n\n5. If successful, you will see a link to the Jupyter notebook printed on the console. Copy that link in your browser and you are ready to go!\n\nTo stop the notebook environment go back to the terminal and `CTRL+C`.\n\n#### R environment:\n\nFor the R environment we will run a RStudio cloud instance. Given that you already followed steps 1 and 2 for the Python environment:\n\n1. Build the Docker image:\n```\ncd dockerfiles/renv\ndocker build -t renv . \n```\n\n2. Run the Docker container\n```\ncd ../..\ndocker run --name ogh-renv --rm -e DISABLE_AUTH=TRUE -e USERID=$UID -p 8786:8787 -v $PWD/:/home/rstudio/ogh23/ renv\n```\n\n3. Go to your browser and type: http://localhost:8786/. Now you have an RStudio interface on your browser!\n\nTo stop the RStudio environment go back to the terminal and `CTRL+C`.\n\nSince we are going back and forth with the tutorials, it would be good if you can run both containers at the same time. In simple terms this means you can execute docker run in two different command line windows and then have Jupyter Notebooks and RStudio cloud open in two tabs. Please test that this works for you before the tutorial. \n\n### Alternatives\n\nIf you want to work on your own local machine and do the manual installations, refer to the Dockerfiles for the specific requirements for the R and Python environments. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floreabad6%2Fogh23","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floreabad6%2Fogh23","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floreabad6%2Fogh23/lists"}