Functions | |
def | read_ascii |
def | read_ascii_0 |
def | write_ascii_0 |
def readcube3D.module_qslsquasher_qslsquasher_cube3D.read_ascii | ( | filepath | ) |
Read a Qsl Squasher 3Dcube ascii format file. Returns a Cube3D() object.
def readcube3D.module_qslsquasher_qslsquasher_cube3D.read_ascii_0 | ( | filepath | ) |
Qsl Squasher files are organized like this: * 3 coordinates files : [x|y|z]s0 + name + .dat * 3 b files : b[x|y|z]0 + name + .dat To read these 6 files, just need to give the path of one of the 6 files. Will extract the name part. Then it reads every 6 files with the following format: [x|y|z]s0 + name + .dat No header. Data. [x|y|z][i] coded as c++ lf type b[x|y|z]0 + name + .dat No header. Data. In C-ordered array. b[x|y|z][i,j,k] coded as c++ lf type
def readcube3D.module_qslsquasher_qslsquasher_cube3D.write_ascii_0 | ( | cube3D, | |
dirname, | |||
name | |||
) |
Qsl Squasher files are organized like this: * 3 coordinates files : [x|y|z]s0 + name + .dat * 3 b files : b[x|y|z]0 + name + .dat To write these 6 files, just need to give the path of the folder and the name part. Then it writes every 6 files with the following format: [x|y|z]s0 + name + .dat No header. Data. [x|y|z][i] coded as c++ lf type b[x|y|z]0 + name + .dat No header. Data. In C-ordered array. b[x|y|z][i,j,k] coded as c++ lf type