SDFReader.jl

Read SDF files created by EPOCH
Author SebastianM-C
Popularity
2 Stars
Updated Last
1 Year Ago
Started In
December 2019

SDFReader

Stable Dev Build Status https://www.tidyverse.org/lifecycle/#experimental

EPOCH is a code for plasma physics simulations using the Particle-in-Cell method. The simulation results are written is .sdf binary files. Several readers for this files are available at https://cfsa-pmw.warwick.ac.uk/SDF. This package intends to be another reader for the .sdf file type providing low level acces to the data by following the SDF file format documentation. For a more user firendly approach, please use SDFResults.

Quick start

Install the package using

]add SDFReader

The metadata in the .sdf files can be accessed with the file_summary function

blocks = file_summary(filename)

This will return a dictionary that can be used to access the block headers corrsoponding to the data. To read the data use

ex = open(file) do f
    read(f, blocks[:ex])
end

For more information regarding the information contained in the .sdf files, please consult the following

Used By Packages