added 1,2,3D output in netcdf and vtk