jusas / astrometry-api-lite Goto Github PK
View Code? Open in Web Editor NEWAstrometry.net API lite
License: MIT License
Astrometry.net API lite
License: MIT License
Thanks a lot for working on the fixes you've implemented so far. This is really a great project as an alternative to ansvr.
That said, is there a way similar to ansvr to have it only look at N number of stars extracted from the image? I can get a solve much faster by tweaking those settings with ansvr. If not, that'd be an awesome feature.
Cheers!
David
Any idea on this one?
[Jobs] Checked out work item 4
[Jobs] calling: solve-field -D /tmp/astrometry-temp/4 -o 4 --wcs /tmp/astrometry-temp/4/wcs -S /tmp/astrometry-temp/4/solved -l 300 --scale-units arcsecperpix --scale-low 0 --scale-high 5.0440000000000005 --temp-dir /tmp/astrometry-temp/4/solver-temp /tmp/astrometry-queue/667307717fc0a18c7f2714e0b7bf81d7.fits
[Jobs] Reading input file 1 of 1: "/tmp/astrometry-queue/667307717fc0a18c7f2714e0b7bf81d7.fits"...
[Jobs] Nothing to process
[Jobs] Nothing to process
[Jobs] Worker exiting
[Jobs] Worker exiting
[Jobs] Nothing to process
[Jobs] Worker exiting
[Jobs] Active worker count: 3/4
[Jobs] Active worker count: 2/4
[Jobs] Active worker count: 1/4
[Api] POST /api/submissions/4 200 3.159 ms
[Api] POST /api/jobs/4 200 3.398 ms
[Api] POST /api/jobs/4 200 2.929 ms
[Api] POST /api/jobs/4 200 2.905 ms
[Api] POST /api/jobs/4 200 3.302 ms
[Api] POST /api/jobs/4 200 3.499 ms
[Api] POST /api/jobs/4 200 3.006 ms
[Jobs] Header has 11 cards
[Jobs] Traceback (most recent call last):
[Jobs] File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
[Jobs] "main", fname, loader, pkg_name)
[Jobs] File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
[Jobs] exec code in run_globals
[Jobs] File "/usr/lib/python2.7/dist-packages/astrometry/util/image2pnm.py", line 323, in
[Jobs] sys.exit(main())
[Jobs] File "/usr/lib/python2.7/dist-packages/astrometry/util/image2pnm.py", line 320, in main
[Jobs] mydir, fix_sdss=options.fix_sdss)
[Jobs] File "/usr/lib/python2.7/dist-packages/astrometry/util/image2pnm.py", line 248, in convert_image
[Jobs] (imgtype, errstr) = image2pnm(infile, outfile, sanitized, force_ppm, no_fits2fits, extension, mydir, fix_sdss)
[Jobs] File "/usr/lib/python2.7/dist-packages/astrometry/util/image2pnm.py", line 184, in image2pnm
[Jobs] errstr = fits2fits(infile, sanitized, fix_idr=fix_sdss)
[Jobs] File "/usr/lib/python2.7/dist-packages/astrometry/util/fits2fits.py", line 86, in fits2fits
[Jobs] hdu.scale('int16', '', bscale, bzero)
[Jobs] File "/usr/lib/python2.7/dist-packages/astropy/io/fits/hdu/image.py", line 384, in scale
[Jobs] bzero=bzero, blank=None)
[Jobs] File "/usr/lib/python2.7/dist-packages/astropy/io/fits/hdu/image.py", line 442, in _scale_internal
[Jobs] self.data += -_zero
[Jobs] TypeError:
[Jobs] Cannot cast ufunc add output from dtype('int32') to dtype('uint16') with casting rule 'same_kind'
[Jobs] augment-xylist.c:588:backtick Failed to run command: /usr/bin/python -m astrometry.util.image2pnm --sanitized-fits-outfile /tmp/astrometry-temp/4/solver-temp/tmp.sanitized.Lj05Q8 --fix-sdss --infile /tmp/astrometry-queue/667307717fc0a18c7f2714e0b7bf81d7.fits --uncompressed-outfile /tmp/astrometry-temp/4/solver-temp/tmp.uncompressed.9SS97t --outfile /tmp/astrometry-temp/4/solver-temp/tmp.ppm.vzOipP --ppm
[Jobs] ioutils.c:567:run_command_get_outputs Command failed: return value 1
[Jobs] Child process exited with code 255
[Jobs] Solve-field failed
[Jobs] Job marked as failure, error information updated
[Jobs] Cleaning up /tmp/astrometry-temp/4
[Jobs] Worker exiting
[Jobs] Active worker count: 0/4
I already had the fits index files I need from ansvr. I didn't select to install any. Where do I place these fits files for Astrometry-api-lite to work?
I see this in the docs: /indexes.
So I'm assuming mine would be C:\astrometry-api-lite\indexes?
Thanks!
hi I'm using astrometry-api-lite from client application MountWizzard.
When I'm trying to solve for an image I get an error:
TypeError: Cannot cast ufunc add output from dtype('int32') to dtype('uint16') with casting rule 'same_kind'
Seems the format of my fit file name is not correct.
Attached the full dump of the manager.
astrometry-api-lite_dump.log
POST /api/login 200 15.100 ms ValidateError { fields: { 'model.request-json': { message: '\'request-json\' is a required', value: undefined } }, message: '', status: 400, name: 'ValidateError' } POST /api/upload 400 4.892 ms
Hi Jussi,
I installed latest 1.2 version with script to Ubuntu18.04. Worked fine. I got latest astropy 2.0.6 installed -> great.
Server is running. When I start to solve an image, I get the following log entry and a not solved image.
Jun 20 21:34:37 ASTRO-MOUNT astrometry-api-lite-mgr[7830]: Checking for a work item...
Jun 20 21:34:38 ASTRO-MOUNT astrometry-api-lite-mgr[7830]: Checked out work item 3
Jun 20 21:34:38 ASTRO-MOUNT astrometry-api-lite-mgr[7830]: calling: solve-field -D /tmp/astrometry-temp/3 -o 3 --wcs /tmp/astrometry-temp/3/wcs -S /tmp/astrometry-temp/3/solved -l 300 --no-plots --scale-units arcsecperpix --scale-low 0.6560705679862305 --scale-high 1.9682117039586915 --ra 315.5070083333334 --dec 67.88426555555556 --radius 2 --downsample 2 --crpix-center --temp-dir /tmp/astrometry-temp/3/solver-temp /tmp/astro-upload/4c9c1e66b63d1fc6703971a72299c852.fit
Jun 20 21:34:38 ASTRO-MOUNT astrometry-api-lite-mgr[7830]: Spawned pid 8343
Jun 20 21:34:38 ASTRO-MOUNT astrometry-api-lite-mgr[7830]: Reading input file 1 of 1: "/tmp/astro-upload/4c9c1e66b63d1fc6703971a72299c852.fit"...
Jun 20 21:34:38 ASTRO-MOUNT astrometry-api-lite[7796]: GET /api/submissions/3 200 13.110 ms
Jun 20 21:34:38 ASTRO-MOUNT astrometry-api-lite[7796]: GET /api/jobs/3 200 13.133 ms
Jun 20 21:34:39 ASTRO-MOUNT astrometry-api-lite-mgr[7830]: ERROR: Image type not recognized: Unknown image type "["cannot open `/tmp/astro-upload/4c9c1e66b63d1fc6703971a72299c852.fit' (No such file or directory)"]"
Jun 20 21:34:39 ASTRO-MOUNT astrometry-api-lite-mgr[7830]: augment-xylist.c:589:backtick Failed to run command: /usr/bin/python -m astrometry.util.image2pnm --infile /tmp/astro-upload/4c9c1e66b63d1fc6703971a72299c852.fit --uncompressed-outfile /tmp/astrometry-temp/3/solver-temp/tmp.uncompressed.4bYWT1 --outfile /tmp/astrometry-temp/3/solver-temp/tmp.ppm.LfNR0T --ppm --mydir /usr/bin/solve-field
Jun 20 21:34:39 ASTRO-MOUNT astrometry-api-lite-mgr[7830]: ioutils.c:567:run_command_get_outputs Command failed: return value 255
Jun 20 21:34:39 ASTRO-MOUNT astrometry-api-lite-mgr[7830]: Child process exited with code 255
Jun 20 21:34:39 ASTRO-MOUNT astrometry-api-lite-mgr[7830]: Solve-field failed
Jun 20 21:34:39 ASTRO-MOUNT astrometry-api-lite-mgr[7830]: Job marked as failure, error information updated
Jun 20 21:34:39 ASTRO-MOUNT astrometry-api-lite-mgr[7830]: Cleaning up /tmp/astrometry-temp/3
Jun 20 21:34:39 ASTRO-MOUNT astrometry-api-lite-mgr[7830]: Worker exiting
Jun 20 21:34:39 ASTRO-MOUNT astrometry-api-lite-mgr[7830]: Active worker count: 3/4
Jun 20 21:34:39 ASTRO-MOUNT astrometry-api-lite[7796]: GET /api/jobs/3 200 11.976 ms
Michel
The scale_est param should be interpreted into --scale-low and --scale-high instead of trying to use --scale-est and --scale-err which don't exist in solve-field.
Should be using:
scale_low = scale_est * (1.0 - scale_err / 100.0)
scale_high = scale_est * (1.0 + scale_err / 100.0))
https://github.com/dstndstn/astrometry.net/blob/master/net/models.py#L1143
https://github.com/dstndstn/astrometry.net/blob/master/net/process_submissions.py#L231
https://github.com/Jusas/astrometry-api-lite/blob/master/src/worker/worker.ts#L277
Hi,
not really knowing if this is still maintained or not, but sadly this project no longer works, as well as ANSVR and any other nova clone I've found.
What's missing, I think, is really trivial: the plate-solve called is not working as it's now mandatory to pass the source image height and width in pixels. Kstars also expects the solved image height and width in arcsecs passed in the result.
If these two things could be implemented, I'm fairly sure this would be working once again.
It would be good for me as I'm trying to use this for my astro group.
Many thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.