Medcoupling based post processing tools
Project description
MEDPro (MED post PROcessing)
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
Release history Release notifications | RSS feed
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.10.tar.gz
(25.4 kB
view hashes)
Built Distribution
Close
Hashes for medpro-1.0.10-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | acf683489ee770db87d85d667ebd2dbba3d4e83c6b006dc80f50972ebe2489c8 |
|
MD5 | cda5e7d45a20e0a7a035d01bd1f42e9a |
|
BLAKE2b-256 | 51a2361d67a26a9e05fad47ccaee12f5250727177618d614abbf6a04ad3e77a3 |