Giter VIP home page Giter VIP logo

tatooinemesher's Introduction

TatooineMesher

Python package

Tested versions: 3.7, 3.8, 3.9, 3.10 and 3.11.

Channel mesher and interpolator from 1D cross-sections and constraint lines

Description

Set of 4 command line scripts:

  • densify_cross_sections.py : interpolate initial and intermediate cross-sections
  • mesh_and_interpolate.py: mesh and/or interpolate from a set of cross-sections
  • mesh_mascaret_run.py : visualize Mascaret model geometry and results
  • mesh_crue10_run.py : visualize Crue10 model geometry and results

The command line scripts of TatooineMesher are located in the cli folder.

See wiki pages to learn how to use them.

Pre-requisites and installation

Python 3 with packages listed in requirements.txt. To install them use:

pip install -r requirements.txt

PyTelTools and Crue10_tools are dependencies that can be installed in another directory and linked with the PYTHONPATH environment variable. These packages are used to read/write some specific file formats of Telemac, Mascaret and Crue10 tools.

Reference

TatooineMesher: Anisotropic interpolation from 1D cross-sections and 2D channel mesher, L. Duron, F.-X. Cierco and K. Saad, XXVIth TELEMAC-MASCARET User Conference 2019, Toulouse (France). See paper and presentation.

tatooinemesher's People

Contributors

khasaad avatar lucduron avatar nicogodet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

tatooinemesher's Issues

Support superimposed constraint lines

Superimposed constraint lines are not supported yet.
Therefore meshing a 1D geometry files do not use constraint lines (minor/major/others limits).

Crossing of constraint lines should be tolerated only if the intersection corresponds to a point along a single cross-section or if constraint lines are exactly superimposed between consecutive constraint lines.

Make GDAL dependency optionnal and raise error in `mesh_crue10_run.py` if not install

GDAL can be very painfull to install (especially on windows without conda...).

As mesh_crue10_run.py is the only script that depends on GDAL when a specific argument is provided, I suggest to remove GDAL from requierements.txt and raise an error if args.infile_dem is provided and GDAL is not available.

If this is OK, I can create a PR.

Missing Z values above initial cross sections

Data to reproduce : tatooine.zip

Command :

cli\mesh_and_interpolate.py \
    --infile_constraint_lines constraint_lines.shp \
    --long_step 1 \
    --lat_step 1 \
    --attr_cross_sections sec_id \
    axe_cambo.shp \
    tatooine_input.shp \
    --outfile_nodes interpolate_points.shp \
    --interp_constraint_lines FINITE_DIFF

What's the issue ?

In output file, interpolated point above initial cross sections are poplated with nan values.
image
Which is annoying when rasterized
image

tatooine_input.shp was prepared by PreCourlis

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.