Binary/Serialized File I/O
Madagascar SSRSF Reader
- class PVGeo.readers.binaries.MadagascarReader(**kwargs)[source]
Bases:
PackedBinariesReader
This reads in float or double data that is packed into a Madagascar binary file format with a leader header. The reader ignores all of the ascii header details by searching for the sequence of three special characters: EOL EOL EOT and it will treat the following binary packed data as one long array and make a
vtkTable
with one column of that data. The reader uses defaults to import as floats with native endianness. Use the Table to Uniform Grid or the Reshape Table filters to give more meaning to the data. We will later implement the ability to create a gridded volume from the header info. This reader is a quick fix for Samir. We chose to use avtkTable
object as the output of this reader because it gives us more flexibility in the filters we can apply to this data down the pipeline and keeps thing simple when using filters in this repository. Details Here.- description = 'PVGeo: Madagascar Single Stream RSF Files'
Packed Binaries Reader
- class PVGeo.readers.binaries.PackedBinariesReader(**kwargs)[source]
Bases:
ReaderBase
This reads in float or double data that is packed into a binary file format. It will treat the data as one long array and make a
vtkTable
with one column of that data. The reader uses defaults to import as floats with native endianness. Use the Table to Uniform Grid or the Reshape Table filters to give more meaning to the data. We chose to use avtkTable
object as the output of this reader because it gives us more flexibility in the filters we can apply to this data down the pipeline and keeps things simple when using filters in this repository.- RequestData(request, inInfo, outInfo)[source]
Used by pipeline to request data for current timestep
- description = 'PVGeo: Packed Binaries Reader'
- extensions = 'H@ bin rsf rsf@ HH npz'