Skip to main content

Medcoupling based post processing tools

Project description

https://img.shields.io/travis/ldallolio/medpro.svg https://dl.circleci.com/status-badge/img/circleci/WNUnhGtn8hkFFgdqyBFUNy/K9xJ7WXEW7An7moFDpY1AX/tree/main.svg?style=svg https://codecov.io/gh/ldallolio/medpro/branch/main/graph/badge.svg

Medcoupling based post processing tools

This project has been created to simplify the manipulation of MED files.

Code examples::

import medpro

# Read a med file, extract mesh, field, group information fp = medpro.MEDFilePost(“./tests/examples/box_with_depl.rmed”) mesh = fp.meshes_by_name[“mesh”] g1 = mesh.get_group_by_name(“G1”) depl_evol = fp.fieldevols_by_name[“reslin__DEPL”]

# Extract a subpart of a field based on a group depl_g1 = depl_evol.extract_group(“G1”)

# Create a new MED file, write it back fpnew = medpro.MEDFilePost() fpnew.add_fieldevol(depl_g1) fpnew.write(“/tmp/output.rmed”)

Project details


Download files

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

Source Distribution

medpro-1.0.5.tar.gz (22.4 kB view hashes)

Uploaded Source

Built Distribution

medpro-1.0.5-py2.py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page