×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Offline plate solve

  • Posts: 55
  • Thank you received: 1

Offline plate solve was created by Giovanni

Hello,
I'm trying to setup Ekos for my equipment but I'm having some problem with plate solving. I use an ED80 (80mm, 510 focal-length, 5.20 micron pixel size) and I downloaded indexes files from astronometry with index between 4200-08 to 4200-12 in /usr/share/data. CCD tsb configuration is correct.
This is my astronometry.cfg file:

# 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/share/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
#index index-203-00
#index index-203-01
#index index-203-02
#index index-203-03
#index index-203-04
#index index-203-05
#index index-203-06
#index index-203-07
#index index-203-08
#index index-203-09
#index index-203-10
#index index-203-11
#index index-202-00
#index index-202-01
#index index-202-02
#index index-202-03
#index index-202-04
#index index-202-05
#index index-202-06
#index index-202-07
#index index-202-08
#index index-202-09
#index index-202-10
#index index-202-11
#index index-201-00
#index index-201-01
#index index-201-02
#index index-201-03
#index index-201-04
#index index-201-05
#index index-201-06
#index index-201-07
#index index-201-08
#index index-201-09
#index index-201-10
#index index-201-11
#index index-200-00
#index index-200-01
#index index-200-02
#index index-200-03
#index index-200-04
#index index-200-05
#index index-200-06
#index index-200-07
#index index-200-08
#index index-200-09
#index index-200-10
#index index-200-11


I tried to solve this pic :
www.mediafire.com/view/xo4zgt7ndbxgh07/L...ISO800_600s__16C.JPG

I (sometimes) succeeded online but I've never got to solve it offline. I also tried by command line and this is the output:

giovanni@Beagle-NC10Xubu:~$ /usr/bin/solve-field --no-verify --no-plots --no-fits2fits --resort --downsample 2 -O -L 34.0981 -H 47.1093 -u aw -3 13.25 -4 56.6167 -5 30 /home/giovanni/Scrivania/L_2015-11-06_19-23-11_3969_ISO800_600s__16C.JPG
Reading input file 1 of 1: "/home/giovanni/Scrivania/L_2015-11-06_19-23-11_3969_ISO800_600s__16C.JPG"...
jpegtopnm: WRITING PPM FILE
Read file stdin: 4272 x 2848 pixels x 1 color(s); maxval 255
Using 8-bit output
Extracting sources...
Downsampling by 2...
Illegal instruction (core dumped)

Do you have any idea about get it right?

Thanks,
Giovanni.
8 years 4 weeks ago #7351

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

  • Posts: 456
  • Thank you received: 76

Replied by Derek on topic Offline plate solve

So it looks like it fails even when you use solve-field from the command line...
How did you install astrometery.net? Also what is it running on? (x86/ARM)

I run the offline server on an intel i5 running kubuntu and it works really well. I installed from the ubuntu repositories.
The only time I have problems is if I go messing with the command line arguments in Ekos. Resetting these usually fixes it for me but I think you have a problem with the installation of the binaries themselves.

Derek
8 years 4 weeks ago #7356

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

Replied by Jasem Mutlaq on topic Offline plate solve

Yeah it's crashing (core dumped). Please install astrometry.net from the official Ubuntu repo.
8 years 4 weeks ago #7357

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

  • Posts: 55
  • Thank you received: 1

Replied by Giovanni on topic Offline plate solve

No way of get image solved: I unistalled indi-full, kstars-bleeding, astrometry.net, I removed previous repository of astrometry to force using the official ubuntu one. I installed all from scratch and tried again to solve. Always core dump. I give up ...
8 years 2 weeks ago #7551

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

Replied by Jasem Mutlaq on topic Offline plate solve

If you have TeamViewer, send me the credentials and I can check it out.
8 years 2 weeks ago #7552

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

  • Posts: 226
  • Thank you received: 88

Replied by Jean-Luc on topic Offline plate solve

Hi,
Do you run on an ARM processor (Beagle in your machine name makes me think of this) ?
In this case, the 'Illegal instruction' you get when running the solver may come from an erroneous target processor architecture used when compiling (or a mistake when installing the package). Check your processor architecture (v4, v4te, v5, v6 v7, ...) and the architecture of the binary itself (with nm or objdump, don't remember).
8 years 2 weeks ago #7559

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

  • Posts: 55
  • Thank you received: 1

Replied by Giovanni on topic Offline plate solve

Hello,
it's a netbook based on Intel Atom, Beagle is to celebrate the unlucky European probe crashed on Mars...
8 years 2 weeks ago #7560

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

Replied by Jasem Mutlaq on topic Offline plate solve

It could be related to Atom platform. Try to compile astrometry.net
git clone https://github.com/dstndstn/astrometry.net.git
cd astrometry.net
sudo make install INSTALL_DIR=/usr FINAL_DIR=/usr ETC_INSTALL_DIR=/etc DATA_FINAL_DIR=/usr/share/astrometry DATA_INSTALL_DIR=/usr/share/astrometry SYSTEM_GSL=yes py extra

Remove astrometry.net first
The following user(s) said Thank You: Giovanni
8 years 2 weeks ago #7563

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

  • Posts: 55
  • Thank you received: 1

Replied by Giovanni on topic Offline plate solve

Thanks, I'll keep you update.

Giovanni
8 years 2 weeks ago #7564

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

  • Posts: 200
  • Thank you received: 57

Replied by Paweł on topic Offline plate solve

The field solves with the index-4109.fits file. Check if you have this datafile installed.
The 41xx files are used for wide-field images and they are in separate directory: broiler.astrometry.net/~dstn/4100/
The field looks difficult. The online solver takes a while to solve it. Offline it solved for me with (but it took a while):
solve-field --downsample 2 --tweak-order 2 --scale-units degwidth --scale-low 0.2 --scale-high 10 :
  log-odds ratio 96.7726 (1.06614e+42), 19 match, 0 conflict, 37 distractors, 76 index.
  RA,Dec = (13.1937,56.6239), pixel scale 2.03574 arcsec/pix.
  Hit/miss:   Hit/miss: -+++-+-++--+-++--+-+-----++--+-----+-+-----+---+-------+(best)---------------------------------+----------
Field 1: solved with index index-4109.fits.
Field 1 solved: writing to file ./L_2015-11-06_19-23-11_3969_ISO800_600s__16C.solved to indicate this.
Field: L_2015-11-06_19-23-11_3969_ISO800_600s__16C.JPG
Field center: (RA,Dec) = (13.193573, 56.622761) deg.
Field center: (RA H:M:S, Dec D:M:S) = (00:52:46.458, +56:37:21.940).
Field size: 2.4161 x 1.61054 degrees
Field rotation angle: up is 88.6021 degrees E of N
Creating new FITS file "./L_2015-11-06_19-23-11_3969_ISO800_600s__16C.new"...
Creating index object overlay plot...
Creating annotation plot...
Your field contains:
  The star ηCas

It works even better (faster) with: --downsample 4 or 8
I have tested it on my RasPi2 and it solves but majority of the time is consumed by down sampling and other image manipulations. RasPi2 is simply not powerful enough to do it effectively, I guess.


I have tested it on my RasPi2 and it solves
The following user(s) said Thank You: Giovanni
Last edit: 8 years 2 weeks ago by Paweł. Reason: Code block added and RasPi2 comment
8 years 2 weeks ago #7573

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

  • Posts: 55
  • Thank you received: 1

Replied by Giovanni on topic Offline plate solve

Hello,
I tried compiling and I got this error:
make[1]: Entering directory '/home/giovanni/astrometry.net/astrometry.net/util'
gcc -o sip-utils.o -g -Wall -ffinite-math-only -fno-signaling-nans -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fpic -Winline -I../include -I../include/astrometry -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DAN_GIT_REVISION='"0.67-37-g80dff26"' -DAN_GIT_DATE='"Mon_Apr_4_15:53:49_2016_+0000"' -DAN_GIT_URL='"github.com/dstndstn/astrometry.net"' -I../util -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libpng12 -I../include -I../include/astrometry -I../include -I../include/astrometry -I. -c sip-utils.c
sip-utils.c:10:35: fatal error: gsl/gsl_matrix_double.h: No such file or directory
compilation terminated.
Makefile:85: recipe for target 'sip-utils.o' failed
make[1]: *** [sip-utils.o] Error 1
make[1]: Leaving directory '/home/giovanni/astrometry.net/astrometry.net/util'
Makefile:61: recipe for target 'subdirs' failed
make: *** [subdirs] Error 2

As far as I can see it seem gls is missing so I installed :
sudo apt-get install libglm-dev

I still had the problem so I installed prerequisites for astronometry:
sudo apt-get install libcairo2-dev libnetpbm10-dev netpbm libpng12-dev libjpeg-dev python-numpy python-pyfits python-dev zlib1g-dev libbz2-dev swig cfitsio-dev

But I still have the error.
Any suggestion?

Thanks,
Giovanni.
8 years 2 weeks ago #7604

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

  • Posts: 171
  • Thank you received: 41

Replied by Christian on topic Offline plate solve

You have to install the gsl (and matching -dev package), not gls or glm.
The following user(s) said Thank You: Giovanni
8 years 2 weeks ago #7605

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

Time to create page: 0.577 seconds