Skip to content

Commit

Permalink
Add presentation slides (#6)
Browse files Browse the repository at this point in the history
Add slides for the KEGS 2023 presentation.
  • Loading branch information
santisoler authored Feb 24, 2023
1 parent 52c28e4 commit 10c8697
Show file tree
Hide file tree
Showing 45 changed files with 6,436 additions and 5 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
# Fatiando a Terra: Open-source tools for geophysics

## Authors

[Santiago Soler](https://www.santisoler.com)<sup>1</sup>
[Lindsey J. Heagy](https://lindseyjh.ca/)<sup>1</sup>

> 1. Department of Earth, Ocean and Atmospheric Sciences, University of British
> Columbia
|Information | |
|--|---|
| When | March 4, 2023 |
| Where | [KEGS 2023 Symposium](https://www.kegsonline.org), Toronto, Canada |
| Abstract | [Read abstract](#abstract) |
| Extended abstract | [Read extended abstract](extended-abstract/README.md) |
| Presentation slides | [10.6084/m9.figshare.22151357](https://doi.org/10.6084/m9.figshare.22151357) |

## Abstract

<!-- a little about the project -->
Expand Down
16 changes: 13 additions & 3 deletions extended-abstract/code/environment.yml → environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,19 @@ dependencies:
- numpy==1.23.5
- xarray==2023.1.0
- pandas==1.5.3
- pyproj==3.4.1
- pygmt==0.8.0
- xrft==1.0.1
- matplotlib==3.7.0
- pyvista==0.38.1
- jupyter
- tectonic
- pip
# Fatiando packages
- pooch==1.6.0
- boule==0.4.1
- ensaio==0.5.0
- harmonica==0.5.1
- verde==1.7.0
- pyproj==3.4.1
- pygmt==0.8.0
- pip:
- git+https://github.com/fatiando/harmonica
- ppigrf
24 changes: 24 additions & 0 deletions presentation/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Slides for KEGS 2023 presentation

The `slides.odp` contains the slides for the KEGS 2023 presentation. A PDF
version can be downloaded from
[10.6084/m9.figshare.22151357](https://doi.org/10.6084/m9.figshare.22151357).

The slides have been made with [LibreOffice
Impress](https://www.libreoffice.org/discover/impress/) using the
[Montserrat](https://fonts.google.com/specimen/Montserrat)
and [FiraCode](https://github.com/tonsky/FiraCode) fonts available under the
OFL license.
Versions of these fonts are included in the `fonts` directory.

The `code` folder contains Jupyter notebooks and Python scripts used to
generate some of the figures shown in the slides.

The `data` folder contains magnetic data from the Mt. Milligan,
British Columbia. The files were downloaded from
[NRCAN](https://natural-resources.canada.ca/home) website, available under an
[Open Government Licence, Canada](
https://open.canada.ca/en/open-government-licence-canada).

The `figs` folder contains some of the figures and original `.svg` files used
to create the figures shown in the slides.
60 changes: 60 additions & 0 deletions presentation/code/fetch_avatars.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
"""
Fetch GitHub avatars of Fatiando authors
"""
import re
import requests
from pathlib import Path

BRANCH = "main"
PROJECTS = ["harmonica", "verde", "boule", "pooch", "ensaio"]


def _parse_authors_file(package, branch):
"""
Returns a dict with information about the author of the package
Parameters
----------
package : str
Name of the Fatiando a Terra package.
Returns
-------
authors : list
List of tuples. Each tuple contains the ``full_name`` and the
``github_handle`` of each user.
"""
response = requests.get(
f"https://raw.githubusercontent.com/fatiando/{package}/{branch}/AUTHORS.md",
)
response.raise_for_status()
markdown = response.text
authors = re.findall(r"\[(.+?)\]\((?:https://github.com/)(.+?)/?\)", markdown)
return authors


if __name__ == "__main__":

# Get path of dir for this script
filepath = Path(__file__).parent

# Get authors of all Fatiando projects
authors = []
for project in PROJECTS:
authors.extend(_parse_authors_file(project, BRANCH))

# Get unique authors
authors = list(set(authors))

# Create directory for storing the avatar images
avatars_dir = filepath / ".." / "figs" / "avatars"
avatars_dir.mkdir()

# Download the avatar images
for _, handle in authors:
with open(avatars_dir / f"{handle}.jpg", "wb") as outfile:
response = requests.get(f"https://github.com/{handle}.png")
if response.status_code != 200:
print(f"Couldn't download avatar for {handle}")
continue
outfile.write(response.content)
1,963 changes: 1,963 additions & 0 deletions presentation/code/gravity-processing.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 10c8697

Please sign in to comment.