Author Topic: Annotation script  (Read 77460 times)

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 790
    • View Profile
Annotation script
« on: 2012 March 08 15:11:59 »
I am writing a new script related to the Plate-Solving script that I wrote the last week. It will annotate images that have coordinates in the WCS convention.
The annotation will be designed by layers:
  • Objects: It will use a catalog with nearly 10000 objects from the NGC and IC catalogs and it will draw a circle around the object and write a label with the catalog number and name of the object.
  • Grid: the script will draw a grid with the equatorial coordinates of the image.
The user will be able to decide which layers and elements wants to draw. The graphics properties (color, transparency, line width,...) will be configurable.
I already have the kernel of the script, but I still haven't written the user interface. The annotation will be something like the attached image (the image is from gvanhau). New ideas will be welcome.

Latest version
This message will be kept updated with the latest versions of the scripts:
  • ImageSolver v1.6
  • AnnotateImage v1.2
« Last Edit: 2012 May 30 19:24:19 by Andres.Pozo »

Offline Nocturnal

  • PTeam Member
  • PixInsight Jedi Council Member
  • *******
  • Posts: 2726
    • View Profile
    • http://www.carpephoton.com
Re: Annotation script
« Reply #1 on: 2012 March 08 15:21:02 »
Cool! Astrometry.net does that too but their object list is rather short. It would be great if you could 'open' the catalog format so we can add arbitrary catalogs. I'm thinking the PGC would be nice for galaxy peepers. Alternatively you could do away with the catalogs and do an online SIMBAD search instead.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 790
    • View Profile
Re: Annotation script
« Reply #2 on: 2012 March 08 19:40:13 »
Alternatively you could do away with the catalogs and do an online SIMBAD search instead.
I have been studying it and I think I can do it. I will maintain the current NGC/IC catalog since it is not large and it allows working without Internet connection. The configuration dialog will allow to select one or more catalogs.

Offline Nocturnal

  • PTeam Member
  • PixInsight Jedi Council Member
  • *******
  • Posts: 2726
    • View Profile
    • http://www.carpephoton.com
Re: Annotation script
« Reply #3 on: 2012 March 08 19:47:46 »
Cartes du Ciel recently added SIMBAD lookup. It's not quite the same as you'd be looking for objects in a certain field of view and CdC looks for the coordinates of a named object. Maybe the source code helps you. It's in Pascal but pretty easy to read and convert.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 790
    • View Profile
Re: Annotation script
« Reply #4 on: 2012 March 08 20:02:44 »
I have already done several test and it is going to be quite easy. I only need to construct an URL with the query and Vizier returns a file with a table that contains only the objects that pass the filter. I have already implemented both the query constructor for the PGC (HYPERLEDA I) and the table parser.

Offline Nocturnal

  • PTeam Member
  • PixInsight Jedi Council Member
  • *******
  • Posts: 2726
    • View Profile
    • http://www.carpephoton.com
Re: Annotation script
« Reply #5 on: 2012 March 08 20:03:38 »
Impressive!
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline troypiggo

  • PixInsight Addict
  • ***
  • Posts: 246
    • View Profile
Re: Annotation script
« Reply #6 on: 2012 March 08 20:34:33 »
This is fantastic!  I was just wondering yesterday if this was possible, and here it is the day after and someone has independently started work on it!

Do you intend to make it fairly customisable in terms of colours, linetypes, linewidths, fonts etc for the overlay?

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 790
    • View Profile
Re: Annotation script
« Reply #7 on: 2012 March 08 20:46:21 »
This is fantastic!  I was just wondering yesterday if this was possible, and here it is the day after and someone has independently started work on it!

Do you intend to make it fairly customisable in terms of colours, linetypes, linewidths, fonts etc for the overlay?
The engine now has the following properties:
  • Grid layer: lineColor, lineWidth, gridDensity, showLabels, labelColor, labelSize
  • Object layers: showCircle, lineColor, lineWidth, showLabels, labelColor, labelSize
All layers will be optional.

The engine is 75% complete, but I have not started the user interface yet. I hope to have it finished by the end of the next week. Perhaps in a few days I could publish a first and incomplete version, but I can not promise anything because this weekend I am not going to be able to work on it.

Offline troypiggo

  • PixInsight Addict
  • ***
  • Posts: 246
    • View Profile
Re: Annotation script
« Reply #8 on: 2012 March 08 21:30:25 »
This is fantastic!  I was just wondering yesterday if this was possible, and here it is the day after and someone has independently started work on it!

Do you intend to make it fairly customisable in terms of colours, linetypes, linewidths, fonts etc for the overlay?
The engine now has the following properties:
  • Grid layer: lineColor, lineWidth, gridDensity, showLabels, labelColor, labelSize
  • Object layers: showCircle, lineColor, lineWidth, showLabels, labelColor, labelSize
All layers will be optional.

The engine is 75% complete, but I have not started the user interface yet. I hope to have it finished by the end of the next week. Perhaps in a few days I could publish a first and incomplete version, but I can not promise anything because this weekend I am not going to be able to work on it.

 8)

Offline gvanhau

  • PixInsight Old Hand
  • ****
  • Posts: 335
    • View Profile
Re: Annotation script
« Reply #9 on: 2012 March 08 21:41:50 »
Nice Work.
I'm waiting to try it.

Geert Vanhauwaert

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 790
    • View Profile
Re: Annotation script
« Reply #10 on: 2012 March 09 20:51:22 »
I have already integrated a few catalogs from Vizier: PGC-HYPERLEDA, TYCHO2, USNO-B1 and PPMXL.

The star catalogs can be filtered by magnitude. Some of the catalogs have so much information that without filtering the annotation becomes a mess. Also, since some of the objects belongs to more than one catalog I have to eliminate the duplicates.

I have made an example using NGC/IC, PGC, TYCHO and USNO-B1 (<15 magnitude).

Offline Nocturnal

  • PTeam Member
  • PixInsight Jedi Council Member
  • *******
  • Posts: 2726
    • View Profile
    • http://www.carpephoton.com
Re: Annotation script
« Reply #11 on: 2012 March 09 20:53:34 »
Most impressive.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Enzo De Bernardini

  • PTeam Member
  • PixInsight Addict
  • ***
  • Posts: 250
  • Resistance is futile.
    • View Profile
    • Astronomí­a Sur
Re: Annotation script
« Reply #12 on: 2012 March 09 21:31:28 »
Wob! Amazing work!.

Offline h0ughy

  • PixInsight Addict
  • ***
  • Posts: 226
    • View Profile
Re: Annotation script
« Reply #13 on: 2012 March 10 04:19:08 »
wow fantastic work - this would be so good showing people items you can capture.  Look forward to a finished version :)
Doghouse Observatory

Offline NKV

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 676
    • View Profile
Re: Annotation script
« Reply #14 on: 2012 March 10 06:02:11 »