As far as noise goes, the way I see it is the rail yard was there long before the houses were. A rail yard is not a quiet place & there is no way to make it quiet short of shutting it down.
Same with those people who move to farm country and complain about the smell of "country fresh air"