Skip to content
Snippets Groups Projects
Commit 7610973e authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

read 2d table -> labels u,v (bin)

parent 1ce0a683
No related branches found
No related tags found
1 merge request!1982GUI 2d data import now showing u,v (bin) for all files
......@@ -93,12 +93,12 @@ Datafield* Util::RW::read2DTable(std::istream& input_stream)
std::vector<const Scale*> axes;
if (nrows < 2)
axes = {newEquiDivision("axis0", ncols, 0.0, (double)ncols)};
axes = {newEquiDivision("u (bin)", ncols, 0.0, (double)ncols)};
else if (ncols < 2)
axes = {newEquiDivision("axis0", nrows, 0.0, (double)nrows)};
axes = {newEquiDivision("v (bin)", nrows, 0.0, (double)nrows)};
else
axes = {newEquiDivision("axis0", ncols, 0.0, (double)ncols),
newEquiDivision("axis1", nrows, 0.0, (double)nrows)};
axes = {newEquiDivision("u (bin)", ncols, 0.0, (double)ncols),
newEquiDivision("v (bin)", nrows, 0.0, (double)nrows)};
return new Datafield(std::move(axes), values);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment