The National emergency commission said that it has invested $743,000 or some 373 million colons to protect residents of Nosara from the river of the same name.
Some 5,000 people live in the vicinity of the river, said the Comisión Nacional de Prevención de Riesgos y Atención de Emergencias.
The residents have been flooded out several times, including tropical storm Tomas in 2010. They are quick to note that this has not happened this year.
The river also endangered the local airport. Among the work done on the river was the construction of a 10-kilometer dike that protects the airport and the base of a bridge. The channel of the river has been enlarged. too, to create more capacity when there is heavy rains in the mountains.
In Nicoya inland from Nosara the commission is helping to repair earthquake damage.