DumpArray

Writes the contents of a Array variable from either the event or global block to a file on disk. The output will be a text file containing the values of the array separated by newlines. Multidimensional arrays will be output in their c-style order. Optionally, also writes the number of dimensions and the size of each dimension at the top of the file.

Parameters
NameTypeDescription
Filename string Name of destination file for array.
Block string Name of block within event or global that contains the desired variable.
Variable string Name of the array variable to dump.
WriteDims keyword If present, also write the dimension information at the top of the file. This will be an integer for the number of dimensions, followed by that number of integers for the sizes of each dimension.
Global keyword If present, output an array from the global rather than event block. In other words, process the data during the global() rather than process() stage.

Inputs
NameTypeDescription
Block/Variable array Variable to output to file.

Outputs
NameTypeDescription