We recently moved to Palo Alto, we live 1200 ft away from rail tracks. On most nights, we wake up because of extremely loud train horns. We initially thought it was caltrain, however it looks like caltrain fixed the issue way back in 2009. So the noise seems to be coming from freight trains which run between 12 AM and 5 AM. After a bit of research on the internet, it looks like Union Pacific already rejected an appeal submitted by the residents of San Mateo, so appealing to Union Pacific seems like a lost cause. Appeals for "quiet zone" seems to be lost under the noise of high speed rail.
Any survival strategies is much appreciated, I would hate to move out of this area.