nws_tools.
csv2dict
Reads 3D nodal coordinates of from a csv file into a Python dictionary
csvfile : str
File-name of (or full path to) the csv file holding nodal coordinates. The format of this file HAS to be x, y, z x, y, z x, y, z . . for each node. Thus #rows = #nodes.
File-name of (or full path to) the csv file holding nodal coordinates. The format of this file HAS to be
x, y, z x, y, z x, y, z . .
x, y, z
.
for each node. Thus #rows = #nodes.
mydict : dict
Nodal coordinates as read from the input csv file. Format is {0: (x, y, z), {1: (x, y, z), {2: (x, y, z), . . Thus the dictionary has #nodes keys.
Nodal coordinates as read from the input csv file. Format is
{0: (x, y, z), {1: (x, y, z), {2: (x, y, z), . .
{0: (x, y, z),
{1: (x, y, z),
{2: (x, y, z),
. .
Thus the dictionary has #nodes keys.
See also
None
Notes