Accordingly, there is a need to provide an economical and effective means to locally produce nitrate ions and bring nitrate ions into contact with an aqueous system in order to prevent the formation of hydrogen sulfide in aqueous systems and remove any existing hydrogen sulfide in the system.