matrixconverters.save_ptv module¶
- class matrixconverters.save_ptv.SavePTV(ds)¶
Bases:
object
- Parameters:
ds (Dataset)
- __init__(ds)¶
- Parameters:
ds (
Dataset
) – the dataset that should be saved
- savePSVMatrix(file_name, ftype='CC', max_width=1000)¶
exports array in PSV-Format
- Parameters:
file_name (
str
) – the filepath of the file to writeftype (
str
) – the file-typemax_width (
int
) – the maximum number of columns for the values written
- savePTVMatrix(file_name, file_type='BK', version=0.11)¶
save array im PTV-Format
- Parameters:
file_name (
str
) – output file_namefile_type (
str
) – Type of PTV-File Formatversion (
float
) – version number
- static write_f4(f, val)¶
write 4-byte float to file
- Parameters:
f (
BinaryIO
) – open binary file-handlerval (
float
) – the value to write
- static write_f8(f, val)¶
write 8-byte double to file
- Parameters:
f (
BinaryIO
) – open binary file-handlerval (
float
) – the value to write
- static write_i2(f, val)¶
write 2-byte integer to file
- Parameters:
f (
BinaryIO
) – open binary file-handlerval (
int
) – the value to write
- static write_i4(f, val)¶
write 4-byte integer to file
- Parameters:
f (
BinaryIO
) – open binary file-handlerval (
int
) – the value to write
- static write_u1(f, val)¶
write 1-byte integer to file
- Parameters:
f (
BinaryIO
) – open binary file-handlerval (
int
) – the value to write
- write_utf16(f, val)¶
write utf16 encoded value to file
- Parameters:
f (
BinaryIO
) – open binary file-handlerval (
DataArray
) – the value to write
- matrixconverters.save_ptv.write_line(f, text, length)¶
write a line of text to the open file and adjust the text to the number of characters given
- Parameters:
f (
BinaryIO
) – an open binary file handlertext (
str
) – the text to writelength (
int
) – the number of characters to pad the text on the left side