Astrometry.net in local: No NGC/IC object on ngc.png

169 views
Skip to first unread message

Wilfried Alvarez

unread,
Apr 26, 2020, 10:29:28 AM4/26/20
to astrometry
Dear all,

I need your support as I did not find any answer to my problem.

I took a picture of COMA, plenty of NGC/IC objects. When I solve by nova.astrometry.net I get a nice picture with all the NGC/IC objects. This is solved with the index-211.fits
I take the same picture and solve it locally.
solve-field MyFile.JPG --depth 40
So far so good, the solving is also done with this index file (index-211.fits) and I have several output files including: 
Myfile.objs.png ==> My picture with red dots on stars
Myfile.ngc.png ==> Looks like my initial picture with nothing added


Then I try to extract the NGC/IC names
plot-constellations -w MyfileName.wcs  -n -C -B -N -M -G60 -o Myfilename.png

The result (Myfilename.png) is a white image with only the grey grids !!

I tried to search in the output files of the solving if I found any NGC/IC number with coordinates... none.
So I tried to solve with tag-all option
solve-field MyFile.JPG --depth 40 --tag-all ==> No change 

So I tried with the was file from nova.astrometry.net solving... No change

I'm lost an would appreciate support to get the same kind of view we have with the only version (nova...)

Thank you

Wilfried

Wilfried Alvarez

unread,
Apr 26, 2020, 1:11:37 PM4/26/20
to astrometry
I add some information: when using the -v option in plot-constellation, it returns : no GNC/IC object !!! Why solve-field with the same index file than Nova does not report the same content?

Dustin Lang

unread,
Apr 26, 2020, 3:47:59 PM4/26/20
to Wilfried Alvarez, astrometry
Hi,
Could you please send your example WCS file, or link to the nova.astrometry.net submission?
Thanks,
--dustin

--
You received this message because you are subscribed to the Google Groups "astrometry" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astrometry+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/astrometry/887fd6f1-1974-4017-9862-c4403ee07ca1%40googlegroups.com.

Wilfried Alvarez

unread,
Apr 26, 2020, 4:31:57 PM4/26/20
to astrometry
Hello,

Thank you for your quick answer.

Here is the link to the Nova submission:


Regards,

Wilfried


Le dimanche 26 avril 2020 16:29:28 UTC+2, Wilfried Alvarez a écrit :

Dustin Lang

unread,
Apr 26, 2020, 5:34:17 PM4/26/20
to Wilfried Alvarez, astrometry
Thanks -- which version of the code are you using?

I think there is a bug in version 0.79 affecting the NGC/IC labelling.  This is fixed in the 'master' version of the code -- is it easy for you to try the version from github? https://github.com/dstndstn/astrometry.net

Thanks,
--dustin


--
You received this message because you are subscribed to the Google Groups "astrometry" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astrometry+...@googlegroups.com.

Wilfried Alvarez

unread,
Apr 26, 2020, 5:39:15 PM4/26/20
to astrometry
Hello,
I use the one provided in my package manager in Raspbian. This is the 0.76



Le dimanche 26 avril 2020 16:29:28 UTC+2, Wilfried Alvarez a écrit :

Dustin Lang

unread,
Apr 26, 2020, 5:46:30 PM4/26/20
to Wilfried Alvarez, astrometry
What about if you omit the "-M"?


--
You received this message because you are subscribed to the Google Groups "astrometry" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astrometry+...@googlegroups.com.

Wilfried Alvarez

unread,
Apr 26, 2020, 5:47:14 PM4/26/20
to astrometry
Please find attached my files resulting from the plate solving


Le dimanche 26 avril 2020 16:29:28 UTC+2, Wilfried Alvarez a écrit :
Solved_pi.zip

Wilfried Alvarez

unread,
Apr 26, 2020, 5:53:40 PM4/26/20
to astrometry
Here is the result to the command:

plot-constellations -w /home/pi/Documents/test_astro/PI/Solved_pi/IMG_1207.wcs -n -C -B -N -G60 -o /home/pi/Documents/test_astro/PI/Solved_pi/IMG_1207_Annot_WCS.png

Still blank...


Le dimanche 26 avril 2020 16:29:28 UTC+2, Wilfried Alvarez a écrit :
IMG_1207_Annot_WCS.png

Dustin Lang

unread,
Apr 26, 2020, 6:39:22 PM4/26/20
to Wilfried Alvarez, astrometry
Ohhhhh, I bet you have a Debian-based distribution.  Due to licensing problems, they removed the NGC/IC catalog from their package.

As of astrometry.net 0.79, we're using the OpenNGC catalog, which satisfies Debian's license requirements, but I'm not sure if they have a new package out yet.

cheers,
--dustin



--
You received this message because you are subscribed to the Google Groups "astrometry" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astrometry+...@googlegroups.com.

Wilfried Alvarez

unread,
Apr 27, 2020, 5:53:24 AM4/27/20
to astrometry
Hello,

You've got the point !
I've removed the prebuilt installation and installed the on from GitHub manually... and now it works like a charm !!

Thank you very much for your support, this was really helpful

Regards,

Wilfried


Le dimanche 26 avril 2020 16:29:28 UTC+2, Wilfried Alvarez a écrit :

Wilfried Alvarez

unread,
Apr 27, 2020, 5:58:15 AM4/27/20
to astrometry
I do not know if I have to open a new topic but I have now another question.

I would like to create the same picture than the one attached to see where is my picture in the sky.
Is it part of the astrometry.net package?

Thank you


Le dimanche 26 avril 2020 16:29:28 UTC+2, Wilfried Alvarez a écrit :
2774482.png

Dustin Lang

unread,
Apr 27, 2020, 10:30:28 AM4/27/20
to Wilfried Alvarez, astrometry
Hi,

I just pulled out that plotting code:


python3 blind/onthesky.py wcs.fits

and it should create zoom-*.png files.

cheers,
--dustin


--
You received this message because you are subscribed to the Google Groups "astrometry" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astrometry+...@googlegroups.com.

Wilfried Alvarez

unread,
Apr 27, 2020, 10:52:33 AM4/27/20
to astrometry
Thank you very much



Le lundi 27 avril 2020 16:30:28 UTC+2, Dustin Lang a écrit :
Hi,

I just pulled out that plotting code:


python3 blind/onthesky.py wcs.fits

and it should create zoom-*.png files.

cheers,
--dustin


To unsubscribe from this group and stop receiving emails from it, send an email to astro...@googlegroups.com.

Wilfried Alvarez

unread,
Apr 28, 2020, 5:34:01 PM4/28/20
to astrometry
Hello,

I tried the py code at the link you gave me but it failed. I probably do not do what I should.
I copied the code and paste it in my python SDK, and saved it as onthesky.py in the /home/pi/astrometry/net/blind folder with the other .py and .c flies that have been already installed (such as solve-field.c)

Then in the console: python3 /home/pi/astrometry.net/blind/onthesky.py MysolvedFile.wcs  (I do not have was.fits as you wrote me)

I get the result: 
From astrometry.blind import plot stuff as ps
ModuleNotFoundError: No module named 'astrometry'

What did I do wrong?

Thank you for your help

Wilfried

Dustin Lang

unread,
Apr 28, 2020, 7:36:02 PM4/28/20
to Wilfried Alvarez, astrometry
Try going

cd /home/pi/astrometry.net
python3 blind/onthesky.py MysolvedFile.wcs

or, if that doesn't work, try

export PYTHONPATH=.:${PYTHONPATH}
cd /home/pi/astrometry.net
python3 blind/onthesky.py MysolvedFile.wcs

cheers,
--dustin

To unsubscribe from this group and stop receiving emails from it, send an email to astrometry+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/astrometry/3d2e5218-163c-47e2-866e-ffc274e8d38e%40googlegroups.com.

Wilfried Alvarez

unread,
Apr 29, 2020, 5:18:31 AM4/29/20
to astrometry
Hello,

thank you, with your help and some other places in the internet I finally get it work... BUT, I have now the following error message:

anwcs.c:958:anwcs_wcs_lib_from_string: Wcslib support was not compiled in
anwcs.c:1601:allsky_wcs: Failed to parse Hammer-Aitoff header string with wcslib



Le mercredi 29 avril 2020 01:36:02 UTC+2, Dustin Lang a écrit :
Try going

cd /home/pi/astrometry.net
python3 blind/onthesky.py MysolvedFile.wcs

or, if that doesn't work, try

export PYTHONPATH=.:${PYTHONPATH}
cd /home/pi/astrometry.net
python3 blind/onthesky.py MysolvedFile.wcs

cheers,
--dustin

Dustin Lang

unread,
Apr 29, 2020, 8:13:43 AM4/29/20
to Wilfried Alvarez, astrometry
Okay, well, the astrometry.net code uses the WCSLib library, if it's available, to handle some WCS transformations -- including the all-sky top-level zoom view.  But that is only possible if WCSLib support was compiled in, which it looks like you don't have?

You can try installing the 'wcslib-dev' package, if your OS has that.  Then, in the astrometry.net code directory,

    make reconfig

and check for:
------------------------------
And, by the way, is WCSlib support being compiled in?

pkg-config --exists wcslib && echo yes || echo no
yes

  WCSLIB_INC: -I/usr/local/Cellar/wcslib/7.2/include/wcslib
  WCSLIB_LIB: -L/usr/local/Cellar/wcslib/7.2/lib -lwcs -lm
------------------------------

if wcslib is found, then:

    make
    make py


OR, if you don't need that first all-sky zoom level, you can edit that "onthesky.py" script and remove the "zoom=0" part.

cheers,
--dustin




To unsubscribe from this group and stop receiving emails from it, send an email to astrometry+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/astrometry/cf558a93-73cf-48d2-b477-a48c6abbbfa0%40googlegroups.com.

Wilfried Alvarez

unread,
Apr 29, 2020, 9:32:59 AM4/29/20
to astrometry
Hello,

I'm progressing but not yet achieved totally.
I've installed the wcslib-dev and I can run onthesky.py like this:

/usr/local/astrometry/bin/solve-field /home/pi/Documents/test_astro/PI/solved_pi_3/IMG_0923_resized.JPG

I have the following output:

*******************************************************
TAN-SIP Structure:
  crval=(84.9195, -2.70238)
  crpix=(264.17, 253.558)
  CD = (   -0.0040017     -0.0022959 )
       (    0.0022952      -0.004003 )
  image size = (640 x 427)
  SIP order: A=2, B=2, AP=2, BP=2
  A =            0           0 -1.2863e-06
                 0 -1.0609e-06
        1.2555e-06
  B =            0           0  -1.106e-07
                 0  1.3779e-07
        8.3445e-07
  AP =  -1.2573e-05 -1.8013e-07   1.286e-06
           6.5e-08  1.0604e-06
       -1.2549e-06
  BP =  -8.3248e-06 -7.3012e-08  1.1049e-07
        8.2103e-08  -1.378e-07
       -8.3401e-07
  sqrt(det(CD))=16.6101 [arcsec]
plotannotations.c:151:plot_offset_line_rd: failed to convert RA,Dec to x,y for plotting line seg
plotannotations.c:151:plot_offset_line_rd: failed to convert RA,Dec to x,y for plotting line seg
plotannotations.c:151:plot_offset_line_rd: failed to convert RA,Dec to x,y for plotting line seg
IC 434 / Flame Nebula / Orion B
NGC 1909 / the Witch Head Nebula
NGC 1976 / Great Orion Nebula / Orion Nebula / M 42
NGC 2237 / Rosette A
NGC 2238 / Rosette Nebula
IC 423
IC 431
IC 432
IC 434 / Flame Nebula / Orion B
NGC 2023
NGC 2024
*************************************************

And I do not see any output file such as zoom-*.png



Dustin Lang

unread,
Apr 29, 2020, 9:37:38 AM4/29/20
to Wilfried Alvarez, astrometry
Hi,
Could you please send the .wcs file you're using?
thanks,
--dustin

To unsubscribe from this group and stop receiving emails from it, send an email to astrometry+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/astrometry/afec38fe-3d2f-49d4-b3fe-8f21651a82e7%40googlegroups.com.

Wilfried Alvarez

unread,
Apr 29, 2020, 10:21:50 AM4/29/20
to astrometry
Here it is 



Le mercredi 29 avril 2020 15:37:38 UTC+2, Dustin Lang a écrit :
Hi,
Could you please send the .wcs file you're using?
thanks,
--dustin
IMG_0923_resized.wcs

Dustin Lang

unread,
Apr 29, 2020, 10:27:08 AM4/29/20
to Wilfried Alvarez, astrometry
That's weird -- I get the same output as you, including those warning about failing to convert RA,Dec/x,y

But I do get zoom-0.png zoom-1.png zoom-2.png zoom-3.png written to the current directory (like attached).  (Note, NOT the directory that the WCS file is in -- whatever directory you're in when you run the onthesky.py script... make sure that directory is writable.)

I'm not sure what to suggest... if it failed to write the output for some reason, it should give some sort of error message.....

cheers,
--dustin


To unsubscribe from this group and stop receiving emails from it, send an email to astrometry+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/astrometry/8799532d-252d-4384-a0f0-4fcbc6e4a6da%40googlegroups.com.
zoom-0.png
zoom-3.png
zoom-2.png
zoom-1.png

Wilfried Alvarez

unread,
Apr 29, 2020, 10:35:45 AM4/29/20
to astrometry
Hello,

I found the zomm*.png files, I did not expect to find them in this directory.
They seem to be fine aven if there are some error reports...
So this is fine for me. 

Thank you for your help, you are GREAT !


Le mercredi 29 avril 2020 01:36:02 UTC+2, Dustin Lang a écrit :
Try going

cd /home/pi/astrometry.net
python3 blind/onthesky.py MysolvedFile.wcs

or, if that doesn't work, try

export PYTHONPATH=.:${PYTHONPATH}
cd /home/pi/astrometry.net
python3 blind/onthesky.py MysolvedFile.wcs

cheers,
--dustin

Wilfried Alvarez

unread,
Apr 30, 2020, 11:17:59 AM4/30/20
to astrometry
Hello,

I'm back... which is not a good piece of news ;-)

I can call correctly onthesky.py from the console, this is fine, but when I include it into a py grogram it fails.
I included the PATH, set the current folder as astrometric.net.... but I have the same error than before in the console.
If you could help me, I do not understand the hierarchie and dependances in your code.

My test code:

import os
import sys

os.chdir("/home/pi/astrometry.net")
sys.path.insert(0, "/home/pi/astrometry.net") 
print(sys.path)
path = os.getcwd()
print(path)
Run_command = "python3 blind/onthesky.py '/home/pi/Desktop/photos/Astrometry2020-04-29 22:45:30Resized.wcs'"
os.system(Run_command)


The result:
['/home/pi/astrometry.net', '/home/pi/astrometry.net', '/usr/lib/python37.zip', '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/usr/local/lib/python3.7/dist-packages', '/usr/lib/python3/dist-packages']
Traceback (most recent call last):
  File "blind/onthesky.py", line 2, in <module>
    from astrometry.blind import plotstuff as ps
ModuleNotFoundError: No module named 'astrometry'

So the current working path is the ggod one, in case of it is also in the PythonPath... but it fails...

here is a screenshoot of my directories if it could help?
2020-04-30-171224_1024x768_scrot.png

Dustin Lang

unread,
Apr 30, 2020, 11:26:49 AM4/30/20
to Wilfried Alvarez, astrometry
hmm, I don't see anything wrong with your setup.

Can you try adding
sys.path.insert(0, ".")
?


To unsubscribe from this group and stop receiving emails from it, send an email to astrometry+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/astrometry/32a3e2d1-d7ad-4eeb-9d3a-f95ebc9ba6e2%40googlegroups.com.

Wilfried Alvarez

unread,
Apr 30, 2020, 11:29:28 AM4/30/20
to astrometry
Damned !! that does not change anything !



Le jeudi 30 avril 2020 17:26:49 UTC+2, Dustin Lang a écrit :
hmm, I don't see anything wrong with your setup.

Can you try adding
sys.path.insert(0, ".")
?


Dustin Lang

unread,
Apr 30, 2020, 11:33:17 AM4/30/20
to Wilfried Alvarez, astrometry
OH, I'm being silly.

Adding stuff to sys.path has NO effect on code you run with os.system.

You can try setting
os.environ['PYTHONPATTH'] = ':'.join(sys.path)
before os.system.



To unsubscribe from this group and stop receiving emails from it, send an email to astrometry+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/astrometry/c752c393-d556-4c60-80c2-280491b49864%40googlegroups.com.

Wilfried Alvarez

unread,
Apr 30, 2020, 11:44:11 AM4/30/20
to astrometry
Wouhaaaa !!! It works !!!! Thank you

by the way, what did you mean by :

Le jeudi 30 avril 2020 17:33:17 UTC+2, Dustin Lang a écrit :"Adding stuff to sys.path has NO effect on code you run with os.system."
Is it a general affirmation, this is the way it is normally? Or this is a way to show your surprise?


Dustin Lang

unread,
Apr 30, 2020, 11:59:35 AM4/30/20
to Wilfried Alvarez, astrometry
sys.path only affects the python script currently running.  When you use os.system('python3 ...'), that creates a new python interpret, and its sys.path starts anew -- from PYTHONPATH and other rules.


To unsubscribe from this group and stop receiving emails from it, send an email to astrometry+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/astrometry/a830c7f0-ff8a-4101-8db9-c0d9f9940d4b%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages