{"id":15359115,"url":"https://github.com/santisoler/2024-uh","last_synced_at":"2026-06-08T16:02:54.749Z","repository":{"id":235593755,"uuid":"790448060","full_name":"santisoler/2024-uh","owner":"santisoler","description":"Invited talk at Jiajia Sun's course on Potential Fields theory","archived":false,"fork":false,"pushed_at":"2024-04-24T16:40:54.000Z","size":69294,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-03T16:41:55.114Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc-by-4.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/santisoler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-22T22:34:11.000Z","updated_at":"2025-02-07T15:56:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"4bb06aa5-ecbd-4032-9afb-e5f09a04c54e","html_url":"https://github.com/santisoler/2024-uh","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"e5a701508ae230730caaeba78fb291743047a570"},"previous_names":["santisoler/2024-uh"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/santisoler/2024-uh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santisoler%2F2024-uh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santisoler%2F2024-uh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santisoler%2F2024-uh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santisoler%2F2024-uh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/santisoler","download_url":"https://codeload.github.com/santisoler/2024-uh/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santisoler%2F2024-uh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34069501,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-01T12:43:51.304Z","updated_at":"2026-06-08T16:02:54.733Z","avatar_url":"https://github.com/santisoler.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Modernizing gravity processing: use the gravity disturbance\n\nSantiago Soler\n\n_University of British Columbia_\n\n## Information\n\n| Information |                                        |\n| ----------- | -------------------------------------- |\n| When        | April 23, 2024                         |\n| DOI         | [10.6084/m9.figshare.25676571][slides] |\n\n## About\n\nI got invited by Dr. [Jiajia Sun][jiajia] from [University of Houston][houston]\nto give a talk about potential fields and available open-source tools for\nprocessing them to their potential field undergrad class students.\n\n## Setup\n\nDuring this talk we'll use [Juptyer notebooks][jupyter] to perform some gravity\nprocessing.\n\nTo be able to follow the live coding and run these notebooks, you'll need to\nhave access to a Python environment. This could be done through **online\nservices** like [Google Colab][colab], or through a **local Python\ninstallation** like [Anaconda][anaconda] or [Miniforge][miniforge].\n\nHere will provide instructions to:\n\n- [Configure Google Colab](#configure-google-colab)\n- or [Install Python locally](#install-python-locally)\n\n\n### Configure Google Colab\n\nTo be able to run the Jupyter notebooks for this tutorial in Google Colab,\nwe'll need to follow these steps:\n\n1. Login to our Google Colab account.\n1. Create a new notebook.\n1. Install `conda` in Google Colab using [`condacolab`][condacolab]\n1. Install some Python libraries that we'll need to use, such as\n   [harmonica][harmonica].\n\n#### Step 1: Login to our Google Colab account\n\nIf you don't have a Google account, create one and log in. If you do, you just\nneed to log in.\n\n#### Step 2: Create a new notebook\n\n1. Access to Google Colab by going to: https://colab.research.google.com\n1. Find the top menu and choose `File` \u003e `New notebook`. A new tab should open\n   with a blank notebook in it.\n\n#### Step 3: Install `conda` in Colab\n\nPaste this to **the first cell in the notebook**:\n\n\u003e [!IMPORTANT]\n\u003e These lines should be in the very first cell of the notebook. Otherwise, the\n\u003e installation will fail.\n\n```\n!pip install -q condacolab\nimport condacolab\ncondacolab.install()\n```\n\nRun the cell, wait until the kernel is restarted, and then follow to the next\nstep.\n\n#### Step 4: Install some Python libraries\n\nTo be able to run the notebook we need to install some Python libraries\nthat aren't preinstalled in the default Google Colab environment.\n\n1. Add a new cell (below the one you used to install `conda`)\n1. Install some packages using `conda` by pasting this content in the cell and\n   running it:\n   ```\n   !conda install harmonica boule ensaio pygmt pyproj\n   ```\n\n\u003e [!IMPORTANT]\n\u003e Every time you open a notebook in Colab or create a new one, you'll have to\n\u003e reinstall `conda` and these packages (Google Colab don't save installed\n\u003e states across notebooks).\n\u003e\n\u003e If it's a new notebook, just follow the previous instructions from the top.\n\u003e\n\u003e If it's an existing notebook, make sure that it has the two cells described\n\u003e in this and in the previous step, and run them.\n\n### Install Python locally\n\nTo be able to run the Jupyter notebooks for this tutorial in our own machines,\nwe'll have to follow these steps:\n\n1. Install a Python distribution (like [Anaconda][anaconda] or\n   [miniforge][miniforge]).\n1. Create a [_conda environment_][conda-environ] with all the Python packages\n   needed.\n1. Activate this conda environment and run [Jupyter][jupyter] to start\n   coding.\n\n#### Step 1: Install a Python distribution\n\nWe recommend installing a Python distribution like [miniforge][miniforge] or\n[Anaconda][anaconda].\n\nBoth of them will install Python and a package manager that allows us to\ninstall new Python libraries, and also create _environments_.\n\n- Install miniforge: https://github.com/conda-forge/miniforge#install\n- Install Anaconda: https://docs.anaconda.com/anaconda/install\n\n#### Step 2: Create the `2024-uh` conda environment\n\n1. Download the [`environment.yml`][environment_yml] file from\n   (right-click and select \"Save page as\" or similar).\n1. Make sure that the file is called `environment.yml`.\n   Windows sometimes adds a `.txt` to the end, which you should remove.\n1. Open a terminal (_Anaconda Prompt_ or _Miniforge Prompt_ if you are running\n   Windows). The following steps should be done in the terminal.\n1. Navigate to the folder that has the downloaded environment file\n   (if you don't know how to do this, take a moment to read [the Software\n   Carpentry lesson on the Unix shell][shell-novice]).\n1. Create the conda environment by running `conda env create --file\n   environment.yml` (this will download and install all of the packages used in\n   the tutorial).\n\n#### Step 3: Activate the `2024-uh` environment and start Jupyter\n\n\u003e [!TIP]\n\u003e You'll need a browser that is able to run Jupyter (basically anyone except\n\u003e Internet Explorer or Edge). If you are in Windows, make sure you change your\n\u003e default browser to a different one.\n\nNow we can activate the newly created `2024-uh` environment.\n\n1. Open a terminal (_Anaconda Prompt_ or _Miniforge Prompt_ if you are running\n   Windows).\n1. Activate the `2024-uh` environment by running\n  `conda activate 2024-uh`.\n1. With the `2024-uh` environment activated, we can start Jupyter\n   by running `jupyter notebook` in the terminal. A new tab in our web browser\n   should open showing Jupyter's interface.\n\n\n## License\n\nThis work is licensed under a\n[Creative Commons Attribution 4.0 International License][cc-by].\n\n[![CC BY 4.0][cc-by-image]][cc-by]\n\n\n[cc-by]: http://creativecommons.org/licenses/by/4.0/\n[cc-by-image]: https://i.creativecommons.org/l/by/4.0/88x31.png\n[jiajia]: https://www.uh.edu/nsm/earth-atmospheric/people/faculty/jiajia-sun/\n[houston]: https://www.uh.edu/nsm/earth-atmospheric/\n[slides]: https://doi.org/10.6084/m9.figshare.25676571\n[colab]: https://colab.research.google.com\n[condacolab]: https://github.com/conda-incubator/condacolab\n[environment_yml]: https://raw.githubusercontent.com/santisoler/2024-uh/main/environment.yml\n[jupyter]: https://jupyter.org/\n[shell-novice]: http://swcarpentry.github.io/shell-novice\n[anaconda]: https://www.anaconda.com/download\n[miniforge]: https://github.com/conda-forge/miniforge\n[conda-environ]: https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsantisoler%2F2024-uh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsantisoler%2F2024-uh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsantisoler%2F2024-uh/lists"}