×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Minor Planet Center

  • Posts: 10
  • Thank you received: 0
Hi I am a new member, I would like to ask if in Kstars it is possible to download the catalogs of the Minor planet center.
Thank you
3 years 6 months ago #61005

Please Log in or Create an account to join the conversation.

  • Posts: 437
  • Thank you received: 31

Replied by Paul on topic Minor Planet Center

Spider65,

The comet and minor planet details are downloaded using the Data / Updates menu and can be configured under Setting / Configure Kstars / Solar System.

Paul
3 years 6 months ago #61068

Please Log in or Create an account to join the conversation.

  • Posts: 111
  • Thank you received: 41

Replied by Thomas Stibor on topic Minor Planet Center

Hi there,

according to the source code
  • cometscomponent.cpp
  • asteroidscomponent.cpp
void CometsComponent::updateDataFile(bool isAutoUpdate)
{
    delete (downloadJob);
    downloadJob = new FileDownloader();
 
    if (isAutoUpdate == false)
        downloadJob->setProgressDialogEnabled(true, i18n("Comets Update"), i18n("Downloading comets updates..."));
    downloadJob->registerDataVerification([&](const QByteArray & data)
    {
        return data.startsWith("full_name");
    });
 
    connect(downloadJob, SIGNAL(downloaded()), this, SLOT(downloadReady()));
 
    // For auto-update, we ignore errors
    if (isAutoUpdate == false)
        connect(downloadJob, SIGNAL(error(QString)), this, SLOT(downloadError(QString)));
 
    QUrl url             = QUrl("https://ssd.jpl.nasa.gov/sbdb_query.cgi");
    QByteArray post_data = KSUtils::getJPLQueryString("com", "AcBdBiBgBjBlBkBqBbAgAkAlApAqArAsBsBtChAmAn",
    QVector<KSUtils::JPLFilter> { { "Af", "!=", "D" } });
 
    downloadJob->post(url, post_data);
}

The data is not download from MPC but from
JPL Small-Body Database Search Engine

Cheers
Thomas
3 years 6 months ago #61074

Please Log in or Create an account to join the conversation.

  • Posts: 10
  • Thank you received: 0
Thanks!!!
3 years 6 months ago #61075

Please Log in or Create an account to join the conversation.

Time to create page: 0.350 seconds