Read/write ascii
Take test field, choose 1D, trivial, regular and a small number of nodes, ie. 6. Choose Time field. This generates 3 time steps. Write VNF as Ascii.
VNF file is:
#VisNow regular field field "Test_regular_field", dims 6, coords user extent x -8.7304e-01 1.1000e+00 user extent y -9.5892e-01 9.3800e-01 user extent z 0.0000e+00 6.2500e+00 component Time_field float, min 1.34243, max 3.20792, phys_min 1.34243, phys_max 3.20792 file "test2fieldTime.txt" ascii col timestep 0.0 skip 1 coords, Time_field end timestep 1.0 skip 1 Time_field end timestep 2.0 skip 1 Time_field end
TXT file is coordinates Time_field 1.1000 0.0000 6.2500 1.3424 -0.8473 0.5985 2.7778 1.7337 0.2262 -0.9589 0.6944 2.4539 0.4458 0.9380 0.0000 3.2079 -0.8730 -0.5440 0.6944 2.4539 0.9300 -0.0663 2.7778 1.7337
Time_field 0.6160 0.7751 1.0452 1.6040 1.4087 0.9586
Time_field 0.6667 1.0588 1.6364 2.0000 1.6364 1.0588
If you read this with VisNow field reader there is an error. Also a change of VNF file - instead of skip 1 choose skip 2 in the second and third time step, does not help.
12:37:53,988 field reader[2] ERROR main.ModuleElement.killFromModule 476: An error occured in function: onLocalActive java.lang.NullPointerException at pl.edu.icm.visnow.lib.basic.readers.ReadVisNowField.ReadASCIIColumnSectionData.readSectionData(ReadASCIIColumnSectionData.java:65) at pl.edu.icm.visnow.lib.basic.readers.ReadVisNowField.FileSectionReader.readSection(FileSectionReader.java:172) at pl.edu.icm.visnow.lib.basic.readers.ReadVisNowField.ReadFile.run(ReadFile.java:231) at pl.edu.icm.visnow.lib.basic.readers.ReadVisNowField.ReadVisNowField.onActive(ReadVisNowField.java:195) at pl.edu.icm.visnow.engine.core.ModuleCore.onLocalActive(ModuleCore.java:586) at pl.edu.icm.visnow.engine.main.ModuleElement.setActive(ModuleElement.java:327) at pl.edu.icm.visnow.engine.main.ModuleElement.onActionMessage(ModuleElement.java:281) at pl.edu.icm.visnow.engine.element.Element.nextMessage(Element.java:213) at pl.edu.icm.visnow.engine.element.Element.run(Element.java:175) at java.lang.Thread.run(Thread.java:748) 12:37:53,993 field reader[2] WARN main.ModuleElement.setActive 331: java.lang.NullPointerException