Skip to content

Commit

Permalink
Refactor the Overview introductory tutorial (#429)
Browse files Browse the repository at this point in the history
Use data from Ensaio instead of a synthetic. Move some definitions to a
dedicated section. Use more admonitions and explain things in a bit more
detail. Rename to "A taste of Verde".
  • Loading branch information
leouieda authored Feb 6, 2024
1 parent 666ac03 commit 45230c0
Show file tree
Hide file tree
Showing 10 changed files with 500 additions and 185 deletions.
6 changes: 6 additions & 0 deletions doc/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,9 @@ span.project-version {
border-top: 1px solid #dddddd;
padding: 1.8rem 0;
}

/* Add some margins around jupyter-sphinx outputs */
.cell_output {
margin-top: 1em;
margin-bottom: 1em;
}
2 changes: 1 addition & 1 deletion doc/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


{% block htmltitle %}
{% if title == '' or title == 'Home' %}
{% if title == '' or 'no title' in title %}
<title>{{ docstitle|striptags|e }}</title>
{% else %}
<title>{{ title|striptags|e }} | {{ docstitle|striptags|e }}</title>
Expand Down
8 changes: 4 additions & 4 deletions doc/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ Released on: 2023/05/08

DOI: https://doi.org/10.5281/zenodo.7907182

.. warning::

**Verde v1.8.0 is the last release that is compatible with Python 3.6.**

Deprecations:

* Deprecate the ``engine`` argument of ``Spline/SplineCV`` (`#373 <https://github.com/fatiando/verde/pull/373>`__)
Expand Down Expand Up @@ -74,6 +70,10 @@ Released on: 2022/03/25

DOI: https://doi.org/10.5281/zenodo.6384887

.. warning::

**Verde v1.7.0 is the last release that is compatible with Python 3.6.**

Deprecation:

* Move the ``CheckerBoard`` class to ``verde.synthetic`` (`#353 <https://github.com/fatiando/verde/pull/353>`__)
Expand Down
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
"sphinx.ext.viewcode",
"sphinx.ext.extlinks",
"sphinx.ext.intersphinx",
"matplotlib.sphinxext.plot_directive",
"sphinx.ext.napoleon",
"sphinx_gallery.gen_gallery",
"sphinx_design",
"sphinx_copybutton",
"jupyter_sphinx",
]

# Configuration to include links to other project docs when referencing
Expand Down
30 changes: 30 additions & 0 deletions doc/conventions.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
.. _conventions:

Definitions and conventions
===========================

Here are a few of the conventions and definitions we use across Verde:

.. glossary::

Coordinate types
Coordinates can be **Cartesian or Geographic**. We generally make **no
assumptions** about which one you're using.

Order of coordinates
Coordinates are usually given as West-East and South-North. For example,
``longitude, latitude`` or ``easting, northing``. All functions and
classes expect coordinates **in this order**. This applies to the
actual coordinate values, bounding regions, grid spacing, etc.
**Exceptions** to this rule are the ``dims`` and ``shape`` arguments.

Coordinate names
We **don't use names like "x" and "y"** to avoid ambiguity. Cartesian
coordinates are "easting" and "northing" and Geographic coordinates are
"longitude" and "latitude". Sometimes this doesn't make sense, like
when using a polar projection, but we keep the convention for the sake
of consistency.

Region
The term "region" means **the bounding box of the data**. It is ordered
west, east, south, north.
24 changes: 10 additions & 14 deletions doc/index.rst
Original file line number Diff line number Diff line change
@@ -1,33 +1,28 @@
.. title:: Home

.. grid::
:gutter: 4 4 4 4
:margin: 5 5 0 0
:padding: 0 0 0 0

.. grid-item::
:columns: 12 4 12 4
:columns: 12 3 3 3

.. image:: ./_static/verde-logo.svg
:width: 200px
:class: sd-m-auto dark-light

.. grid-item::
:columns: 12 8 12 8
:columns: 12 9 9 9

.. grid::
:padding: 0 0 0 0
.. raw:: html

.. grid-item::
:columns: 12 12 12 9
<h1 class="display-1"><img class="dark-light" src="_static/verde-title.svg" alt="Verde"></h1>

.. raw:: html
.. raw:: html

<h1 class="display-1"><img class="dark-light" src="_static/verde-title.svg" alt="Verde"></h1>

.. div:: sd-fs-3

Processing and gridding spatial data, machine-learning style
<p class="sd-fs-3">
Processing and gridding spatial data, machine-learning style.
</p>

**Verde** is a Python library for processing spatial data (bathymetry,
geophysics surveys, etc) and interpolating it on regular grids (i.e.,
Expand Down Expand Up @@ -114,8 +109,8 @@ and more!
:hidden:
:caption: Getting Started

tutorials/overview.rst
install.rst
introduction.rst
gallery/index.rst

.. toctree::
Expand All @@ -139,6 +134,7 @@ and more!
:caption: Reference documentation

api/index.rst
conventions.rst
citing.rst
references.rst
changes.rst
Expand Down
Loading

0 comments on commit 45230c0

Please sign in to comment.