Skip to main content

Tar + XDMF mesh format

Project description

tmf

tar + XDMF.

gh-actions Code style: black PyPi Version GitHub stars PyPi downloads

The XDMF data and mesh format is arguably one of the best mesh format out there in terms of file size, I/O speed, and ecosystem. There is one annoyance though that has bugged me over the years: When using the Binary or HDF data type (which you should), an XDMF archive consists of multiple files. When copying things over, it is easy to miss or accidentally replace one of those.

Along comes TMF, tar + XDMF. It's just like XDMF, except that it puts all files in on tarball, the tmf file. It also restricts itself to HDF data (which most XDMF files use anyway).

This repository contains a Python package that makes working with tmf files easy. Install with

pip install tmf

and use the command-line tools

tmf-convert <input-mesh-file> <output-mesh-file>   # convert to/from tmf into other formats
tmf-info <input-tmf>                               # print some info about the file
tmf-compress <input-tmf>                           # compress the tmf file
tmf-uncompress <input-tmf>                         # uncompress the tmf file

Note that compressed tmf files (which is the default) tend to be much smaller, but require a bit longer to read. Depending on how often you need to read a file, you might want to tmf-uncompress it first.

License

The code in this repository is published under the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tmf, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size tmf-0.0.1-py3-none-any.whl (8.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size tmf-0.0.1.tar.gz (5.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page