Author Topic: Annotation script  (Read 170941 times)

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 927
Re: Annotation script
« Reply #225 on: 2013 March 05 04:25:17 »
I have published a new version of AnnotateImage alongside the new script CatalogStarGenerator. It has a couple of improvements that I think that are very useful.

Offline AstroScience

  • PixInsight Addict
  • ***
  • Posts: 169
Re: Annotation script
« Reply #226 on: 2013 March 22 05:46:03 »
Hi Andres!
First of all, i want to thank you for this impressive code! It's very useful and neat script to have in the arsenal.
Now, when I'm building my own astro website, this tool became very handy and I was able to solve and Annotate images with 17mm FL.
Until i came to this specific widefield image and found that something wrong with the script.

On the first image i draw just the Grid and NGC Objects and as you can see they've been created just on the left side, which is up to 24 hour RA. No matter what i do, it won't Annotate whole image.

Second problem, is if you look at 36° DEC mark, you will notice that object names piling up and got messy. Although I used small image scale and small fonts to separate the Names, they still got written above each other and became unreadable.
Check for example NGC 7446 and 7449, they almost fused on the same spot,  i think there should be option to separate the object names so they don't get written on each other. Even manually moving them with mouse if possible.
Also i think it would be good to have the ability to filter magnitude or size of the objects, like with stars. Meaning, on such wide image there are so many small objects or dim objects, that are not visible and it might have no reason to mark them at all. Then you might draw just large or bright objects circles and keep annotation image clear.


And now to the another big problem on the same image. When i enabled PGC catalog, i got this piled up cone with all objects as you can see on the second image. I can send you that clean image to test over if you want.

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 927
Re: Annotation script
« Reply #227 on: 2013 March 22 06:04:09 »
Hi,

it seems that there is a bug in images that cross the 0h/24h boundary. I will have to check it.

Solving the overlapping between labels is not easy and I probably won't fix it in the short term. However if this is a big problem for you, you can save the annotation as a SVG overlay, edit it with any SVG editor (as Inkscape) and then merge it with the sky image.

The third problem (piled PGC objects in an small area) is caused because you are asking for very faint galaxies. Since your image covers a very wide field there are millions of galaxies in it. Also, the catalog servers that AnnotateImage uses can only return about 100 000 elements. This is the cause for the blue smear in an small area: the server returns only the first hundred of thousand of stars and they are in the same area of the sky. This limitation is not grave in my opinion because if the script tries to paint more than a few thousands of objects the result will be a smear.
For solving this problem you have to filter the PGC catalog using a smaller magnitude. You can start with 9 and increase it in small steps. The Preview button will be handy for this.

Offline AstroScience

  • PixInsight Addict
  • ***
  • Posts: 169
Re: Annotation script
« Reply #228 on: 2013 March 22 06:31:34 »
Thank you, Andres

but there is no Magnitude Filter for PGC Hyperleda Catalog? Using v1.6

that would be nice to have such a filter for NGC/IC Catalog as well.

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 927
Re: Annotation script
« Reply #229 on: 2013 March 22 06:34:55 »
Thank you, Andres

but there is no Magnitude Filter for PGC Hyperleda Catalog? Using v1.6

that would be nice to have such a filter for NGC/IC Catalog as well.
You are right. The catalogs PGC and NGC/IC have no magnitude so there is nothing that I can do. You can read the description of PGC catalog here:
http://cdsarc.u-strasbg.fr/viz-bin/Cat?VII/237

Offline AstroScience

  • PixInsight Addict
  • ***
  • Posts: 169
Re: Annotation script
« Reply #230 on: 2013 March 22 06:55:48 »
Alright then,
it's still very usable as it is, when annotating DSO images!

Offline Herbert_W

  • PixInsight Addict
  • ***
  • Posts: 204
    • Skypixels - Astrophotography by Herbert Walter
Re: Annotation script
« Reply #231 on: 2013 April 02 23:37:18 »
Hi Andres!

The catalogdata for AnnotateImage are linked to the vizier homepage.
This is comfortable!

Is it possible to get the converted catalogs (in the format, which is nessecary for your script)
for download? My Lap hasnt always a connection to the net.

Thank you and best regards.

Herbert, Austria

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 927
Re: Annotation script
« Reply #232 on: 2013 April 03 00:01:32 »
Is it possible to get the converted catalogs (in the format, which is nessecary for your script)
for download? My Lap hasnt always a connection to the net.
It would not be easy because some catalogs are huge (>10GB) and JavaScript is not very fast. I would have to program indexes and a search mechanism. This is a lot of work and I have currently other priorities.

I will think about it but I can't promise anything.

ruediger

  • Guest
Re: Annotation script
« Reply #233 on: 2013 April 03 00:22:35 »
Hi Andres,

thanks for this very useful script!

I have a couple of questions regarding the script:

- so far the allowed WCS projection is limited to TAN, do you have plans to extend the script to other projections like AIT for really widefield images?

- sometimes the scripts breaks with the following error message:
Downloading Vizier data:
http://vizier.u-strasbg.fr/viz-bin/asu-tsv?-source=IV/27A/catalog IV/27A/table3&-c=337.283333 63.966667&-c.r=111.805556&-c.u=deg&-out.form=|&-joincol=IV/27A/catalog.HD&-joincol=HD&-outjoin=IV/27A/catalog.HD&-out=RAJ2000&-out=DEJ2000&-out=Fl&-out=Bayer&-out=Cst&-out=Name&-out=Vmag&-out=HIP
223508 bytes transferred in 0.46 s @ 472.80 KB/s
*** Error [222]: /Users/wens02/Desktop/PixInsight-1.8RC4.app/Contents/src/scripts/Solver+Annotate/AstronomicalCatalogs.jsh, line 330: TypeError: posI is null


- is it possible to scale down a plate solved image with integer resample and patch the FITS header afterwards so that the scaled down image is still able to annotate? I think I have to edit the NAXIS1/NAXIS2 values after rescaling, but these are read-only and contain the old (wrong) values.

Attached is an annotated TAN projection of a part of the milky way mosaic I'm currently working on, for this image your script works perfect! :-)

Regards,
 Rüdiger

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 927
Re: Annotation script
« Reply #234 on: 2013 April 03 01:12:05 »
- so far the allowed WCS projection is limited to TAN, do you have plans to extend the script to other projections like AIT for really widefield images?
Yes. I have plans to add more projections in the future. I don't know when, but I think I will do it.
I have nearly ready a new version of ImageSolver that improves greatly the precision of the annotation and that it is also able of modeling the distortions of the optics. This new script will allow in the future new functions as reprojection of images or mosaic stitching based on coordinates of images with very little (or even none) overlapping.

- sometimes the scripts breaks with the following error message:
Downloading Vizier data:
http://vizier.u-strasbg.fr/viz-bin/asu-tsv?-source=IV/27A/catalog IV/27A/table3&-c=337.283333 63.966667&-c.r=111.805556&-c.u=deg&-out.form=|&-joincol=IV/27A/catalog.HD&-joincol=HD&-outjoin=IV/27A/catalog.HD&-out=RAJ2000&-out=DEJ2000&-out=Fl&-out=Bayer&-out=Cst&-out=Name&-out=Vmag&-out=HIP
223508 bytes transferred in 0.46 s @ 472.80 KB/s
*** Error [222]: /Users/wens02/Desktop/PixInsight-1.8RC4.app/Contents/src/scripts/Solver+Annotate/AstronomicalCatalogs.jsh, line 330: TypeError: posI is null

Could you retest it using the version included in PI1.8RC5 please?

- is it possible to scale down a plate solved image with integer resample and patch the FITS header afterwards so that the scaled down image is still able to annotate? I think I have to edit the NAXIS1/NAXIS2 values after rescaling, but these are read-only and contain the old (wrong) values.
I could do it, but I think that this should be done by the geometric processes of PI themselves.

Attached is an annotated TAN projection of a part of the milky way mosaic I'm currently working on, for this image your script works perfect! :-)
Thanks!!

ruediger

  • Guest
Re: Annotation script
« Reply #235 on: 2013 April 03 02:06:07 »
Could you retest it using the version included in PI1.8RC5 please?
I updated to 1.8RC5 on my MacBook, but get the same error message when trying to activate the named stars layer or any other layer that needs vizier data on a slightly extended version of my milky way project. The grid and NGC/IC layer is still pixel exact.

Downloading Vizier data:
http://vizier.u-strasbg.fr/viz-bin/asu-tsv?-source=IV/27A/catalog IV/27A/table3&-c=337.283333 63.966667&-c.r=111.805556&-c.u=deg&-out.form=|&-joincol=IV/27A/catalog.HD&-joincol=HD&-outjoin=IV/27A/catalog.HD&-out=RAJ2000&-out=DEJ2000&-out=Fl&-out=Bayer&-out=Cst&-out=Name&-out=Vmag&-out=HIP
223509 bytes transferred in 0.57 s @ 383.40 KB/s
TypeError: posI is null


A screenshot of the embedded WCS data of the problematic picture is attached.

Rüdiger

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Re: Annotation script
« Reply #236 on: 2013 April 03 02:08:11 »
I recently labeled with named stars, both on Windows and Linux, and did not see these error messages. Mac-specific?
Georg
Georg (6 inch Newton, unmodified Canon EOS40D+80D, unguided EQ5 mount)

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 927
Re: Annotation script
« Reply #237 on: 2013 April 03 02:15:42 »
I updated to 1.8RC5 on my MacBook, but get the same error message when trying to activate the named stars layer or any other layer that needs vizier data on a slightly extended version of my milky way project. The grid and NGC/IC layer is still pixel exact.
I know where the error is. In fact, I fixed it last week. It happens in all catalogs when the image has a very wide field.
If it is very urgent I could release a temporal fix until ImageSolver 2.0 is ready. Can you wait a week or two?.

Also, it would be very useful for testing ImageSolver 2.0 if you could send me one of frames that compose you mosaic. I only need a calibrated RAW image and its approximate center and resolution.

ruediger

  • Guest
Re: Annotation script
« Reply #238 on: 2013 April 03 02:29:02 »
If it is very urgent I could release a temporal fix until ImageSolver 2.0 is ready. Can you wait a week or two?.
No it's not urgent. I can wait until version 2.0 is ready to release, even if it takes longer than a week or two.

Quote
Also, it would be very useful for testing ImageSolver 2.0 if you could send me one of frames that compose you mosaic. I only need a calibrated RAW image and its approximate center and resolution.
I will send you a download address later. Currently I don't have access to the calibrated RAWs

Rüdiger

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 927
Re: Annotation script
« Reply #239 on: 2013 April 03 02:30:14 »
I will send you a download address later. Currently I don't have access to the calibrated RAWs
Thanks!