outputting as list of coordinate.

Feedback
Anonymous
2012-07-25
2016-04-28
  • Anonymous - 2012-07-25

    Is it possible with stellarium to out put the display as a list of X,Y
    coordinates along with brightness and apparent diamatier, rather than
    rendering to the screen?

    Is there any examples of the API's in code.

    cheers

     
  • Bogdan Marinov

    Bogdan Marinov - 2012-07-26

    No.

    Stellarium's main point is displaying pretty pictures. There are other free
    astronomy programs that may be able to do what you need.

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2016-04-24

    Hi Bogdan, could you recommend some of this programs able to output the coordinate of an object in time? Thanks

     
  • qam1

    qam1 - 2016-04-28

    Stellarium can do this now. Using scripts

    Copy the following highlighted text into notepad and save as a .ssc file in the script folder

    // Author: Qam1
    // Name: Mars to Log file 
    // License: Public Domain
    // Description: Writes Mars Info to Log File  
    // Version: 1.0
    // 
    // Made on Stellarium 14.3
    
    core.wait(0.1)
    
    pi = 3.14159265358979323846264338327950288419716939937510;
    deg = 180/pi;
    
    dd = core.getDate();
    
    PData = core.getObjectInfo("Mars");
    ra= PData["ra"];
    dec = PData["dec"];
    mag = PData["vmag"];
    size = PData["size"];
    
    size = size * deg
    if (ra<0)
    {
    ra = ra + 360
    }
    
    core.debug("Mars on " + dd);
    core.debug("RA = " + ra);
    core.debug("Dec = " + dec);
    core.debug("Mag = " + mag);
    core.debug("Size = " + size);
    core.debug("");
    
    txt1 = LabelMgr.labelScreen("Written to Log!!!", 400, 20, false, 75, "#FF0000");
    LabelMgr.setLabelShow(txt1, true);
    
    core.wait(1);
    
    LabelMgr.deleteAllLabels();
    

    '
    Then open the last run log file with notepad in Stellarium's folder in the start menu

    More things with core.getObjectInfo

    http://www.stellarium.org/doc/head/classStelMainScriptAPI.html#ad831d70086a1ad8f64d8377672fd143c

     
    Last edit: qam1 2016-04-28
  • gzotti

    gzotti - 2016-04-28

    You can even use core.output() and read output.txt only. I just don't know why a 4-year old thread is excavated instead of googling a bit.

     


Anonymous

Cancel  Add attachments