User Tools

Site Tools


howto:change_a_target_s_coordinates

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
howto:change_a_target_s_coordinates [2014/03/07 11:37]
jtello created
howto:change_a_target_s_coordinates [2016/09/28 11:24]
jtello
Line 3: Line 3:
 If you have a target that you want to change the coordinates (either because the first ones was erroneous or because it is an object like a satellite that requires constant changing and you don't know how to give it the orbital parameters for automatic tracking), then you can access the psql database directly. If you have a target that you want to change the coordinates (either because the first ones was erroneous or because it is an object like a satellite that requires constant changing and you don't know how to give it the orbital parameters for automatic tracking), then you can access the psql database directly.
  
-sudo psql stars+    $ sudo psql stars
  
-UPDATE targets +    stars=# ​UPDATE targets 
-    SET tar_ra = 157.246241, ​ tar_dec = 15.760332 +     ​SET tar_ra = 157.246241, ​ tar_dec = 15.760332 
-    WHERE tar_id = 1205;+     ​WHERE tar_id = 1205;
     ​     ​
 (of course changing the coordinates and target_id as necessary). (of course changing the coordinates and target_id as necessary).
 +
 +
 +However it is much easier to do it using JSON using the update_target command:
 +     ​http://​serveraddress/​jsonapipath/​update_target?​id=12345&​ra=124.43&​dec=-23.5
howto/change_a_target_s_coordinates.txt · Last modified: 2016/09/28 00:00 (external edit)