So I finally got my head around how to create a local coordinate system !!!
However for some reason it doesn't always work after messing around with the affine paramaters then re-applying the coordinate system to the file sometimes it works and everything…