Mike Rosseel | 1 Nov 11:59
Picon

Re: New comets file for Kstars -- needs checking but 17P/Holmes looks good

Hi all,

If we weren't into automation, we wouldn't be using a PC, so I suggest automating the creation of the 'get new stuff' comet file.
If someone can provide me with a script I can add it to the cron jobs of my server.

PS: Only obstacle will be the login/password for upload, but once the script is there I'm sure we'll find a solution.

regards,
Mike

On 10/31/07, Jason Harris <kstars <at> 30doradus.org> wrote:
Hi David,

Thanks a lot for your contribution.  I'm sorry your message took 4 days
to get posted, but we actually have an updated comets.dat file now,
which you can get with the Get New Stuff tool (Ctrl+D).

Your comets.dat file looks good, but in case you submit another update
in the future, note that I've updated the README.ephemerides file with
more comets that need to be removed from the list.  Any comet with a
"D/" prefix has "disappeared", so should not be in the list.  Also,
there are a number of comets with large, negative MJD dates and
eccentricities of 1.0 (or > 0.99).  These are historical comets that
were on one-pass parabolic orbits through the inner slar system, and are
never coming back.  These should also be removed from the list.

Thanks, and again, I apologize that I didn't see your message until today.

Jason


David Craig wrote:
> Greetings:
>
> I think I have properly edited a new comets.dat file for kstars, using the
> instructions at:
> http://websvn.kde.org/trunk/KDE/kdeedu/kstars/README.ephemerides?revision=623819&view=markup
>
> I noticed that in the most recent kstars comet didn't put 17P/Holmes in the
> right place (now in outburst!), so I got the JPL comets file that was
> updated on 2007-Oct-27 02:10 -0700.
>
> I found that kstars would hang on reading this file after the header lines
> were removed, and the new version from JPL was 3 spaces wider in the first
> column,
> so I used a regular expression in Geany to remove the 3 spaces.
>
> I hope this is useful.  Someone more experienced than me in kstars should
> check the locations of some more comets to see if it is really OK.
>
> Thanks,
> -dwc
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Kstars-devel mailing list
> Kstars-devel <at> kde.org
> https://mail.kde.org/mailman/listinfo/kstars-devel

_______________________________________________
Kstars-devel mailing list
Kstars-devel <at> kde.org
https://mail.kde.org/mailman/listinfo/kstars-devel


_______________________________________________
Kstars-devel mailing list
Kstars-devel <at> kde.org
https://mail.kde.org/mailman/listinfo/kstars-devel
Jason Harris | 4 Nov 19:46

Fwd: KDE/kdeedu/kstars/kstars

forgot to CCMAIL...
From: Jason Harris <kstars <at> 30doradus.org>
Subject: KDE/kdeedu/kstars/kstars
Date: 2007-11-04 16:08:31 GMT
SVN commit 732725 by harris:

Linear interpolation for refraction correction.

We use a lookup table to determine the correction due to atmospheric
refraction for an object's apparent altitude as a function of its true
altitude.  Until now, we adopted the correction value from the nearest
altitude position in the lookup table.  This breaks down near the
horizon because the correction changes rapidly with altitude,
resulting in large discontinuous "jumps" as an object's altitude
carries it between positions in the lookup table.

Now, we are using linear inerpolation to ensure that the refraction
correction is a smooth function of the true altitude.

TODO: doing linear interpolation is more costly than a straight table
lookup.  It might make sense to only interpolate near the horizon,
where the corrections are large and changing rapidly with altitude.
The straight-lookup strategy should be fine above some threshhold
altitude.

 M  +16 -5     skymap.cpp  

--- trunk/KDE/kdeedu/kstars/kstars/skymap.cpp #732724:732725
@@ -1370,14 +1370,25 @@
     if ( alt->Degrees() <= -2.000 ) return dms( alt->Degrees() );

     int index = int( ( alt->Degrees() + 2.0 )*2. );  //RefractCorr arrays start at alt=-2.0 degrees.
-    dms result;
+    int index2( index + 1 );

-    if ( findApparent ) {
-        result.setD( alt->Degrees() + RefractCorr1[index] );
-    } else {
-        result.setD( alt->Degrees() + RefractCorr2[index] );
+    //compute dx, normalized distance from nearest position in lookup table
+    double x1 = 0.5*float(index) - 1.75;
+    if ( alt->Degrees()<x1 ) index2 = index - 1;
+    if ( index2 < 0 ) index2 = index + 1;
+    if ( index2 > 183 ) index2 = index - 1;
+    double x2 = 0.5*float(index2) - 1.75;
+    double dx = (alt->Degrees() - x1)/(x2 - x1);
+
+    double y1 = RefractCorr1[index];
+    double y2 = RefractCorr1[index2];
+    if ( !findApparent ) {
+        y1 = RefractCorr2[index];
+        y2 = RefractCorr2[index2];
     }

+    //linear interpolation to find refracted altitude
+    dms result( alt->Degrees() + y2*dx + y1*(1.0-dx) );
     return result;
 }

_______________________________________________
Kstars-devel mailing list
Kstars-devel <at> kde.org
https://mail.kde.org/mailman/listinfo/kstars-devel
Jason Harris | 4 Nov 22:51

KDE/kdeedu/kstars/kstars

SVN commit 732841 by harris:

Display apparent altitude, not true altitude in statusbar and details
dialog.

Also, added some debug code: when you press "Q", it dumps a series of
angle values, followed by their value after refraction correction,
followed by the value after the inverse correction.  The values in
columns 1 and 3 are not quite the same; they differ by up to a few
arcseconds.

TODO: SkyObject::riseSetTime() does not take refraction into account,
so if you right-click on an object that is just above the south
horizon, the popup menu may indicate that it never rises!

CCMAIL: kstars-devel <at> kde.org

 M  +5 -1      detaildialog.cpp  
 M  +25 -9     skymapevents.cpp  

--- trunk/KDE/kdeedu/kstars/kstars/detaildialog.cpp #732840:732841
@@ -45,6 +45,7 @@
 #include "ksplanetbase.h"
 #include "ksmoon.h"
 #include "thumbnailpicker.h"
+#include "Options.h"

 #include "indielement.h"
 #include "indiproperty.h"
@@ -270,7 +271,10 @@
     Pos->RA->setText( selectedObject->ra()->toHMSString() );
     Pos->Dec->setText( selectedObject->dec()->toDMSString() );
     Pos->Az->setText( selectedObject->az()->toDMSString() );
-    Pos->Alt->setText( selectedObject->alt()->toDMSString() );
+    dms a( selectedObject->alt()->Degrees() );
+    if ( Options::useAltAz() && Options::useRefraction() )
+        a = ksw->map()->refract( selectedObject->alt(), true ); //true: compute apparent alt from true alt
+    Pos->Alt->setText( a.toDMSString() );

     //Hour Angle can be negative, but dms HMS expressions cannot.
     //Here's a kludgy workaround:
--- trunk/KDE/kdeedu/kstars/kstars/skymapevents.cpp #732840:732841
@@ -317,14 +317,16 @@
         }
         break;

-        //DEBUG_KIO_JOB
-        // *** Testing KIO::Job stuff
+    //DEBUG_REFRACT
     case Qt::Key_Q:
         {
-            KUrl u( "http://www.30doradus.org/kstars/kstars-4.x.png" );
-            KIO::StoredTransferJob *j = KIO::storedGet( u, KIO::NoReload, KIO::HideProgressInfo );
-            j->setUiDelegate(0);
-            connect( j, SIGNAL( result(KJob*) ), SLOT( slotJobResult(KJob*) ) );
+            for ( double alt=-0.5; alt<30.5; alt+=1.0 ) {
+                dms a( alt );
+                dms b( refract( &a, true ) ); //find apparent alt from true alt
+                dms c( refract( &b, false ) );
+
+                kDebug() << a.toDMSString() << b.toDMSString() << c.toDMSString() << endl;
+            }
             break;
         }

@@ -570,14 +572,18 @@

         if ( ks ) {
             QString sX, sY, s;
-            sX = mousePoint()->az()->toDMSString(true);  //true = force +/- symbol
-            sY = mousePoint()->alt()->toDMSString(true); //true = force +/- symbol
+            sX = mousePoint()->az()->toDMSString(true);  //true: force +/- symbol

+            dms a( mousePoint()->alt()->Degrees() );
+            if ( Options::useAltAz() && Options::useRefraction() )
+                a = refract( mousePoint()->alt(), true ); //true: compute apparent alt from true alt
+            sY = a.toDMSString(true); //true: force +/- symbol
+
             s = sX + ",  " + sY;
             ks->statusBar()->changeItem( s, 1 );

             sX = mousePoint()->ra()->toHMSString();
-            sY = mousePoint()->dec()->toDMSString(true); //true = force +/- symbol
+            sY = mousePoint()->dec()->toDMSString(true); //true: force +/- symbol
             s = sX + ",  " + sY;
             ks->statusBar()->changeItem( s, 2 );
         }
@@ -679,6 +685,16 @@
         setClickedPoint( mousePoint() );
         clickedPoint()->EquatorialToHorizontal( data->LST, data->geo()->lat() );

+        //DEBUG
+        QPointF p = toScreen( clickedPoint() ); 
+        double dx2 = (width()/2.0 - p.x())/Options::zoomFactor();
+        double dy2 = (height()/2.0 - p.y())/Options::zoomFactor();
+        SkyPoint sp = fromScreen( dx2, dy2, data->LST, data->geo()->lat() );
+        kDebug() << "SP1: " << clickedPoint()->az()->toDMSString() 
+                << clickedPoint()->alt()->toDMSString() << endl;
+        kDebug() << "SP2: " << sp.az()->toDMSString() 
+                << sp.alt()->toDMSString() << endl;
+
         //Find object nearest to clickedPoint()
         double maxrad = 1000.0/Options::zoomFactor();
         setClickedObject( data->skyComposite()->objectNearest( clickedPoint(), maxrad ) );

Jason Harris | 7 Nov 19:40

www/sites/edu/kstars/downloads

SVN commit 733961 by harris:

Updating GNS files for inline images drawn directly on the sky map, and 
for images shown in the details window.  There are 40 new objects in 
each list, contributed by Glenn Becker.  Thanks Glenn!  I'm really sorry 
it took so long for me to add these.

CCMAIL: kstars-devel <at> kde.org

 M  +11 -11    knewstuff.xml  
 D             messier_images-1.0.tar.bz2  
 D             messier_images-1.1.tar.bz2  
 AM            sky_images-1.0.tar.bz2  
 AM            sky_images-1.1.tar.bz2  
 AM            sky_images-1.2.tar.bz2  
 AM            thumbnails-1.1.tar.gz  

--- trunk/www/sites/edu/kstars/downloads/knewstuff.xml #733960:733961
@@ -30,30 +30,30 @@
     <downloads>0</downloads>
   </stuff>
   <stuff>
-    <name>Messier catalog thumbnail images</name>
+    <name>Inline thumbnail images</name>
     <type>kstars/data</type>
-    <author email="mikelima <at> cirulla.net">Luciano Montanaro</author>
+    <author email="kstars-devel <at> kde.org">Luciano Montanaro, Glenn Becker</author>
     <licence>Free for non-commercial use</licence>
-    <summary lang="en">Images of Messier objects drawn directly on the map.</summary>
-    <version>1.1</version>
+    <summary lang="en">Images of objects drawn directly on the map.</summary>
+    <version>1.2</version>
     <release>1</release>
-    <releasedate>2006-12-08</releasedate>
+    <releasedate>2007-11-07</releasedate>
     <preview lang="en"></preview>
-    <payload lang="en">http://edu.kde.org/kstars/downloads/messier_images-1.1.tar.bz2</payload>
+    <payload lang="en">http://edu.kde.org/kstars/downloads/sky_images_1.2.tar.bz2</payload>
     <rating>5</rating>
     <downloads>0</downloads>
   </stuff>
   <stuff>
-    <name>Thumbnail images for details window</name>
+    <name>Images displayed in the details window</name>
     <type>kstars/data</type>
-    <author email="jharris <at> 30doradus.org">Jason Harris</author>
+    <author email="kstars-devel <at> kde.org">Jason Harris, Glenn Becker</author>
     <licence>Free for non-commercial use</licence>
     <summary lang="en">Images of objects shown in the Details window.</summary>
-    <version>1.0</version>
+    <version>1.1</version>
     <release>1</release>
-    <releasedate>2004-08-06</releasedate>
+    <releasedate>2007-11-07</releasedate>
     <preview lang="en"></preview>
-    <payload lang="en">http://edu.kde.org/kstars/downloads/thumbnails-1.0.tar.gz</payload>
+    <payload lang="en">http://edu.kde.org/kstars/downloads/thumbnails-1.1.tar.gz</payload>
     <rating>5</rating>
     <downloads>0</downloads>
   </stuff>
** trunk/www/sites/edu/kstars/downloads/sky_images-1.0.tar.bz2 #property svn:mime-type
   + application/octet-stream
** trunk/www/sites/edu/kstars/downloads/sky_images-1.1.tar.bz2 #property svn:mime-type
   + application/octet-stream
** trunk/www/sites/edu/kstars/downloads/sky_images-1.2.tar.bz2 #property svn:mime-type
   + application/octet-stream
** trunk/www/sites/edu/kstars/downloads/thumbnails-1.1.tar.gz #property svn:mime-type
   + application/octet-stream

Jason Harris | 11 Nov 17:14

KDE/kdeedu/kstars/kstars

SVN commit 735399 by harris:

Modifications in preparation of removing ExtDate and friends.
KStarsDateTime now depends on the new KDateTime class, which covers
dates -4713 to 11,000,000.  So there's a slight regression in the fact
that we used to be able to go back to year -50,000.  This should
eventually be fixed, but for now I'm using the regular KDateTime
range.

I need to remove ExtDate because it's based on Qt-3.x code, which is
necessarily licensed under GPL v2 only.  KDE is migrating to GPL v3,
which is not compatible with GPL v2.

I also fixed the layout of the AltVsTime tool, which involved
splitting the AVTPlotWidget into its own files, so that Qt designer
could properly use it as a promoted widget.

TODO: make sure all time-related functions work properly.  One thing
to watchout for: KDateTime uses UT by default, so some parts of the
code where local time was assumed needed to be changed.  I may have
missed some of these.

In the ObsListWizard, I need to enable the feature that allows the
user to select objects observable from a given location, on a given
date.

CCMAIL: kstars-devel <at> kde.org

 M  +4 -3      CMakeLists.txt  
 M  +1 -1      addcatdialog.cpp  
 M  +2 -2      imageviewer.cpp  
 M  +4 -4      indistd.cpp  
 M  +2 -2      infoboxes.cpp  
 M  +1 -1      kscomet.cpp  
 M  +1 -1      kstars.cpp  
 M  +2 -2      kstarsactions.cpp  
 M  +7 -6      kstarsdata.cpp  
 M  +52 -23    kstarsdatetime.cpp  
 M  +50 -36    kstarsdatetime.h  
 M  +2 -2      kstarsdcop.cpp  
 M  +1 -1      kstarsinit.cpp  
 M  +1 -1      locationdialog.cpp  
 M  +9 -11     main.cpp  
 M  +4 -0      simclock.cpp  
 M  +3 -3      telescopewizardprocess.cpp  
 M  +3 -0      thumbnaileditor.cpp  
 M  +19 -81    timedialog.cpp  
 M  +21 -48    timedialog.h  
 M  +18 -18    timezonerule.cpp  
 M  +35 -168   tools/altvstime.cpp  
 M  +0 -60     tools/altvstime.h  
 M  +165 -176  tools/altvstime.ui  
 M  +28 -16    tools/argsetlocaltime.ui  
 A             tools/avtplotwidget.cpp   [License: GPL (v2+)]
 A             tools/avtplotwidget.h   [License: GPL (v2+)]
 M  +2 -2      tools/eqplotwidget.cpp  
 M  +4 -8      tools/lcgenerator.cpp  
 M  +3 -3      tools/lcgenerator.h  
 M  +115 -41   tools/lcgenerator.ui  
 M  +7 -7      tools/modcalcaltaz.cpp  
 M  +1 -2      tools/modcalcaltaz.h  
 M  +229 -80   tools/modcalcaltaz.ui  
 M  +3 -4      tools/modcalcapcoord.cpp  
 M  +198 -71   tools/modcalcapcoord.ui  
 M  +4 -5      tools/modcalcdaylength.cpp  
 M  +1 -1      tools/modcalcdaylength.h  
 M  +4 -22     tools/modcalcdaylength.ui  
 M  +4 -4      tools/modcalceclipticcoords.cpp  
 M  +1 -1      tools/modcalceclipticcoords.h  
 M  +1 -6      tools/modcalceclipticcoords.ui  
 M  +7 -9      tools/modcalcjd.cpp  
 M  +2 -20     tools/modcalcjd.ui  
 M  +4 -5      tools/modcalcplanets.cpp  
 M  +276 -83   tools/modcalcplanets.ui  
 M  +3 -4      tools/modcalcsidtime.cpp  
 M  +6 -11     tools/modcalcsidtime.ui  
 M  +7 -8      tools/modcalcvizequinox.cpp  
 M  +5 -6      tools/modcalcvlsr.cpp  
 M  +178 -59   tools/modcalcvlsr.ui  
 M  +15 -1     tools/obslistwizard.cpp  
 M  +4 -0      tools/obslistwizard.h  
 M  +306 -133  tools/obslistwizard.ui  
 M  +5 -6      tools/planetviewer.cpp  
 M  +1 -1      tools/planetviewer.h  
 M  +38 -32    tools/planetviewer.ui  
 M  +4 -5      tools/scriptbuilder.cpp  
 M  +1 -1      tools/wutdialog.cpp  
 M  +7 -7      widgets/timebox.cpp  
 M  +6 -7      widgets/timebox.h  
Jason Harris | 11 Nov 17:45

KDE/kdeedu/libkdeedu

SVN commit 735406 by harris:

Remove the ExtDate library.  It can't remain, because much of it is
based on Qt-3.x code, and therefore licensed under GPL v2 only.  KDE
is migrating to GPL v3, which is not compatible with GPL v2.

KStars is already ported to use the new KDateTime classes.  AFAIK, no
one else is using ExtDate (there is some usage in extragear, but those
programs use their own local fork of extdate).

TODO: After removing extdate, there are no more widgets defined in
libkdeedu/widgets.  We could remove this directory, but I've left it
in for now in case we add widgets at some future date.

CCMAIL: kde-edu <at> kde.org
CCMAIL: kstars-devel <at> kde.org

 M  +1 -1      CMakeLists.txt  
 D             extdate (directory)  
 M  +0 -19     widgets/kdeedu.widgets  

--- trunk/KDE/kdeedu/libkdeedu/CMakeLists.txt #735405:735406
@@ -2,5 +2,5 @@

 add_subdirectory(keduvocdocument)
 add_subdirectory(kdeeduui)
-add_subdirectory(extdate)
 add_subdirectory(libscience)
+add_subdirectory(widgets)
--- trunk/KDE/kdeedu/libkdeedu/widgets/kdeedu.widgets #735405:735406
@@ -2,22 +2,3 @@
 PluginName=KDEEduWidgets
 Includes=kcomponentdata.h
 Init=new KComponentData("kdeeduwidgets");
-
-[ExtDateEdit]
-ToolTip=spinbox-based extended date editor (KDE-Edu)
-WhatsThis=Allows the user to specify an extended date
-Group=Date and Time (KDE-Edu)
-ConstructorArgs=(parent)
-IncludeFile=extdatetimeedit.h
-
-[ExtDateTimeEdit]
-ToolTip=spinbox-based extended date/time editor (KDE-Edu)
-WhatsThis=Allows the user to specify an extended date and a time
-Group=Date and Time (KDE-Edu)
-ConstructorArgs=(parent)
-
-[ExtDatePicker]
-ToolTip=calendar-based extended date selector (KDE-Edu)
-WhatsThis=Allows the user to specify an extended date using a calendar
-Group=Date and Time (KDE-Edu)
-ConstructorArgs=(parent)

Jasem Mutlaq | 11 Nov 19:41
Picon
Favicon

Re: KDE/kdeedu/kstars/kstars

> I need to remove ExtDate because it's based on Qt-3.x code, which is
> necessarily licensed under GPL v2 only.  KDE is migrating to GPL v3,
> which is not compatible with GPL v2.

What does it mean for those of us who don't want to move to GPL v3?

Jasem
Jason Harris | 11 Nov 20:13

Re: KDE/kdeedu/kstars/kstars

Hi,

On Sunday 11 November 2007 11:41:21 am Jasem Mutlaq wrote:
> > I need to remove ExtDate because it's based on Qt-3.x code, which is
> > necessarily licensed under GPL v2 only.  KDE is migrating to GPL v3,
> > which is not compatible with GPL v2.
>
> What does it mean for those of us who don't want to move to GPL v3?
>
If your GPL v2 license is unmodified (i.e., it contains the phrase "(at your 
option) any later version"), then there's no problem.  The incompatibility 
arises if you've modified the license so that only GPL v2 is allowed.

In that case, I'm not sure what the options would be.  At this point, we have 
no such code in KStars.

regards,
Jason

> Jasem
> _______________________________________________
> Kstars-devel mailing list
> Kstars-devel <at> kde.org
> https://mail.kde.org/mailman/listinfo/kstars-devel
Jasem Mutlaq | 11 Nov 20:54

Re: KDE/kdeedu/kstars/kstars

On Sunday 11 November 2007 10:13:42 pm Jason Harris wrote:
> Hi,
>
> On Sunday 11 November 2007 11:41:21 am Jasem Mutlaq wrote:
> > > I need to remove ExtDate because it's based on Qt-3.x code, which is
> > > necessarily licensed under GPL v2 only.  KDE is migrating to GPL v3,
> > > which is not compatible with GPL v2.
> >
> > What does it mean for those of us who don't want to move to GPL v3?
>
> If your GPL v2 license is unmodified (i.e., it contains the phrase "(at
> your option) any later version"), then there's no problem.  The
> incompatibility arises if you've modified the license so that only GPL v2
> is allowed.

That's alright then. I was afraid we would have to release the source code as 
GPL v3 only (or GPL v.3 or later). With the headers unchanged, the user can 
decide which license to pick. INDI will remain the same, LGPL v2.1 or later.

Jasem
Jan Kotek | 13 Nov 10:32
Picon

Catalogs from Stellarium

Hi,
Stellarium made  huge progress. Version 0.9.0 can display stars up to
18 magnitude. They are using own compilation of NOMAD catalog, it
should be more precise then USNOA 2.0.

More details at: http://www.stellarium.org/wiki/index.php/Stars

Maybe you can support this catalog at KStars? C++ code for reading
this format is at src/StarMgr.cpp

Thanks,
Jan Kotek

Gmane