private void emitHdf5(Vehicle vehicle) throws NullPointerException, IOException, HDF5Exception {
		
		// create the output HDF5 file for this vehicle
		int fid = -1, vingrpid = -1, status = -1;
		// overwrite if it exists
		fid = H5.H5Fcreate(outputDataPath + vehicle.vin + ".hdf5", HDF5Constants.H5F_ACC_TRUNC,
				HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT);

		// create the VIN number group
		vingrpid = H5.H5Gcreate(fid, "/" + vehicle.vin, HDF5Constants.H5P_DEFAULT,
				HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT);

		// add vin group members
//	       	grp['manufacturer'] = fields[1]                     # populate the vehicle group
//	    		   grp['modelYear'] = int(fields[2])
//	    	        grp['vehicleType'] = fields[3]
//	    	        grp['oilChangeDistance'] = float(fields[4])
//	    	        grp['odometer'] = float(fields[5])
//	    	        grp['comments'] = fields[6]
		
		// the rank of a scalar dataspace is always zero
		int RANK = 0;
		long[] DIMENSIONS = { 1 };
		int did = -1;

		// Create the data space for the int dataset.
		 int sid = H5.H5Screate_simple(RANK, DIMENSIONS, null);

		// Create the int array dataset.
		if ((fid >= 0) && (sid >= 0))
			 did = H5.H5Dcreate(fid, "intDataset",
					HDF5Constants.H5T_INTEGER, sid,
					HDF5Constants.H5P_DEFAULT);
		else
			out.println("> writeIntArrayToDataset FAILED while creating the int array dataset. fid="
					+ fid + ", sid=" + sid);

		// Write 3x3 int array to the dataset using default transfer
		// properties.
		int wid = H5.H5Dwrite(did, HDF5Constants.H5T_NATIVE_INT,
				HDF5Constants.H5S_ALL, HDF5Constants.H5S_ALL,
				HDF5Constants.H5P_DEFAULT, 123);
		if (wid < 0)
			out.println("> writeIntArrayToDataset write FAILED, wid="
					+ wid);

		// End access to the dataset and release resources used by it.
		if (did >= 0)
			H5.H5Dclose(did);
		// Terminate access to the data space.
		if (sid >= 0)
			H5.H5Sclose(sid);
		
		
		// close the VIN group
		if (vingrpid >= 0)
			H5.H5Gclose(vingrpid);

		// close the file
		status = H5.H5Fclose(fid);
		if (!(fid >= 0 && status >= 0))
			throw new IOException("Could not close the HDF5 file properly.");
	}