I'm thinking to use the grinder.
make a plug that'll fit in the end of the pipe and fit 2 bearings to a shaft.
fix that shaft on a bar that's pivoted on the ground.
and use a thumbscrew to adjust the bar to a set distance
Then rotate the pipe to grind the outside of the flange.