yt.frontends.amrvac.datfile_utils module¶
- yt.frontends.amrvac.datfile_utils.get_header(istream)[source]¶
Read header from an MPI-AMRVAC 2.0 snapshot. istream’ should be a file opened in binary mode.
- yt.frontends.amrvac.datfile_utils.get_single_block_data(istream, byte_offset, block_shape)[source]¶
retrieve a specific block (all fields) from a datfile