Hello @elapins,
Please see this jupyter notebook for all the details with respect to spatial transformation.