#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Sat Dec  3 14:11:03 2016

@author: Neo
"""

import numpy as np
from coord_trans import Ga2Eq_rect

XR = np.array([0, -0.38, 0])
XD = np.array([0, -0.29, 0])

print('the rigid part:')
print(Ga2Eq_rect(XR))
##[-0.18776158  0.16903526 -0.28385325]
print('the differential part:')
print(Ga2Eq_rect(XD))
##[-0.14329173  0.12900059 -0.21662485]