Index files

66 views
Skip to first unread message

Abdullah Qureshi

unread,
Apr 8, 2025, 2:22:32 PMApr 8
to astrometry
Hi,
Currently using wsl.

just transfered my files to RPI
resetting up my astronomy.net on the RPI 

i put the index files in /usr/share/astronomy 

but it is still not working:


---------------------------------------------------------------------
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.
---------------------------------------------------------------------

Thank you

Dustin Lang

unread,
Apr 8, 2025, 2:25:12 PMApr 8
to Abdullah Qureshi, astrometry
What is in your /etc/astrometry.cfg file?

Is it possible you need to name the directory /usr/share/astrometry (astroMETRY not astroNOMY)?

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.
To view this discussion visit https://groups.google.com/d/msgid/astrometry/0bd38b61-a39b-4557-bf6c-e210fbada5a7n%40googlegroups.com.

Dustin Lang

unread,
Apr 8, 2025, 2:47:41 PMApr 8
to Abdullah Qureshi, astrometry
Can you also run solve-field, adding a "-v" (verbose) and send the full output?
thanks,
dustin

Abdullah Qureshi

unread,
Apr 8, 2025, 2:50:39 PMApr 8
to astrometry

Reading input file 1 of 1: "Screenshot1.png"...
Base: "./Screenshot1", basefile "Screenshot1.png", basedir ".", suffix "png"
Checking if file "Screenshot1.png" ext 0 is xylist or image: image
  (not xyls because: Failed to open FITS table Screenshot1.png: Failed to open FITS file "Screenshot1.png")
Running: /usr/bin/python3 -m astrometry.util.image2pnm --infile Screenshot1.png --uncompressed-outfile /tmp/tmp.uncompressed.XOygrb --outfile /tmp/tmp.ppm.o5XQN3 --ppm --mydir /usr/bin/solve-field
  png
Running: pnmfile /tmp/tmp.ppm.o5XQN3
Converting PPM image to FITS...
Running: ppmtopgm /tmp/tmp.ppm.o5XQN3 | /usr/bin/an-pnmtofits > /tmp/tmp.fits.itrzmp
Read file stdin: 1920 x 1080 pixels x 1 color(s); maxval 255
Using 8-bit output
Extracting sources...
Running image2xy: input=/tmp/tmp.fits.itrzmp, output=/tmp/tmp.xyls.nJnfVJ, ext=0
nhdus=1
Got naxis=2, na1=1920, na2=1080
simplexy: nx=1920, ny=1080
simplexy: dpsf=1.000000, plim=4.000000, dlim=1.000000, saddle=2.000000
simplexy: maxper=1000, maxnpeaks=100000, maxsize=2000, halfbox=100
simplexy: median smoothing...
simplexy: measuring image noise (sigma)...
Sampling sigma at 5184 points
Nsigma=0.7, s=0
Nsigma=0.8, s=0.883883
simplexy: found sigma=0.883883.
simplexy: finding objects...
simplexy: found 814 blobs
simplexy: finding peaks...
Failed to find (5x5) centroid of peak 6, subpeak 3 at (1889,22)
Failed to find (5x5) centroid of peak 6, subpeak 9 at (1819,18)
Failed to find (5x5) centroid of peak 6, subpeak 11 at (1804,31)
Failed to find (5x5) centroid of peak 6, subpeak 12 at (1804,18)
Failed to find (5x5) centroid of peak 6, subpeak 14 at (1819,31)
Failed to find (5x5) centroid of peak 6, subpeak 15 at (1816,21)
Failed to find (5x5) centroid of peak 6, subpeak 16 at (1807,21)
Failed to find (3x3) centroid of peak 6, subpeak 18 at (1918,50), and too close to edge for 5x5
Failed to find (5x5) centroid of peak 7, subpeak 0 at (179,6)
Failed to find (5x5) centroid of peak 232, subpeak 1 at (19,281)
Failed to find (5x5) centroid of peak 232, subpeak 3 at (14,288)
Failed to find (5x5) centroid of peak 255, subpeak 1 at (133,317)
Failed to find (3x3) centroid of peak 257, subpeak 1 at (24,303), and too close to edge for 5x5
Failed to find (5x5) centroid of peak 329, subpeak 2 at (21,401)
Failed to find (5x5) centroid of peak 371, subpeak 5 at (550,495)
Failed to find (5x5) centroid of peak 585, subpeak 1 at (14,755)
Failed to find (5x5) centroid of peak 629, subpeak 0 at (14,804)
Failed to find (5x5) centroid of peak 645, subpeak 0 at (27,817)
Failed to find (5x5) centroid of peak 747, subpeak 1 at (3,969)
Failed to find (5x5) centroid of peak 747, subpeak 2 at (23,980)
Failed to find (5x5) centroid of peak 802, subpeak 5 at (501,1072)
Failed to find (5x5) centroid of peak 802, subpeak 9 at (740,1069)
Failed to find (5x5) centroid of peak 802, subpeak 12 at (583,1069)
Failed to find (5x5) centroid of peak 802, subpeak 52 at (496,1067)
Failed to find (5x5) centroid of peak 802, subpeak 54 at (809,1071)
Failed to find (5x5) centroid of peak 802, subpeak 56 at (826,1071)
Failed to find (5x5) centroid of peak 802, subpeak 57 at (805,1067)
Failed to find (5x5) centroid of peak 802, subpeak 58 at (815,1067)
Failed to find (5x5) centroid of peak 802, subpeak 60 at (822,1067)
Failed to find (5x5) centroid of peak 802, subpeak 65 at (798,1067)
Failed to find (5x5) centroid of peak 802, subpeak 66 at (499,1068)
Failed to find (5x5) centroid of peak 802, subpeak 68 at (660,1071)
Failed to find (5x5) centroid of peak 802, subpeak 71 at (685,1071)
Failed to find (5x5) centroid of peak 802, subpeak 72 at (772,1072)
Failed to find (5x5) centroid of peak 802, subpeak 78 at (496,1071)
Failed to find (5x5) centroid of peak 802, subpeak 81 at (656,1067)
Failed to find (5x5) centroid of peak 802, subpeak 82 at (815,1071)
Failed to find (5x5) centroid of peak 802, subpeak 83 at (798,1071)
Failed to find (5x5) centroid of peak 802, subpeak 84 at (202,1071)
Failed to find (5x5) centroid of peak 802, subpeak 85 at (681,1067)
Failed to find (5x5) centroid of peak 802, subpeak 86 at (699,1067)
Failed to find (5x5) centroid of peak 802, subpeak 87 at (653,1067)
Failed to find (5x5) centroid of peak 802, subpeak 89 at (158,1071)
Failed to find (5x5) centroid of peak 802, subpeak 95 at (503,1068)
Failed to find (5x5) centroid of peak 802, subpeak 96 at (198,1067)
Failed to find (5x5) centroid of peak 802, subpeak 97 at (681,1071)
Failed to find (5x5) centroid of peak 802, subpeak 98 at (699,1071)
Failed to find (5x5) centroid of peak 802, subpeak 99 at (725,1071)
Failed to find (5x5) centroid of peak 802, subpeak 100 at (154,1067)
Failed to find (5x5) centroid of peak 802, subpeak 102 at (90,1069)
Failed to find (5x5) centroid of peak 802, subpeak 106 at (154,1071)
Failed to find (5x5) centroid of peak 802, subpeak 107 at (198,1071)
Failed to find (5x5) centroid of peak 802, subpeak 113 at (696,1070)
Failed to find (5x5) centroid of peak 802, subpeak 114 at (151,1070)
Failed to find (5x5) centroid of peak 802, subpeak 130 at (353,1071)
simplexy: found 1075 sources.
Removing lines of (spurious) sources from xylist "/tmp/tmp.xyls.nJnfVJ", writing to "/tmp/tmp.removelines.7VLE7p"
Running: /usr/bin/python3 -m astrometry.util.removelines /tmp/tmp.xyls.nJnfVJ /tmp/tmp.removelines.7VLE7p
removelines.py: Removed 96 sources
Sorting file "/tmp/tmp.removelines.7VLE7p" to "/tmp/tmp.sorted.xBYPTc" using columns flux (FLUX) and background (BACKGROUND), descending
Running: /usr/bin/python3 -m astrometry.util.uniformize -n 10 /tmp/tmp.sorted.xBYPTc /tmp/tmp.uniform.NkDxoq
Uniformizing into 4 x 2 bins
Image bounds: x [2.68082,1919], y [2.46369,1078.65]
Writing headers to file ./Screenshot1.axy
Copying data block of file /tmp/tmp.uniform.NkDxoq to output ./Screenshot1.axy.
Deleting temp file /tmp/tmp.uncompressed.XOygrb
Deleting temp file /tmp/tmp.xyls.nJnfVJ
Deleting temp file /tmp/tmp.removelines.7VLE7p
Deleting temp file /tmp/tmp.sorted.xBYPTc
Deleting temp file /tmp/tmp.uniform.NkDxoq
Running: /usr/bin/plotxy -I /tmp/tmp.ppm.o5XQN3 -i ./Screenshot1.axy -C red -w 2 -N 50 -x 1 -y 1 -P | /usr/bin/plotxy -i ./Screenshot1.axy -I - -w 2 -r 3 -C red -n 50 -N 200 -x 1 -y 1 > ./Screenshot1-objs.png
Solving...
Running:
  /usr/bin/astrometry-engine --verbose ./Screenshot1.axy
Config file "/usr/bin/../etc/astrometry.cfg" doesn't exist.
Using config file "/etc/astrometry.cfg"
Auto-indexing directory "/usr/share/astrometry" ...
Checking file "/usr/share/astrometry/index-4110.fits"
Index name "/usr/share/astrometry/index-4110.fits" is readable, using as index filename
File is not an index: Index file /usr/share/astrometry/index-4110.fits is not FITS.

Skipping directory /usr/share/astrometry/..
Checking file "/usr/share/astrometry/index-4112.fits"
Index name "/usr/share/astrometry/index-4112.fits" is readable, using as index filename
File is not an index: Index file /usr/share/astrometry/index-4112.fits is not FITS.

Checking file "/usr/share/astrometry/index-4118.fits"
Index name "/usr/share/astrometry/index-4118.fits" is readable, using as index filename
File is not an index: Index file /usr/share/astrometry/index-4118.fits is not FITS.

Checking file "/usr/share/astrometry/index-4108.fits"
Index name "/usr/share/astrometry/index-4108.fits" is readable, using as index filename
File is not an index: Index file /usr/share/astrometry/index-4108.fits is not FITS.

Checking file "/usr/share/astrometry/index-4113.fits"
Index name "/usr/share/astrometry/index-4113.fits" is readable, using as index filename
File is not an index: Index file /usr/share/astrometry/index-4113.fits is not FITS.

Checking file "/usr/share/astrometry/index-4114.fits"
Index name "/usr/share/astrometry/index-4114.fits" is readable, using as index filename
File is not an index: Index file /usr/share/astrometry/index-4114.fits is not FITS.

Skipping directory /usr/share/astrometry/.
Checking file "/usr/share/astrometry/index-4111.fits"
Index name "/usr/share/astrometry/index-4111.fits" is readable, using as index filename
File is not an index: Index file /usr/share/astrometry/index-4111.fits is not FITS.

Checking file "/usr/share/astrometry/index-4109.fits"
Index name "/usr/share/astrometry/index-4109.fits" is readable, using as index filename
File is not an index: Index file /usr/share/astrometry/index-4109.fits is not FITS.

Checking file "/usr/share/astrometry/index-4107.fits"
Index name "/usr/share/astrometry/index-4107.fits" is readable, using as index filename
File is not an index: Index file /usr/share/astrometry/index-4107.fits is not FITS.

Checking file "/usr/share/astrometry/index-4119.fits"
Index name "/usr/share/astrometry/index-4119.fits" is readable, using as index filename
File is not an index: Index file /usr/share/astrometry/index-4119.fits is not FITS.

Checking file "/usr/share/astrometry/index-4117.fits"
Index name "/usr/share/astrometry/index-4117.fits" is readable, using as index filename
File is not an index: Index file /usr/share/astrometry/index-4117.fits is not FITS.

Checking file "/usr/share/astrometry/index-4116.fits"
Index name "/usr/share/astrometry/index-4116.fits" is readable, using as index filename
File is not an index: Index file /usr/share/astrometry/index-4116.fits is not FITS.

Checking file "/usr/share/astrometry/index-4115.fits"
Index name "/usr/share/astrometry/index-4115.fits" is readable, using as index filename
File is not an index: Index file /usr/share/astrometry/index-4115.fits is not FITS.




---------------------------------------------------------------------
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:519:run_engine engine failed.  Command that failed was:
  /usr/bin/astrometry-engine --verbose ./Screenshot1.axy
 ioutils.c:568:run_command_get_outputs Command failed: return value 255

Dustin Lang

unread,
Apr 8, 2025, 2:54:41 PMApr 8
to Abdullah Qureshi, astrometry
Thanks -- it looks like the index files didn't download correctly.

Make sure your web browser or whatever downloads them as binary files (not text).

I just added a "md5sums.txt" file
which you could use to verify your downloads.

cheers,
dustin



Abdullah Qureshi

unread,
Apr 8, 2025, 3:51:45 PMApr 8
to astrometry
Thanks it works now.

I have also made a script to automatically download into the folder if interested: 
nano Index-4100.sh
chmod +x Index-4100.sh
sudo ./Index-4100.sh


#!/bin/bash
# This script downloads astrometry.net 4100-series index files (4107-4119)
# into /usr/share/astrometry. It checks whether each file already exists,
# and only downloads those that are not found.
# This script must be run as root.


if [ "$EUID" -ne 0 ]; then
    echo "This script must be run as root (try using sudo)."
    exit 1
fi

DEST="/usr/share/astrometry"

if [ ! -d "$DEST" ]; then
    echo "Directory $DEST does not exist. Creating it..."
    mkdir -p "$DEST"
    if [ $? -ne 0 ]; then
        echo "Failed to create $DEST. Exiting."
        exit 1
    fi
fi


for INDEX_NUM in {4107..4119}; do
    FILE="index-${INDEX_NUM}.fits"
    FILE_PATH="${DEST}/${FILE}"
    URL="${BASE_URL}/${FILE}"
   
    if [ -f "$FILE_PATH" ]; then
        echo "${FILE} already exists at ${DEST}; skipping download."
    else
        echo "Downloading ${FILE} from ${URL}..."
        wget -O "$FILE_PATH" "$URL"
        if [ $? -ne 0 ]; then
            echo "Error downloading ${FILE}. Exiting."
            exit 1
        fi
    fi
done

echo "Download complete! All files are present in ${DEST}."

Reply all
Reply to author
Forward
0 new messages