nws_tools.csv2dict

nws_tools.csv2dict(csvfile)[source]

Reads 3D nodal coordinates of from a csv file into a Python dictionary

Parameters:

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.

Returns:

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.

See also

None

Notes

None