General view of the rains that are affecting Mexico City, Mexico, 09 August 2016, since a few days. EPA / Alex Cruz

Tropical Storm Javier was downgraded to a tropical depression as it weakened in the Pacific Ocean off Mexico's Baja California Sur state, the Mexican National Weather Service, or SMN, said Tuesday.

Javier was located 85 kilometers (53 miles) northwest of Cabo San Lucas, a resort city in Baja California Sur, at 7:00 a.m., the SMN said.

The tropical depression is moving northwest at nine kph (about six mph), with maximum sustained winds of 55 kph (34 mph) and gusts of up to 75 kph (46 mph).

Javier could regain strength and become a tropical storm again by Tuesday afternoon, but it is expected to later weaken and dissipate within the next 24 hours, forecasters said.

The storm is expected to affect Baja California Sur, Sonora, Chihuahua, Durango, Sinaloa, Nayarit, Jalisco and Colima states, dumping heavy rains in some areas, the SMN said.

Residents in the affected states should monitor weather bulletins, the weather service said.