Menu ▾ ▴

Please help me how to write this place(map.dec) correctly. Thank you.

Feedback
jkl
2020-11-30
2020-12-07
  • jkl

    jkl - 2020-11-30

    map=core.getSelectedObjectInfo();
    core.output(core.mapToString(map.dec));

    this command wrong, (map.dec),help me.thanks.

     
  • Alexander V. Wolf

    map=core.getSelectedObjectInfo();
    core.output(map["dec"]);

     
    👍
    1
  • jkl

    jkl - 2020-12-03

    var mna =new Array(
    "1970:11:08T12:01:37",
    "1970:11:09T11:58:33",
    "1970:11:10T11:55:29"

    );

    core.selectObjectByName("Jupiter", false);

    for (i=0; i<=mna.length; i++)
    {

    core.setDate(mna[i]);

    map=core.getSelectedObjectInfo();

    core.output(map["elong"]);
    }
    core.saveOutputAs("mlk.txt");

    Why does this script only output the ecliptic longitude of the current date instead of the date in the array?

     
  • Alexander V. Wolf

    Please add core.wait(0.1); after core.output(map["elong"]);

     
    👍
    1
  • jkl

    jkl - 2020-12-03

    thank you, please ,How to output the results to excel?

     
  • gzotti

    gzotti - 2020-12-03

    Format output as CSV and import that to Excel.

     
  • jkl

    jkl - 2020-12-07

    core.STimeSystemDefault;
    core.selectObjectByName("Jupiter", false);

    map=core.getSelectedObjectInfo();

    var transittime = map.transit;

    core.setDate(transittime);

    thanks ,How to convert this time variable("transittime") to UTC format?