Code Monkey home page Code Monkey logo

astrometry-api-lite's People

Contributors

jusas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

astrometry-api-lite's Issues

Feature request?

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

Astropy python error

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

Already have fits index files

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!

Cast Error

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

validate error

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

Failure using on Ubuntu 18.04

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

Using scale_est breaks the solver invocation

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

Not working with recent Kstars

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.