On Wed, 2012-01-11 00:43:25 +0400, Oleg Bartunov <oleg@sai.msu.su> wrote:
> On Tue, 10 Jan 2012, Jan-Benedict Glaw wrote:
> > On Sun, 2012-01-08 22:19:53 +0400, Oleg Bartunov <oleg@sai.msu.su> wrote:
> > > pgsphere now could benefit very much from our KNNGiST feature.
> > > This is number one development from my point of view. I and
> > > Teodor have no time to work on pgsphere, sorry. But, there are
> > > some astronomers I'm working with, who can take part in this.
> > > Sergey Karpov has done extensive benchmarks of q3c, rtree and
> > > pgsphere and found the latter still has some benefits in some
> > > workload, so we are interesting in development.
> > Could the PostGIS stuff be abused for stellar coordinates?
>
> There is no principal difference between celestial sphere and earth,
> it's a matter of conversion between coordinates.
I'm a hobby astronomer myself--so I'm asking myself what is actually
needed. I had a look at pgsphere some weeks ago, but didn't use it,
because it seemed to be somewhat dead.
My next approach was to load a dataset as-is (with floting point RA
and dec) and then created a new table selecting all data and converted
the coordinates to POINTs. Even with a combined index on (RA,Dec) (as
well as one on the POINT column of the new PostGIS enabled table), the
later was quite faster when searching for specific areas etc.
One important thing that's needed is transformation between
equatorial, ecliptic, galactic and probably (local, incorporating
current local longitude/latitude and time) horizontal
coordinates. What might be important, too, is to be able to change
between J2000.0 and B1950.0 etc.
The probably easiest thing is to change the (printable) representation
of coordinates, because (depending on the people you talk to),
especially for RA (equivalent to the earth's longitude), there are at
least two totally different notations used:
2h 30min 4.3sec = 2.5011944444h = 37.5179°
The other axis is usually simply written in degree.
MfG, JBG
-- Jan-Benedict Glaw jbglaw@lug-owl.de +49-172-7608481 Signature of:
Wennich wach bin, träume ich. the second :