dstndstn / astrometry.net

Astrometry.net -- automatic recognition of astronomical images
http://astrometry.net
Other
662 stars 186 forks source link

Plot-Constellations is Failing to Overlay #187

Closed jlibermann closed 4 years ago

jlibermann commented 4 years ago

I'm running the plot-constellations function from the Linux CLI, and it's failing to overlay the RA/DEC grid on top of my original image. The function is instead outputting a labelled grid on a white background. The exact input I used was: plot-constellations -w Documents/pole_canon01.fits -G 60 -B -b 10 -g 0.4:0.2:0.2 -f 30 -o output1.png.

dstndstn commented 4 years ago

You have to give it a PPM-format input image via the "-i ppm" argument. Otherwise where do you think it's getting the image pixels from?

You might consider trying the "plotann.py" script, which is more powerful & flexible.

jlibermann commented 4 years ago

Thank you. This resolved my issue.

wtgee commented 4 years ago

@dstndstn, just to confirm, plotann.py is only available when installed from source but not the package (or, e.g., apt), right? Any reason not to include it if it's a better option than plot-constellations?

Edit: I guess that's not up to you, but I see it is built when built from the zipped release. Thanks for pointing to the script.

dstndstn commented 4 years ago

I assume packagers would include plotann.py -- probably in the python install tree. The astrometry.net codebase doesn't have a script for it in bin/ -- I should probably add one, since then it would get the PYTHON_SCRIPT customization, etc, and end up installed somewhere in the $PATH...