tecio.TecplotDatReader#

class tecio.TecplotDatReader(path)#

Bases: TecplotReader

Reader for Tecplot ASCII DAT files.

The entire file is parsed into memory at construction. Holds no open file handle between accesses, close() is a no-op (inherited from the base class default), same as PLT.

Parameters:

path – Path to the .dat file.

Raises:

Attributes

auxdata

Return the dataset-level auxiliary data.

file_type

Return FileType enum for this file.

num_auxdata_items

Number of dataset-level auxiliary data items.

num_vars

Return the number of variables in the dataset.

num_zones

Return the number of zones in the file.

path

Source file path.

title

Return the dataset title string.

var_auxdata

Per-variable auxiliary data, 0-based.

variables

Return the ordered list of variable name strings.

zones

Zones in this file, by index or slice.

Methods

close()

Release any open resources.

get_var_auxdata(var_index)

Return auxiliary data for variable var_index.

get_zone_auxdata(zone_index)

Return auxiliary data for zone zone_index.

property auxdata#

Return the dataset-level auxiliary data.

property file_type#

Return FileType enum for this file.

property num_vars#

Return the number of variables in the dataset.

property num_zones#

Return the number of zones in the file.

property path#

Source file path.

property title#

Return the dataset title string.

property variables#

Return the ordered list of variable name strings.

property zones#

Zones in this file, by index or slice.