Modern railroads at least listen to the US Weather Service or WeTher Channel. Some hire pirvate weather services. If a section of line is forecast to get flooding conditions, the line is observed, and if too much water, shut down. In case of tropical weather, the are going to be hit is shut down, and if possible movable items such as locomotives get moved.
But I do see something in the picture. The lining of the tunnel does look like metal culverts on droids. So maybe that was the angle the OP was thinking about as he created the post.