dstndstn / astrometry.net

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

Index Error - Not readable too #94

Closed yx1010512 closed 3 years ago

yx1010512 commented 7 years ago

Hi, dustin I met quite a same problem with Issue #43 @mashbudj I'm new to using astrometry.net software too, and I met some troubles When I try to run the code as:

solve-field a.fits

Things not going as expected:

Reading input file 1 of 1: "a.fits"...
Header has 6 cards
Extracting sources...
simplexy: found 479 sources.
Solving...

---------------------------------------------------------------------
You must list at least one index in the config file (/etc/astrometry.cfg)

See http://astrometry.net/use.html about how to get some index files.
---------------------------------------------------------------------

solve-field.c:518:run_engine engine failed.  Command that failed was:
  /usr/bin/astrometry-engine ./a.axy
 ioutils.c:567:run_command_get_outputs Command failed: return value 255

Then I checked the index files

yangxu@ast3:/usr/local/astrometry/data$ ls index-4107.fits

and the astrometry.cfg file

yangxu@ast3:/usr/local/astrometry/etc$ vi astrometry.cfg 
# This is a config file for the Astrometry.net 'astrometry-engine'
# program - it contains information about where indices are stored,
# and "site policy" items.

# Check the indices in parallel?
#
# -if the indices you are using take less than 2 GB of space, and you have at least
#  as much physical memory as indices, then you want this enabled.
#
# -if you are using a 64-bit machine and you have enough physical memory to contain
#  the indices you are using, then you want this enabled.
# 
# -otherwise, leave it commented-out.

inparallel

# If no scale estimate is given, use these limits on field width.
# minwidth 0.1
# maxwidth 180

# If no depths are given, use these:
#depths 10 20 30 40 50 60 70 80 90 100

# Maximum CPU time to spend on a field, in seconds:
# default is 600 (ten minutes), which is probably way overkill.
#cpulimit 300

# In which directories should we search for indices?
add_path /usr/local/astrometry/data

# Load any indices found in the directories listed above.
autoindex

## Or... explicitly list the indices to load.
#index index-219
#index index-218
#index index-217
#index index-216
#index index-215
#index index-214
#index index-213
#index index-212
#index index-211
#index index-210
#index index-209
#index index-208
#index index-207
#index index-206
#index index-205
#index index-204-00
#index index-204-01
#index index-204-02
#index index-204-03
#index index-204-04
#index index-204-05
#index index-204-06
#index index-204-07
#index index-204-08
#index index-204-09
#index index-204-10
#index index-204-11

I think I've made these things right, yet the trouble is still there. Is there anything that I did not notice? Hoping for your help.

Xu NAOC

dstndstn commented 7 years ago

Hi,

Do you have the code installed in /usr/bin or /usr/local/astrometry? It looks like:

/usr/bin/astrometry-engine ./a.axy

which by default would look for the config file /etc/astrometry.cfg (as the error message says: You must list at least one index in the config file (/etc/astrometry.cfg) )

cheers, --dustin

yx1010512 commented 7 years ago

Ah, you are right. I install the code in /usr/bin.

Wait..? I'm not sure

It seems the code is installed in /usr/local/astrometry, but the 'solve-field' is in /usr/bin. What should I do to solve this...?

yx1010512 commented 7 years ago

This is what I have in Astrometry

yangxu@ast3:/media/yangxu/0000-0001$ find /usr/local/astrometry
/usr/local/astrometry
/usr/local/astrometry/share
/usr/local/astrometry/share/man
/usr/local/astrometry/share/man/man1
/usr/local/astrometry/share/man/man1/plotxy.1
/usr/local/astrometry/share/man/man1/fits-flip-endian.1
/usr/local/astrometry/share/man/man1/get-healpix.1
/usr/local/astrometry/share/man/man1/plotquad.1
/usr/local/astrometry/share/man/man1/fitsgetext.1
/usr/local/astrometry/share/man/man1/downsample-fits.1
/usr/local/astrometry/share/man/man1/plot-constellations.1
/usr/local/astrometry/share/man/man1/coadd.1
/usr/local/astrometry/share/man/man1/pad-file.1
/usr/local/astrometry/share/man/man1/wcs-grab.1
/usr/local/astrometry/share/man/man1/wcs-to-tan.1
/usr/local/astrometry/share/man/man1/an-pnmtofits.1
/usr/local/astrometry/share/man/man1/astrometry-engine.1
/usr/local/astrometry/share/man/man1/query-starkd.1
/usr/local/astrometry/share/man/man1/wcsinfo.1
/usr/local/astrometry/share/man/man1/wcs-rd2xy.1
/usr/local/astrometry/share/man/man1/subtable.1
/usr/local/astrometry/share/man/man1/build-astrometry-index.1
/usr/local/astrometry/share/man/man1/fit-wcs.1
/usr/local/astrometry/share/man/man1/get-wcs.1
/usr/local/astrometry/share/man/man1/tabsort.1
/usr/local/astrometry/share/man/man1/an-fitstopnm.1
/usr/local/astrometry/share/man/man1/wcs-pv2sip.1
/usr/local/astrometry/share/man/man1/wcs-match.1
/usr/local/astrometry/share/man/man1/wcs-xy2rd.1
/usr/local/astrometry/share/man/man1/image2xy.1
/usr/local/astrometry/share/man/man1/hpsplit.1
/usr/local/astrometry/share/man/man1/new-wcs.1
/usr/local/astrometry/share/man/man1/fits-guess-scale.1
/usr/local/astrometry/share/man/man1/wcs-resample.1
/usr/local/astrometry/share/man/man1/solve-field.1
/usr/local/astrometry/examples
/usr/local/astrometry/examples/m44-1975-01-18.jpg
/usr/local/astrometry/examples/CREDITS
/usr/local/astrometry/examples/apod5.jpg
/usr/local/astrometry/examples/m44-1910-04-01.jpg
/usr/local/astrometry/examples/apod4.jpg
/usr/local/astrometry/examples/apod2.xyls
/usr/local/astrometry/examples/sdss.xyls
/usr/local/astrometry/examples/sdss.jpg
/usr/local/astrometry/examples/apod3.xyls
/usr/local/astrometry/examples/apod1.jpg
/usr/local/astrometry/examples/apod3.jpg
/usr/local/astrometry/examples/apod2.jpg
/usr/local/astrometry/examples/apod1.xyls
/usr/local/astrometry/examples/apod5.xyls
/usr/local/astrometry/examples/apod4.xyls
/usr/local/astrometry/lib
/usr/local/astrometry/lib/python
/usr/local/astrometry/lib/python/astrometry
/usr/local/astrometry/lib/python/astrometry/blind
/usr/local/astrometry/lib/python/astrometry/blind/plotstuff_c.py
/usr/local/astrometry/lib/python/astrometry/blind/plotann.py
/usr/local/astrometry/lib/python/astrometry/blind/__init__.py
/usr/local/astrometry/lib/python/astrometry/blind/_plotstuff_c.so
/usr/local/astrometry/lib/python/astrometry/blind/plotstuff.py
/usr/local/astrometry/lib/python/astrometry/catalogs
/usr/local/astrometry/lib/python/astrometry/catalogs/ngc2000.py
/usr/local/astrometry/lib/python/astrometry/catalogs/__init__.py
/usr/local/astrometry/lib/python/astrometry/__init__.py
/usr/local/astrometry/lib/python/astrometry/util
/usr/local/astrometry/lib/python/astrometry/util/text2fits.py
/usr/local/astrometry/lib/python/astrometry/util/run_command.py
/usr/local/astrometry/lib/python/astrometry/util/merge-columns.py
/usr/local/astrometry/lib/python/astrometry/util/usnob_get_region.py
/usr/local/astrometry/lib/python/astrometry/util/filetype.py
/usr/local/astrometry/lib/python/astrometry/util/removelines.py
/usr/local/astrometry/lib/python/astrometry/util/image2pnm.py
/usr/local/astrometry/lib/python/astrometry/util/siap.py
/usr/local/astrometry/lib/python/astrometry/util/horizons.py
/usr/local/astrometry/lib/python/astrometry/util/addpath.py
/usr/local/astrometry/lib/python/astrometry/util/miscutils.py
/usr/local/astrometry/lib/python/astrometry/util/resample.py
/usr/local/astrometry/lib/python/astrometry/util/file.py
/usr/local/astrometry/lib/python/astrometry/util/starutil.py
/usr/local/astrometry/lib/python/astrometry/util/shell.py
/usr/local/astrometry/lib/python/astrometry/util/fits2fits.py
/usr/local/astrometry/lib/python/astrometry/util/_util.so
/usr/local/astrometry/lib/python/astrometry/util/__init__.py
/usr/local/astrometry/lib/python/astrometry/util/util.py
/usr/local/astrometry/lib/python/astrometry/util/ttime.py
/usr/local/astrometry/lib/python/astrometry/util/plotutils.py
/usr/local/astrometry/lib/python/astrometry/util/timingpool.py
/usr/local/astrometry/lib/python/astrometry/util/EXIF.py
/usr/local/astrometry/lib/python/astrometry/util/hmstodeg.py
/usr/local/astrometry/lib/python/astrometry/util/multiproc.py
/usr/local/astrometry/lib/python/astrometry/util/votabletofits.py
/usr/local/astrometry/lib/python/astrometry/util/degtohms.py
/usr/local/astrometry/lib/python/astrometry/util/usnob_get_image.py
/usr/local/astrometry/lib/python/astrometry/util/casjobs.py
/usr/local/astrometry/lib/python/astrometry/util/usnob_catalog.py
/usr/local/astrometry/lib/python/astrometry/util/fits.py
/usr/local/astrometry/lib/python/astrometry/util/uniformize.py
/usr/local/astrometry/lib/python/astrometry/util/stages.py
/usr/local/astrometry/lib/python/astrometry/util/plotshift.py
/usr/local/astrometry/lib/python/astrometry/util/fix_sdss_idr.py
/usr/local/astrometry/lib/python/astrometry/util/imageutils.py
/usr/local/astrometry/lib/python/astrometry/util/starutil_numpy.py
/usr/local/astrometry/lib/python/astrometry/util/find_data_file.py
/usr/local/astrometry/lib/python/astrometry/sdss
/usr/local/astrometry/lib/python/astrometry/sdss/dr10.py
/usr/local/astrometry/lib/python/astrometry/sdss/yanny.py
/usr/local/astrometry/lib/python/astrometry/sdss/_cutils.so
/usr/local/astrometry/lib/python/astrometry/sdss/cutils.py
/usr/local/astrometry/lib/python/astrometry/sdss/__init__.py
/usr/local/astrometry/lib/python/astrometry/sdss/sdss_das.py
/usr/local/astrometry/lib/python/astrometry/sdss/common.py
/usr/local/astrometry/lib/python/astrometry/sdss/dr9.py
/usr/local/astrometry/lib/python/astrometry/sdss/runList-dr9.par
/usr/local/astrometry/lib/python/astrometry/sdss/dr8.py
/usr/local/astrometry/lib/python/astrometry/sdss/dr7.py
/usr/local/astrometry/lib/python/astrometry/sdss/runList-dr10.par
/usr/local/astrometry/lib/python/astrometry/sdss/cutout.py
/usr/local/astrometry/lib/python/astrometry/sdss/sdss_name.py
/usr/local/astrometry/lib/python/astrometry/sdss/runList-dr8.par
/usr/local/astrometry/lib/python/astrometry/sdss/fields.py
/usr/local/astrometry/lib/python/astrometry/libkd
/usr/local/astrometry/lib/python/astrometry/libkd/spherematch_c.so
/usr/local/astrometry/lib/python/astrometry/libkd/__init__.py
/usr/local/astrometry/lib/python/astrometry/libkd/spherematch.py
/usr/local/astrometry/lib/libqfits.a
/usr/local/astrometry/lib/libanfiles.a
/usr/local/astrometry/lib/libastrometry.a
/usr/local/astrometry/lib/libanbase.a
/usr/local/astrometry/lib/libanutils.a
/usr/local/astrometry/lib/libastrometry.so
/usr/local/astrometry/lib/libcatalogs.a
/usr/local/astrometry/lib/libkd.a
/usr/local/astrometry/include
/usr/local/astrometry/include/astrometry
/usr/local/astrometry/include/astrometry/fits-guess-scale.h
/usr/local/astrometry/include/astrometry/resample.h
/usr/local/astrometry/include/astrometry/unpermute-stars.h
/usr/local/astrometry/include/astrometry/hd.h
/usr/local/astrometry/include/astrometry/an-endian.h
/usr/local/astrometry/include/astrometry/bl-nl.inc
/usr/local/astrometry/include/astrometry/tycho2-fits.h
/usr/local/astrometry/include/astrometry/constellations.h
/usr/local/astrometry/include/astrometry/image2xy-files.h
/usr/local/astrometry/include/astrometry/scamp-catalog.h
/usr/local/astrometry/include/astrometry/kdtree.h
/usr/local/astrometry/include/astrometry/quad-utils.h
/usr/local/astrometry/include/astrometry/qfits_float.h
/usr/local/astrometry/include/astrometry/qidxfile.h
/usr/local/astrometry/include/astrometry/fitstable.h
/usr/local/astrometry/include/astrometry/qfits_table.h
/usr/local/astrometry/include/astrometry/fitsioutils.h
/usr/local/astrometry/include/astrometry/convolve-image.h
/usr/local/astrometry/include/astrometry/quadfile.h
/usr/local/astrometry/include/astrometry/intmap.h
/usr/local/astrometry/include/astrometry/brightstars.h
/usr/local/astrometry/include/astrometry/usnob-fits.h
/usr/local/astrometry/include/astrometry/mathutil.h
/usr/local/astrometry/include/astrometry/fitsbin.h
/usr/local/astrometry/include/astrometry/allquads.h
/usr/local/astrometry/include/astrometry/ucac4.h
/usr/local/astrometry/include/astrometry/catalog.h
/usr/local/astrometry/include/astrometry/errors.h
/usr/local/astrometry/include/astrometry/qfits_error.h
/usr/local/astrometry/include/astrometry/tic.h
/usr/local/astrometry/include/astrometry/tabsort.h
/usr/local/astrometry/include/astrometry/plotannotations.h
/usr/local/astrometry/include/astrometry/os-features.h
/usr/local/astrometry/include/astrometry/bl.h
/usr/local/astrometry/include/astrometry/nomad.h
/usr/local/astrometry/include/astrometry/qfits_memory.h
/usr/local/astrometry/include/astrometry/log.h
/usr/local/astrometry/include/astrometry/matchobj.h
/usr/local/astrometry/include/astrometry/blindutils.h
/usr/local/astrometry/include/astrometry/bl-sort.h
/usr/local/astrometry/include/astrometry/bl-nl.ph
/usr/local/astrometry/include/astrometry/matchfile.h
/usr/local/astrometry/include/astrometry/fit-wcs.h
/usr/local/astrometry/include/astrometry/plotimage.h
/usr/local/astrometry/include/astrometry/quad-builder.h
/usr/local/astrometry/include/astrometry/image2xy.h
/usr/local/astrometry/include/astrometry/fitsfile.h
/usr/local/astrometry/include/astrometry/an-thread.h
/usr/local/astrometry/include/astrometry/sip_qfits.h
/usr/local/astrometry/include/astrometry/bt.h
/usr/local/astrometry/include/astrometry/healpix-utils.h
/usr/local/astrometry/include/astrometry/sip-utils.h
/usr/local/astrometry/include/astrometry/axyfile.h
/usr/local/astrometry/include/astrometry/rdlist.h
/usr/local/astrometry/include/astrometry/blind.h
/usr/local/astrometry/include/astrometry/unpermute-quads.h
/usr/local/astrometry/include/astrometry/build-index.h
/usr/local/astrometry/include/astrometry/qfits_keywords.h
/usr/local/astrometry/include/astrometry/os-features-config.h
/usr/local/astrometry/include/astrometry/multiindex.h
/usr/local/astrometry/include/astrometry/nomad-fits.h
/usr/local/astrometry/include/astrometry/ucac3.h
/usr/local/astrometry/include/astrometry/plotstuff.h
/usr/local/astrometry/include/astrometry/solver.h
/usr/local/astrometry/include/astrometry/simplexy.h
/usr/local/astrometry/include/astrometry/codetree.h
/usr/local/astrometry/include/astrometry/engine.h
/usr/local/astrometry/include/astrometry/plotgrid.h
/usr/local/astrometry/include/astrometry/healpix.h
/usr/local/astrometry/include/astrometry/wcs-rd2xy.h
/usr/local/astrometry/include/astrometry/2mass.h
/usr/local/astrometry/include/astrometry/starutil.inc
/usr/local/astrometry/include/astrometry/solvedclient.h
/usr/local/astrometry/include/astrometry/wcs-xy2rd.h
/usr/local/astrometry/include/astrometry/qfits_tools.h
/usr/local/astrometry/include/astrometry/tweak2.h
/usr/local/astrometry/include/astrometry/qfits_time.h
/usr/local/astrometry/include/astrometry/qfits_byteswap.h
/usr/local/astrometry/include/astrometry/merge-index.h
/usr/local/astrometry/include/astrometry/resort-xylist.h
/usr/local/astrometry/include/astrometry/hpquads.h
/usr/local/astrometry/include/astrometry/cairoutils.h
/usr/local/astrometry/include/astrometry/starxy.h
/usr/local/astrometry/include/astrometry/simplexy-common.h
/usr/local/astrometry/include/astrometry/qfits_image.h
/usr/local/astrometry/include/astrometry/permutedsort.h
/usr/local/astrometry/include/astrometry/ngc2000.h
/usr/local/astrometry/include/astrometry/an-bool.h
/usr/local/astrometry/include/astrometry/bl.ph
/usr/local/astrometry/include/astrometry/tycho2.h
/usr/local/astrometry/include/astrometry/bl-nl.h
/usr/local/astrometry/include/astrometry/augment-xylist.h
/usr/local/astrometry/include/astrometry/qfits_md5.h
/usr/local/astrometry/include/astrometry/wcs-pv2sip.h
/usr/local/astrometry/include/astrometry/starutil.h
/usr/local/astrometry/include/astrometry/uniformize-catalog.h
/usr/local/astrometry/include/astrometry/dualtree_nearestneighbour.h
/usr/local/astrometry/include/astrometry/an-thread-pthreads.h
/usr/local/astrometry/include/astrometry/dimage.h
/usr/local/astrometry/include/astrometry/codefile.h
/usr/local/astrometry/include/astrometry/new-wcs.h
/usr/local/astrometry/include/astrometry/ioutils.h
/usr/local/astrometry/include/astrometry/verify.h
/usr/local/astrometry/include/astrometry/plotfill.h
/usr/local/astrometry/include/astrometry/scamp.h
/usr/local/astrometry/include/astrometry/gslutils.h
/usr/local/astrometry/include/astrometry/2mass-fits.h
/usr/local/astrometry/include/astrometry/qfits_header.h
/usr/local/astrometry/include/astrometry/starkd.h
/usr/local/astrometry/include/astrometry/index.h
/usr/local/astrometry/include/astrometry/qfits_rw.h
/usr/local/astrometry/include/astrometry/an-opts.h
/usr/local/astrometry/include/astrometry/usnob.h
/usr/local/astrometry/include/astrometry/kdtree_fits_io.h
/usr/local/astrometry/include/astrometry/keywords.h
/usr/local/astrometry/include/astrometry/anwcs.h
/usr/local/astrometry/include/astrometry/solvedfile.h
/usr/local/astrometry/include/astrometry/coadd.h
/usr/local/astrometry/include/astrometry/tweak.h
/usr/local/astrometry/include/astrometry/anqfits.h
/usr/local/astrometry/include/astrometry/qfits_convert.h
/usr/local/astrometry/include/astrometry/ctmf.h
/usr/local/astrometry/include/astrometry/ngcic-accurate.h
/usr/local/astrometry/include/astrometry/bl.inc
/usr/local/astrometry/include/astrometry/fileutils.h
/usr/local/astrometry/include/astrometry/plotoutline.h
/usr/local/astrometry/include/astrometry/qfits_std.h
/usr/local/astrometry/include/astrometry/qfits_card.h
/usr/local/astrometry/include/astrometry/xylist.h
/usr/local/astrometry/include/astrometry/plotxy.h
/usr/local/astrometry/include/astrometry/codekd.h
/usr/local/astrometry/include/astrometry/sip.h
/usr/local/astrometry/include/astrometry/constellation-boundaries.h
/usr/local/astrometry/include/astrometry/dualtree.h
/usr/local/astrometry/include/astrometry/dualtree_rangesearch.h
/usr/local/astrometry/data
/usr/local/astrometry/data/index-4107.fits
/usr/local/astrometry/bin
/usr/local/astrometry/bin/text2fits.py
/usr/local/astrometry/bin/query-starkd
/usr/local/astrometry/bin/plotann.py
/usr/local/astrometry/bin/tabmerge
/usr/local/astrometry/bin/an-pnmtofits
/usr/local/astrometry/bin/merge-columns.py
/usr/local/astrometry/bin/an-fitstopnm
/usr/local/astrometry/bin/wcs-resample
/usr/local/astrometry/bin/wcs-rd2xy
/usr/local/astrometry/bin/removelines.py
/usr/local/astrometry/bin/downsample-fits
/usr/local/astrometry/bin/get-wcs
/usr/local/astrometry/bin/fitsgetext
/usr/local/astrometry/bin/image2pnm.py
/usr/local/astrometry/bin/wcs-match
/usr/local/astrometry/bin/plotxy
/usr/local/astrometry/bin/get-healpix
/usr/local/astrometry/bin/tabsort
/usr/local/astrometry/bin/tablist
/usr/local/astrometry/bin/image2xy
/usr/local/astrometry/bin/imcopy
/usr/local/astrometry/bin/fits2fits.py
/usr/local/astrometry/bin/astrometry-engine
/usr/local/astrometry/bin/subtable
/usr/local/astrometry/bin/wcs-grab
/usr/local/astrometry/bin/pad-file
/usr/local/astrometry/bin/fit-wcs
/usr/local/astrometry/bin/fits-column-merge
/usr/local/astrometry/bin/solve-field
/usr/local/astrometry/bin/new-wcs
/usr/local/astrometry/bin/hpsplit
/usr/local/astrometry/bin/imstat
/usr/local/astrometry/bin/wcs-pv2sip
/usr/local/astrometry/bin/hmstodeg.py
/usr/local/astrometry/bin/votabletofits.py
/usr/local/astrometry/bin/fitscopy
/usr/local/astrometry/bin/degtohms.py
/usr/local/astrometry/bin/listhead
/usr/local/astrometry/bin/fits-guess-scale
/usr/local/astrometry/bin/wcsinfo
/usr/local/astrometry/bin/plotquad
/usr/local/astrometry/bin/liststruc
/usr/local/astrometry/bin/build-astrometry-index
/usr/local/astrometry/bin/wcs-xy2rd
/usr/local/astrometry/bin/wcs-to-tan
/usr/local/astrometry/bin/uniformize.py
/usr/local/astrometry/bin/modhead
/usr/local/astrometry/bin/plot-constellations
/usr/local/astrometry/bin/fits-flip-endian
/usr/local/astrometry/bin/imarith
/usr/local/astrometry/etc
/usr/local/astrometry/etc/astrometry.cfg
/usr/local/astrometry/doc
/usr/local/astrometry/doc/CREDITS
/usr/local/astrometry/doc/README.md
/usr/local/astrometry/doc/report.txt
/usr/local/astrometry/doc/LICENSE

It seems I do install it in /usr/local/astrometry, but the "solve-field" is in /usr/bin, what's going wrong~?

dstndstn commented 7 years ago

I also see a solve-field in your listing of /usr/local/astrometry/bin -- any chance you have a previous installation in /usr/bin?

yx1010512 commented 7 years ago

I remembered... I do installed it once with apt-get, and I forgot that. Well... I tried to solve it but I didn't make it. So... I created the folder /etc and copy the astrometry.cfg to it and... It seems everything is going well.... So I think I solved this problem...?

dstndstn commented 7 years ago

That means you're running solve-field from one install and astrometry-engine from another install... not ideal but if it works then ok...