Metadata-Version: 2.1
Name: tinerator
Version: 0.9.0
Summary: "Intuitive and powerful unstructured geospatial mesh generation from GIS data."
Home-page: https://github.com/lanl/tinerator
Author: Daniel Livingston, Los Alamos National Laboratory
Author-email: daniel.livingston@live.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Operating System :: OS Independent
Classifier: Operating System :: MacOS
Classifier: Operating System :: Unix
Classifier: Operating System :: POSIX
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Scientific/Engineering :: GIS
Classifier: Topic :: Scientific/Engineering :: Hydrology
Classifier: Topic :: Scientific/Engineering :: Visualization
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: setuptools (>=46.1.0)
Requires-Dist: setuptools-scm (>=5)
Requires-Dist: tomlkit (<2,>=0.7.0)
Requires-Dist: packaging (>=20.7)
Requires-Dist: numpy (>=1.19.0)
Requires-Dist: scipy (>=1.0)
Requires-Dist: Fiona (>=1.0)
Requires-Dist: pyproj (>=3.0)
Requires-Dist: Shapely (>=1.0)
Requires-Dist: snowy (>=0.0.9)
Requires-Dist: pyshp (>=2)
Requires-Dist: vtk (<10,>=9)
Requires-Dist: pyvista (>=0.30)
Requires-Dist: meshio (>=4.0.0)
Requires-Dist: MeshPy (>=2020.0)
Requires-Dist: plotly (>=5.0)
Requires-Dist: rich (>=10.0)
Requires-Dist: importlib-metadata ; python_version < "3.8"

![logo](docs/_static/logo-color-horiz.svg)

[![build](https://github.com/lanl/tinerator/actions/workflows/docker-image.yml/badge.svg)](https://github.com/lanl/tinerator/actions/workflows/docker-image.yml) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/lanl/tinerator/master)

[![dockerhub](https://img.shields.io/static/v1?label=Docker&message=Download%20container&color=blue&style=for-the-badge&logo=docker)](https://hub.docker.com/r/ees16/tinerator) <br/>
[![readthedocs](https://img.shields.io/static/v1?label=Documentation&message=Read%20online&color=blue&style=for-the-badge&logo=read-the-docs)](https://lanl.github.io/tinerator/) <br/>
[![jupyter](https://img.shields.io/static/v1?label=Jupyter%20Notebook&message=View%20examples&color=blue&style=for-the-badge&logo=jupyter)](https://github.com/lanl/tinerator/tree/master/examples)

### About TINerator

**TINerator** is a Python module for the easy creation of unstructured 3D and 2.5D meshes from GIS data sources. Digital Elevation Maps (DEMs) can be quickly turned into unstructured triangulated meshes, and then further refined by the import of flowline shapefiles or automatically through watershed delineation. Advanced layering and attribute functions then allow for a complex subsurface to be defined. 

TINerator comes with a host of 2D and 3D visualization functions, allowing the user to view the status of the mesh at every step in the workflow. In addition, there are geometrical tools for removing triangles outside of a polygon, generating quality analytics on the mesh, adding cell- and node-based attributes to a mesh, and much more.

It was created at Los Alamos National Laboratory and funded primarily through the [IDEAS-Watersheds](https://ideas-productivity.org/ideas-watersheds/) and [NGEE Arctic](https://ngee-arctic.ornl.gov) programs. It has since been used by researchers and US-DOE national laboratories nation-wide.

TINerator has been designed to work well with [Amanzi-ATS](https://amanzi.github.io).

### Documentation

- [Read the documentation online](https://lanl.github.io/tinerator)

### Quick Start

#### Online Demo

[![Binder](https://mybinder.org/badge_logo.svg)]()

You can run TINerator Jupyter notebooks online with [MyBinder](https://mybinder.org/v2/gh/lanl/tinerator/master). It may take a few minutes for the container to initialize.

#### Docker Container

The easiest way to get started with TINerator is through [Docker](https://hub.docker.com/r/ees16/tinerator):

    $ docker pull ees16/tinerator:latest
    $ docker run -it \
        -v $(pwd):/docker_user/work \
        -p 8899:8899 \
        -p 8050:8050 \
        ees16/tinerator:latest

After the container launches, navigate to `http://127.0.0.1:8899/lab` in a web browser to begin using TINerator within a Jupyter Lab instance. Example notebooks and HTML documentation are available within Jupyter.

### Building TINerator

To build TINerator from source, refer to the [documentation](https://lanl.github.io/tinerator/installation.html).

#### Linux

```sh
$ apt-get install --no-install-recommends -y \
  g++ \
  gfortran \
  make \
  cmake \
  libgl1-mesa-glx \
  \
  # NOTE: gdal on conda forge is *strongly* preferred
  # to the apt version.
  libdal-dev
```

#### macOS

```sh
$ brew install \
    gdal \
    gcc \
    gfortran
```

Note that the module has not been tested on Apple Silicon yet.

### Contributing

Pull requests of all manner are welcomed! Please read the [contributing guidelines](CONTRIBUTING.md) before submitting a pull request.



