×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

FIXED: astrometry fails in Ekos and command line, used to work

  • Posts: 333
  • Thank you received: 24
EDITED - in the RPI3 and ekos I was missing the --no-fits2fits

Hi,

Running solve-field is failing. I am not sure why... can someone help. The error is below.

Thank you,
Stephen



/usr/bin/solve-field --no-verify --no-plots --resort --downsample 2 -O -3 83.8187 -4 -5.39549 -5 15 -L 19.3223 -H 26.6952 -u aw -W /tmp/solution.wcs /home/pi/www/Test_image.fit
Reading input file 1 of 1: "/home/pi/www/Test_image.fit"...
Header has 29 cards
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/lib/python2.7/dist-packages/astrometry/util/image2pnm.py", line 323, in <module>
sys.exit(main())
File "/usr/lib/python2.7/dist-packages/astrometry/util/image2pnm.py", line 320, in main
mydir, fix_sdss=options.fix_sdss)
File "/usr/lib/python2.7/dist-packages/astrometry/util/image2pnm.py", line 248, in convert_image
(imgtype, errstr) = image2pnm(infile, outfile, sanitized, force_ppm, no_fits2fits, extension, mydir, fix_sdss)
File "/usr/lib/python2.7/dist-packages/astrometry/util/image2pnm.py", line 184, in image2pnm
errstr = fits2fits(infile, sanitized, fix_idr=fix_sdss)
File "/usr/lib/python2.7/dist-packages/astrometry/util/fits2fits.py", line 86, in fits2fits
hdu.scale('int16', '', bscale, bzero)
File "/usr/lib/python2.7/dist-packages/pyfits/hdu/image.py", line 383, in scale
bzero=bzero, blank=None)
File "/usr/lib/python2.7/dist-packages/pyfits/hdu/image.py", line 441, in _scale_internal
self.data += -_zero
TypeError: Cannot cast ufunc add output from dtype('int32') to dtype('uint16') with casting rule 'same_kind'
augment-xylist.c:588:backtick Failed to run command: /usr/bin/python -m astrometry.util.image2pnm --sanitized-fits-outfile /tmp/tmp.sanitized.bM9KHh --fix-sdss --infile /home/pi/www/Test_image.fit --uncompressed-outfile /tmp/tmp.uncompressed.II4Xbf --outfile /tmp/tmp.ppm.jFomFc --ppm
ioutils.c:567:run_command_get_outputs Command failed: return value 1
The following user(s) said Thank You: dolguldur
Last edit: 7 years 1 month ago by Stephen.
7 years 1 month ago #14640

Please Log in or Create an account to join the conversation.

  • Posts: 102
  • Thank you received: 13
I am also havin this issue with images generated by CCD Simulator. Does someone knows what happened here ?

Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/lib/python2.7/dist-packages/astrometry/util/image2pnm.py", line 323, in <module>
sys.exit(main())
File "/usr/lib/python2.7/dist-packages/astrometry/util/image2pnm.py", line 320, in main
mydir, fix_sdss=options.fix_sdss)
File "/usr/lib/python2.7/dist-packages/astrometry/util/image2pnm.py", line 248, in convert_image
(imgtype, errstr) = image2pnm(infile, outfile, sanitized, force_ppm, no_fits2fits, extension, mydir, fix_sdss)
File "/usr/lib/python2.7/dist-packages/astrometry/util/image2pnm.py", line 184, in image2pnm
errstr = fits2fits(infile, sanitized, fix_idr=fix_sdss)
File "/usr/lib/python2.7/dist-packages/astrometry/util/fits2fits.py", line 86, in fits2fits
hdu.scale('int16', '', bscale, bzero)
File "/usr/lib/python2.7/dist-packages/astropy/io/fits/hdu/image.py", line 384, in scale
bzero=bzero, blank=None)
File "/usr/lib/python2.7/dist-packages/astropy/io/fits/hdu/image.py", line 442, in _scale_internal
self.data += -_zero
TypeError: Cannot cast ufunc add output from dtype('int32') to dtype('uint16') with casting rule 'same_kind'
augment-xylist.c:588:backtick Failed to run command: /usr/bin/python -m astrometry.util.image2pnm --sanitized-fits-outfile /tmp/tmp.sanitized.BRcXoK --fix-sdss --infile /[]/image00.fits --uncompressed-outfile /tmp/tmp.uncompressed.E1nqH3 --outfile /tmp/tmp.ppm.MGCTZm --ppm
ioutils.c:567:run_command_get_outputs Command failed: return value 1

Edit, jut realized that I did not tried --no-fits2fits option
Last edit: 5 years 5 months ago by dolguldur. Reason: need to try --no-fits2fits
5 years 5 months ago #30031

Please Log in or Create an account to join the conversation.

Time to create page: 0.474 seconds