Metadata-Version: 2.1
Name: medpro
Version: 1.0.11
Summary: Medcoupling based post processing tools
Home-page: https://github.com/ldallolio/medpro
Author: Luca Dall Olio
Author-email: luca.dallolio@gmail.com
License: MIT
Keywords: medpro,medcoupling
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: medcoupling

MEDPro (MED post PROcessing)
============================

[![image](https://codecov.io/gh/ldallolio/medpro/branch/main/graph/badge.svg)](https://codecov.io/gh/ldallolio/medpro)

Medcoupling based post processing tools

This project has been created to simplify the manipulation of
[MED](https://docs.salome-platform.org/latest/dev/MEDCoupling/developer/med-file.html)
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")
