├── astrometry ├── doc ├── net ├── cut.png ├── usnob.jpg ├── quads1b.png ├── quads2b.png ├── quads3b.jpg ├── usnob-grid.jpg ├── UCAC3_guide │ └── centu1.jpg ├── UCAC4_guide │ └── centu1.jpg ├── api.rst ├── api-util-py.rst └── changelog.rst ├── libkd ├── __init__.py ├── AUTHORS ├── kdint_etype_d.h ├── kdint_etype_s.h ├── kdint_etype_u.h ├── kdint_etype_f.h ├── kdint_dtype_u.h ├── kdint_dtype_s.h ├── kdint_dtype_f.h ├── kdint_dtype_d.h ├── kdint_ttype_s.h ├── kdint_ttype_u.h ├── kdint_ttype_f.h ├── kdint_ttype_d.h ├── demo.c ├── kdtree_internal_common.h └── kdtree_mem.h ├── net ├── __init__.py ├── views │ ├── __init__.py │ └── flag.py ├── migrations │ └── __init__.py ├── static │ ├── style.css │ ├── favicon.ico │ ├── images │ │ ├── bg.png │ │ ├── loading.gif │ │ ├── loading-black.gif │ │ ├── openid-inputicon.gif │ │ ├── openid-providers-en.png │ │ └── openid-providers-ru.png │ ├── images.large │ │ ├── aol.gif │ │ ├── google.gif │ │ ├── mailru.gif │ │ ├── openid.gif │ │ ├── yahoo.gif │ │ ├── yandex.gif │ │ ├── facebook.gif │ │ ├── myopenid.gif │ │ ├── rambler.gif │ │ ├── verisign.gif │ │ └── vkontakte.gif │ ├── images.small │ │ ├── aol.ico │ │ ├── flickr.ico │ │ ├── google.ico │ │ ├── mailru.ico │ │ ├── openid.ico │ │ ├── vidoop.ico │ │ ├── yahoo.ico │ │ ├── yandex.ico │ │ ├── aol.ico.gif │ │ ├── aol.ico.png │ │ ├── blogger.ico │ │ ├── claimid.ico │ │ ├── facebook.ico │ │ ├── linkedin.ico │ │ ├── myopenid.ico │ │ ├── rambler.ico │ │ ├── twitter.ico │ │ ├── verisign.ico │ │ ├── blogger.ico.gif │ │ ├── blogger.ico.png │ │ ├── claimid.ico.gif │ │ ├── claimid.ico.png │ │ ├── clickpass.ico │ │ ├── flickr.ico.gif │ │ ├── flickr.ico.png │ │ ├── google.ico.gif │ │ ├── google.ico.png │ │ ├── launchpad.ico │ │ ├── livejournal.ico │ │ ├── mailru.ico.gif │ │ ├── mailru.ico.png │ │ ├── openid.ico.gif │ │ ├── openid.ico.png │ │ ├── rambler.ico.gif │ │ ├── rambler.ico.png │ │ ├── technorati.ico │ │ ├── twitter.ico.gif │ │ ├── twitter.ico.png │ │ ├── vidoop.ico.gif │ │ ├── vidoop.ico.png │ │ ├── vkontakte.ico │ │ ├── winliveid.ico │ │ ├── wordpress.ico │ │ ├── yahoo.ico.gif │ │ ├── yahoo.ico.png │ │ ├── yandex.ico.gif │ │ ├── yandex.ico.png │ │ ├── clickpass.ico.gif │ │ ├── clickpass.ico.png │ │ ├── facebook.ico.gif │ │ ├── facebook.ico.png │ │ ├── launchpad.ico.gif │ │ ├── launchpad.ico.png │ │ ├── linkedin.ico.gif │ │ ├── linkedin.ico.png │ │ ├── myopenid.ico.gif │ │ ├── myopenid.ico.png │ │ ├── verisign.ico.gif │ │ ├── verisign.ico.png │ │ ├── vkontakte.ico.gif │ │ ├── vkontakte.ico.png │ │ ├── winliveid.ico.gif │ │ ├── winliveid.ico.png │ │ ├── wordpress.ico.gif │ │ ├── wordpress.ico.png │ │ ├── google_profile.ico │ │ ├── livejournal.ico.gif │ │ ├── livejournal.ico.png │ │ ├── technorati.ico.gif │ │ ├── technorati.ico.png │ │ ├── google_profile.ico.gif │ │ └── google_profile.ico.png │ └── css │ │ └── jquery.autocomplete.css ├── templatetags │ └── __init__.py ├── templates │ ├── messages.html │ ├── user │ │ ├── api_key.html │ │ ├── paginated_list.html │ │ ├── display_name.html │ │ ├── index_name.html │ │ ├── list.css │ │ ├── albums.html │ │ ├── user_images.html │ │ ├── submissions.html │ │ ├── menu.html │ │ ├── list.html │ │ └── base.html │ ├── favicon.html │ ├── license │ │ ├── license_link.html │ │ └── form.html │ ├── openid │ │ ├── logout.html │ │ └── failure.html │ ├── dashboard │ │ ├── api_key.css │ │ ├── user_images.html │ │ ├── albums.html │ │ ├── menu.html │ │ ├── index.html │ │ ├── submissions.html │ │ └── base.html │ ├── tag │ │ ├── paginated_list.html │ │ ├── list.css │ │ ├── list.html │ │ ├── tag.html │ │ ├── user_image_tag_list.html │ │ └── form.html │ ├── user_image │ │ ├── filename.html │ │ ├── paginated_image_set.html │ │ ├── permission_denied.html │ │ ├── menu.html │ │ ├── index_recent.html │ │ ├── index_all.html │ │ ├── index_user.html │ │ ├── index_location.html │ │ ├── index_by_user.html │ │ └── index_tag.html │ ├── album │ │ ├── paginated_album_set.html │ │ └── permission_denied.html │ ├── header.html │ ├── submission │ │ ├── paginated_list.html │ │ ├── by_user.html │ │ └── list.css │ ├── comment │ │ ├── list.html │ │ └── comment.html │ ├── job │ │ ├── status.css │ │ └── status.html │ ├── form_ajax.css │ ├── hideable │ │ └── publicly_visible.html │ ├── flag │ │ ├── chooser.html │ │ └── form.html │ ├── footer.html │ ├── support.html │ ├── admin.html │ ├── radio-nobullets.html │ ├── form_ajax.js │ ├── view_menu.css │ ├── radio-horizontal.html │ └── api-test.html ├── ison-ephem.fits ├── migrate_scripts │ ├── 18828.sql │ ├── ticket893.sql │ ├── 18826.sql │ └── 19011.sql ├── client │ ├── __init__.py │ ├── examples │ │ └── rc3.sh │ └── README ├── supernova.cfg ├── nova.cfg ├── api_util.py ├── tmpfile.py ├── settings_test.py ├── settings_ison.py ├── doc │ └── models.rst ├── tests.py ├── settings_bbc.py ├── settings_superstaging.py ├── log.py ├── settings_staging.py ├── showcache.py ├── abstract_models.py └── remake-data-dir.sh ├── util ├── __init__.py ├── c.py ├── hp.png ├── t1.xy ├── hp2.png ├── t10.ind ├── t10.skdt ├── t11.ind ├── t12.ind ├── makefile.netpbm ├── makefile.blind ├── makefile.png ├── makefile.cairo ├── makefile.zlib ├── makefile.anbase ├── md5.h ├── jpl.h ├── makefile.qfits ├── shell.py ├── makefile.cfitsio ├── makefile.libkd ├── makefile.wcslib ├── dsigma.c ├── bl-nl-sort.c ├── makefile.gsl └── makefile.jpeg ├── blind ├── __init__.py ├── apod4.xy ├── index-9918.fits ├── test_dcen3x3_1.pgm ├── cut-table.h ├── pnpoly.h ├── onepixel.c ├── tst.plot ├── pquad.h ├── plotcoadd.h ├── setsolved.c ├── plotxxx.h └── verify2.h ├── catalogs ├── __init__.py ├── ugc.fits ├── uzc2000.fits ├── abell-all.fits ├── brightstars.fits ├── openngc-ngc.fits ├── openngc-names-c.awk ├── openngc-entries-c.awk ├── brightstars.c ├── openngc-names-csv.awk └── test_boundaries.c ├── configure ├── __init__.py ├── demo ├── apod1.jpg ├── apod2.jpg ├── apod3.jpg ├── apod4.jpg ├── apod5.jpg ├── sdss.jpg ├── sdss.xyls ├── apod1.xyls ├── apod2.xyls ├── apod3.xyls ├── apod4.xyls ├── apod5.xyls ├── tycho2-mag6.fits ├── m44-1910-04-01.jpg └── m44-1975-01-18.jpg ├── gsl-an ├── vector │ └── view.h ├── matrix │ ├── view.h │ └── matrix.c ├── cblas │ ├── srotg.c │ ├── drotg.c │ ├── dasum.c │ ├── dnrm2.c │ ├── dzasum.c │ ├── dznrm2.c │ ├── sasum.c │ ├── scasum.c │ ├── scnrm2.c │ ├── snrm2.c │ ├── icamax.c │ ├── cscal.c │ ├── idamax.c │ ├── isamax.c │ ├── izamax.c │ ├── sscal.c │ ├── zscal.c │ ├── csscal.c │ ├── cswap.c │ ├── dscal.c │ ├── srotmg.c │ ├── zdscal.c │ ├── zswap.c │ ├── drotmg.c │ ├── sswap.c │ ├── ccopy.c │ ├── dswap.c │ ├── scopy.c │ ├── zcopy.c │ ├── dcopy.c │ ├── srotm.c │ ├── drotm.c │ ├── caxpy.c │ ├── saxpy.c │ ├── srot.c │ ├── zaxpy.c │ ├── daxpy.c │ ├── drot.c │ ├── cdotu_sub.c │ ├── zdotu_sub.c │ ├── cdotc_sub.c │ ├── zdotc_sub.c │ ├── sdot.c │ ├── ddot.c │ ├── dsdot.c │ ├── cher.c │ ├── ssyr.c │ ├── zher.c │ ├── dsyr.c │ ├── sdsdot.c │ ├── cgerc.c │ ├── cgeru.c │ ├── sger.c │ ├── zgerc.c │ ├── zgeru.c │ ├── dger.c │ ├── cher2.c │ ├── zher2.c │ ├── ssyr2.c │ ├── dsyr2.c │ ├── chemv.c │ ├── ctrmv.c │ ├── strmv.c │ ├── strsv.c │ ├── ztrmv.c │ ├── dtrmv.c │ ├── dtrsv.c │ ├── ssymv.c │ ├── zhemv.c │ ├── dsymv.c │ ├── cherk.c │ ├── csyrk.c │ ├── ssyrk.c │ ├── zherk.c │ ├── zsyrk.c │ ├── cgemv.c │ ├── dsyrk.c │ ├── sgemv.c │ ├── zgemv.c │ ├── ctrsv.c │ ├── ztrsv.c │ ├── dgemv.c │ ├── chemm.c │ ├── zhemm.c │ ├── csymm.c │ ├── ssymm.c │ ├── zsymm.c │ ├── cher2k.c │ ├── csyr2k.c │ ├── zher2k.c │ ├── zsyr2k.c │ ├── dsymm.c │ ├── ctrmm.c │ ├── ssyr2k.c │ ├── ztrmm.c │ ├── dtrmm.c │ ├── dtrsm.c │ ├── strmm.c │ ├── strsm.c │ ├── dsyr2k.c │ ├── hypot.c │ ├── cgemm.c │ ├── sgemm.c │ ├── zgemm.c │ ├── dgemm.c │ ├── ctrsm.c │ └── ztrsm.c ├── gsl.pc.in ├── grab-gsl-sources.sh ├── gsl_version.h.in └── gsl │ ├── gsl_block.h │ ├── gsl_matrix.h │ ├── gsl_vector.h │ ├── gsl_permute.h │ ├── gsl_vector_complex.h │ └── gsl_permute_vector.h ├── sdss ├── testdata │ ├── psf.fits │ ├── psf00.fits │ ├── psf01k.fits │ ├── psf02k.fits │ ├── psf1k0.fits │ ├── psf2k0.fits │ ├── tsField-002830-6-0398.fit │ └── cut-tsObj-002830-6-0-0398.fit ├── __init__.py ├── setup.py └── dr10.py ├── qfits-an ├── test │ └── bintable.tfits ├── AUTHORS ├── NOTE-Astrometry.net └── md5.h ├── include └── astrometry │ ├── qfits_config.h │ ├── blindutils.h │ ├── tabsort.h │ ├── bl-nl.ph │ ├── image2xy.h │ ├── new-wcs.h │ ├── simplexy-common.h │ ├── indexset.h │ ├── an-bool.h │ ├── bl-sort.h │ ├── wcs-xy2rd.h │ ├── wcs-rd2xy.h │ ├── dualtree_nearestneighbour.h │ ├── brightstars.h │ ├── bl.ph │ ├── tic.h │ ├── bl-nl.inc │ ├── fileutils.h │ ├── resort-xylist.h │ ├── qfits_keywords.h │ ├── codetree.h │ ├── plotfill.h │ ├── qfits_convert.h │ ├── plothealpix.h │ ├── thread-specific.inc │ ├── eigen-math.h │ └── merge-index.h ├── man ├── wcs-grab.1 ├── fits-guess-scale.1 ├── tabsort.1 ├── get-wcs.1 ├── wcs-match.1 ├── wcsinfo.1 ├── pad-file.1 ├── subtable.1 ├── downsample-fits.1 ├── an-pnmtofits.1 ├── fits-flip-endian.1 ├── new-wcs.1 ├── query-starkd.1 ├── wcs-to-tan.1 └── fitsgetext.1 └── bin ├── image2pnm ├── uniformize ├── removelines └── votabletofits /astrometry: -------------------------------------------------------------------------------- 1 | . -------------------------------------------------------------------------------- /doc/net: -------------------------------------------------------------------------------- 1 | ../net/doc -------------------------------------------------------------------------------- /libkd/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /net/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /util/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /util/c.py: -------------------------------------------------------------------------------- 1 | util.py -------------------------------------------------------------------------------- /blind/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /catalogs/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /net/views/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /net/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /net/static/style.css: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /net/templatetags/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /net/templates/messages.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /configure: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | echo "Ok" 4 | -------------------------------------------------------------------------------- /libkd/AUTHORS: -------------------------------------------------------------------------------- 1 | Dustin Lang 2 | Keir Mierle 3 | -------------------------------------------------------------------------------- /__init__.py: -------------------------------------------------------------------------------- 1 | __version__ = '0.78-33-gffadbe61' 2 | -------------------------------------------------------------------------------- /net/templates/user/api_key.html: -------------------------------------------------------------------------------- 1 | {{ apikey }} 2 | -------------------------------------------------------------------------------- /doc/cut.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/doc/cut.png -------------------------------------------------------------------------------- /util/hp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/util/hp.png -------------------------------------------------------------------------------- /util/t1.xy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/util/t1.xy -------------------------------------------------------------------------------- /blind/apod4.xy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/blind/apod4.xy -------------------------------------------------------------------------------- /demo/apod1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/demo/apod1.jpg -------------------------------------------------------------------------------- /demo/apod2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/demo/apod2.jpg -------------------------------------------------------------------------------- /demo/apod3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/demo/apod3.jpg -------------------------------------------------------------------------------- /demo/apod4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/demo/apod4.jpg -------------------------------------------------------------------------------- /demo/apod5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/demo/apod5.jpg -------------------------------------------------------------------------------- /demo/sdss.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/demo/sdss.jpg -------------------------------------------------------------------------------- /demo/sdss.xyls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/demo/sdss.xyls -------------------------------------------------------------------------------- /doc/usnob.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/doc/usnob.jpg -------------------------------------------------------------------------------- /util/hp2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/util/hp2.png -------------------------------------------------------------------------------- /util/t10.ind: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/util/t10.ind -------------------------------------------------------------------------------- /util/t10.skdt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/util/t10.skdt -------------------------------------------------------------------------------- /util/t11.ind: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/util/t11.ind -------------------------------------------------------------------------------- /util/t12.ind: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/util/t12.ind -------------------------------------------------------------------------------- /demo/apod1.xyls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/demo/apod1.xyls -------------------------------------------------------------------------------- /demo/apod2.xyls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/demo/apod2.xyls -------------------------------------------------------------------------------- /demo/apod3.xyls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/demo/apod3.xyls -------------------------------------------------------------------------------- /demo/apod4.xyls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/demo/apod4.xyls -------------------------------------------------------------------------------- /demo/apod5.xyls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/demo/apod5.xyls -------------------------------------------------------------------------------- /doc/quads1b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/doc/quads1b.png -------------------------------------------------------------------------------- /doc/quads2b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/doc/quads2b.png -------------------------------------------------------------------------------- /doc/quads3b.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/doc/quads3b.jpg -------------------------------------------------------------------------------- /catalogs/ugc.fits: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/catalogs/ugc.fits -------------------------------------------------------------------------------- /doc/usnob-grid.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/doc/usnob-grid.jpg -------------------------------------------------------------------------------- /net/ison-ephem.fits: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/ison-ephem.fits -------------------------------------------------------------------------------- /net/migrate_scripts/18828.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE net_submission ADD COLUMN downsample_factor integer; 2 | -------------------------------------------------------------------------------- /net/templates/favicon.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /blind/index-9918.fits: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/blind/index-9918.fits -------------------------------------------------------------------------------- /catalogs/uzc2000.fits: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/catalogs/uzc2000.fits -------------------------------------------------------------------------------- /demo/tycho2-mag6.fits: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/demo/tycho2-mag6.fits -------------------------------------------------------------------------------- /blind/test_dcen3x3_1.pgm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/blind/test_dcen3x3_1.pgm -------------------------------------------------------------------------------- /catalogs/abell-all.fits: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/catalogs/abell-all.fits -------------------------------------------------------------------------------- /demo/m44-1910-04-01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/demo/m44-1910-04-01.jpg -------------------------------------------------------------------------------- /demo/m44-1975-01-18.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/demo/m44-1975-01-18.jpg -------------------------------------------------------------------------------- /gsl-an/vector/view.h: -------------------------------------------------------------------------------- 1 | #define NULL_VECTOR {0, 0, 0, 0, 0} 2 | #define NULL_VECTOR_VIEW {{0, 0, 0, 0, 0}} 3 | -------------------------------------------------------------------------------- /net/migrate_scripts/ticket893.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE net_tag ADD COLUMN machine_readable boolean DEFAULT FALSE; 2 | -------------------------------------------------------------------------------- /net/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/favicon.ico -------------------------------------------------------------------------------- /net/static/images/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images/bg.png -------------------------------------------------------------------------------- /sdss/testdata/psf.fits: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/sdss/testdata/psf.fits -------------------------------------------------------------------------------- /sdss/testdata/psf00.fits: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/sdss/testdata/psf00.fits -------------------------------------------------------------------------------- /catalogs/brightstars.fits: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/catalogs/brightstars.fits -------------------------------------------------------------------------------- /catalogs/openngc-ngc.fits: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/catalogs/openngc-ngc.fits -------------------------------------------------------------------------------- /doc/UCAC3_guide/centu1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/doc/UCAC3_guide/centu1.jpg -------------------------------------------------------------------------------- /doc/UCAC4_guide/centu1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/doc/UCAC4_guide/centu1.jpg -------------------------------------------------------------------------------- /sdss/testdata/psf01k.fits: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/sdss/testdata/psf01k.fits -------------------------------------------------------------------------------- /sdss/testdata/psf02k.fits: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/sdss/testdata/psf02k.fits -------------------------------------------------------------------------------- /sdss/testdata/psf1k0.fits: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/sdss/testdata/psf1k0.fits -------------------------------------------------------------------------------- /sdss/testdata/psf2k0.fits: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/sdss/testdata/psf2k0.fits -------------------------------------------------------------------------------- /net/static/images/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images/loading.gif -------------------------------------------------------------------------------- /qfits-an/test/bintable.tfits: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/qfits-an/test/bintable.tfits -------------------------------------------------------------------------------- /net/static/images.large/aol.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.large/aol.gif -------------------------------------------------------------------------------- /net/static/images.small/aol.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/aol.ico -------------------------------------------------------------------------------- /net/client/__init__.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import 2 | from .client import Client 3 | __all__ = 'Client' 4 | 5 | -------------------------------------------------------------------------------- /net/static/images.large/google.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.large/google.gif -------------------------------------------------------------------------------- /net/static/images.large/mailru.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.large/mailru.gif -------------------------------------------------------------------------------- /net/static/images.large/openid.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.large/openid.gif -------------------------------------------------------------------------------- /net/static/images.large/yahoo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.large/yahoo.gif -------------------------------------------------------------------------------- /net/static/images.large/yandex.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.large/yandex.gif -------------------------------------------------------------------------------- /net/static/images.small/flickr.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/flickr.ico -------------------------------------------------------------------------------- /net/static/images.small/google.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/google.ico -------------------------------------------------------------------------------- /net/static/images.small/mailru.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/mailru.ico -------------------------------------------------------------------------------- /net/static/images.small/openid.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/openid.ico -------------------------------------------------------------------------------- /net/static/images.small/vidoop.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/vidoop.ico -------------------------------------------------------------------------------- /net/static/images.small/yahoo.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/yahoo.ico -------------------------------------------------------------------------------- /net/static/images.small/yandex.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/yandex.ico -------------------------------------------------------------------------------- /net/static/images.large/facebook.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.large/facebook.gif -------------------------------------------------------------------------------- /net/static/images.large/myopenid.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.large/myopenid.gif -------------------------------------------------------------------------------- /net/static/images.large/rambler.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.large/rambler.gif -------------------------------------------------------------------------------- /net/static/images.large/verisign.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.large/verisign.gif -------------------------------------------------------------------------------- /net/static/images.small/aol.ico.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/aol.ico.gif -------------------------------------------------------------------------------- /net/static/images.small/aol.ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/aol.ico.png -------------------------------------------------------------------------------- /net/static/images.small/blogger.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/blogger.ico -------------------------------------------------------------------------------- /net/static/images.small/claimid.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/claimid.ico -------------------------------------------------------------------------------- /net/static/images.small/facebook.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/facebook.ico -------------------------------------------------------------------------------- /net/static/images.small/linkedin.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/linkedin.ico -------------------------------------------------------------------------------- /net/static/images.small/myopenid.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/myopenid.ico -------------------------------------------------------------------------------- /net/static/images.small/rambler.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/rambler.ico -------------------------------------------------------------------------------- /net/static/images.small/twitter.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/twitter.ico -------------------------------------------------------------------------------- /net/static/images.small/verisign.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/verisign.ico -------------------------------------------------------------------------------- /net/static/images/loading-black.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images/loading-black.gif -------------------------------------------------------------------------------- /net/static/images.large/vkontakte.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.large/vkontakte.gif -------------------------------------------------------------------------------- /net/static/images.small/blogger.ico.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/blogger.ico.gif -------------------------------------------------------------------------------- /net/static/images.small/blogger.ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/blogger.ico.png -------------------------------------------------------------------------------- /net/static/images.small/claimid.ico.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/claimid.ico.gif -------------------------------------------------------------------------------- /net/static/images.small/claimid.ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/claimid.ico.png -------------------------------------------------------------------------------- /net/static/images.small/clickpass.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/clickpass.ico -------------------------------------------------------------------------------- /net/static/images.small/flickr.ico.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/flickr.ico.gif -------------------------------------------------------------------------------- /net/static/images.small/flickr.ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/flickr.ico.png -------------------------------------------------------------------------------- /net/static/images.small/google.ico.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/google.ico.gif -------------------------------------------------------------------------------- /net/static/images.small/google.ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/google.ico.png -------------------------------------------------------------------------------- /net/static/images.small/launchpad.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/launchpad.ico -------------------------------------------------------------------------------- /net/static/images.small/livejournal.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/livejournal.ico -------------------------------------------------------------------------------- /net/static/images.small/mailru.ico.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/mailru.ico.gif -------------------------------------------------------------------------------- /net/static/images.small/mailru.ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/mailru.ico.png -------------------------------------------------------------------------------- /net/static/images.small/openid.ico.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/openid.ico.gif -------------------------------------------------------------------------------- /net/static/images.small/openid.ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/openid.ico.png -------------------------------------------------------------------------------- /net/static/images.small/rambler.ico.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/rambler.ico.gif -------------------------------------------------------------------------------- /net/static/images.small/rambler.ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/rambler.ico.png -------------------------------------------------------------------------------- /net/static/images.small/technorati.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/technorati.ico -------------------------------------------------------------------------------- /net/static/images.small/twitter.ico.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/twitter.ico.gif -------------------------------------------------------------------------------- /net/static/images.small/twitter.ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/twitter.ico.png -------------------------------------------------------------------------------- /net/static/images.small/vidoop.ico.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/vidoop.ico.gif -------------------------------------------------------------------------------- /net/static/images.small/vidoop.ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/vidoop.ico.png -------------------------------------------------------------------------------- /net/static/images.small/vkontakte.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/vkontakte.ico -------------------------------------------------------------------------------- /net/static/images.small/winliveid.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/winliveid.ico -------------------------------------------------------------------------------- /net/static/images.small/wordpress.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/wordpress.ico -------------------------------------------------------------------------------- /net/static/images.small/yahoo.ico.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/yahoo.ico.gif -------------------------------------------------------------------------------- /net/static/images.small/yahoo.ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/yahoo.ico.png -------------------------------------------------------------------------------- /net/static/images.small/yandex.ico.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/yandex.ico.gif -------------------------------------------------------------------------------- /net/static/images.small/yandex.ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/yandex.ico.png -------------------------------------------------------------------------------- /net/static/images/openid-inputicon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images/openid-inputicon.gif -------------------------------------------------------------------------------- /sdss/testdata/tsField-002830-6-0398.fit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/sdss/testdata/tsField-002830-6-0398.fit -------------------------------------------------------------------------------- /net/static/images.small/clickpass.ico.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/clickpass.ico.gif -------------------------------------------------------------------------------- /net/static/images.small/clickpass.ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/clickpass.ico.png -------------------------------------------------------------------------------- /net/static/images.small/facebook.ico.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/facebook.ico.gif -------------------------------------------------------------------------------- /net/static/images.small/facebook.ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/facebook.ico.png -------------------------------------------------------------------------------- /net/static/images.small/launchpad.ico.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/launchpad.ico.gif -------------------------------------------------------------------------------- /net/static/images.small/launchpad.ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/launchpad.ico.png -------------------------------------------------------------------------------- /net/static/images.small/linkedin.ico.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/linkedin.ico.gif -------------------------------------------------------------------------------- /net/static/images.small/linkedin.ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/linkedin.ico.png -------------------------------------------------------------------------------- /net/static/images.small/myopenid.ico.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/myopenid.ico.gif -------------------------------------------------------------------------------- /net/static/images.small/myopenid.ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/myopenid.ico.png -------------------------------------------------------------------------------- /net/static/images.small/verisign.ico.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/verisign.ico.gif -------------------------------------------------------------------------------- /net/static/images.small/verisign.ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/verisign.ico.png -------------------------------------------------------------------------------- /net/static/images.small/vkontakte.ico.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/vkontakte.ico.gif -------------------------------------------------------------------------------- /net/static/images.small/vkontakte.ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/vkontakte.ico.png -------------------------------------------------------------------------------- /net/static/images.small/winliveid.ico.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/winliveid.ico.gif -------------------------------------------------------------------------------- /net/static/images.small/winliveid.ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/winliveid.ico.png -------------------------------------------------------------------------------- /net/static/images.small/wordpress.ico.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/wordpress.ico.gif -------------------------------------------------------------------------------- /net/static/images.small/wordpress.ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/wordpress.ico.png -------------------------------------------------------------------------------- /net/static/images/openid-providers-en.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images/openid-providers-en.png -------------------------------------------------------------------------------- /net/static/images/openid-providers-ru.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images/openid-providers-ru.png -------------------------------------------------------------------------------- /net/static/images.small/google_profile.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/google_profile.ico -------------------------------------------------------------------------------- /net/static/images.small/livejournal.ico.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/livejournal.ico.gif -------------------------------------------------------------------------------- /net/static/images.small/livejournal.ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/livejournal.ico.png -------------------------------------------------------------------------------- /net/static/images.small/technorati.ico.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/technorati.ico.gif -------------------------------------------------------------------------------- /net/static/images.small/technorati.ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/technorati.ico.png -------------------------------------------------------------------------------- /net/templates/license/license_link.html: -------------------------------------------------------------------------------- 1 | {{license.get_license_name}} 2 | -------------------------------------------------------------------------------- /sdss/testdata/cut-tsObj-002830-6-0-0398.fit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/sdss/testdata/cut-tsObj-002830-6-0-0398.fit -------------------------------------------------------------------------------- /net/static/images.small/google_profile.ico.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/google_profile.ico.gif -------------------------------------------------------------------------------- /net/static/images.small/google_profile.ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwcraig/astrometry.net/master/net/static/images.small/google_profile.ico.png -------------------------------------------------------------------------------- /net/supernova.cfg: -------------------------------------------------------------------------------- 1 | add_path /data1/INDEXES/200-current 2 | add_path /data1/INDEXES/4200 3 | add_path /data1/INDEXES/4100 4 | autoindex 5 | inparallel 6 | -------------------------------------------------------------------------------- /qfits-an/AUTHORS: -------------------------------------------------------------------------------- 1 | Nicolas Devillard ndevilla@gmail.com Initial author 2 | Yves Jung yjung@eso.org Maintainer since 2002 3 | -------------------------------------------------------------------------------- /net/templates/openid/logout.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% load i18n %} 3 | {% block content %} 4 | Sign In 5 | {% endblock %} 6 | -------------------------------------------------------------------------------- /net/templates/dashboard/api_key.css: -------------------------------------------------------------------------------- 1 | 8 | -------------------------------------------------------------------------------- /net/nova.cfg: -------------------------------------------------------------------------------- 1 | #add_path /data1/INDEXES/200-current 2 | add_path /data1/INDEXES/200 3 | #add_path /data1/INDEXES/4200 4 | add_path /data1/INDEXES/4100 5 | autoindex 6 | inparallel 7 | -------------------------------------------------------------------------------- /net/templates/tag/paginated_list.html: -------------------------------------------------------------------------------- 1 | {% load custom_tags %} 2 | {% paginator tag_page 'tag' %} 3 | {% include 'tag/list.html' with tags=tag_page.object_list %} 4 | {% paginator tag_page %} 5 | -------------------------------------------------------------------------------- /util/makefile.netpbm: -------------------------------------------------------------------------------- 1 | # This file is part of the Astrometry.net suite. 2 | # Licensed under a 3-clause BSD style license - see LICENSE 3 | 4 | NETPBM_INC ?= 5 | NETPBM_LIB ?= -L. -lnetpbm 6 | -------------------------------------------------------------------------------- /net/templates/user/paginated_list.html: -------------------------------------------------------------------------------- 1 | {% load custom_tags %} 2 | {% paginator user_page 'user' %} 3 | {% include 'user/list.html' with users=user_page.object_list %} 4 | {% paginator user_page %} 5 | -------------------------------------------------------------------------------- /gsl-an/matrix/view.h: -------------------------------------------------------------------------------- 1 | #define NULL_VECTOR {0, 0, 0, 0, 0} 2 | #define NULL_VECTOR_VIEW {{0, 0, 0, 0, 0}} 3 | 4 | #define NULL_MATRIX {0, 0, 0, 0, 0, 0} 5 | #define NULL_MATRIX_VIEW {{0, 0, 0, 0, 0, 0}} 6 | -------------------------------------------------------------------------------- /net/templates/user_image/filename.html: -------------------------------------------------------------------------------- 1 | 2 | {% if filename|length > 30 %}{{ filename|slice:":21" }}...{{filename|slice:"-6:"}}{% else %}{{ filename }}{% endif %} 3 | 4 | -------------------------------------------------------------------------------- /util/makefile.blind: -------------------------------------------------------------------------------- 1 | # This file is part of the Astrometry.net suite. 2 | # Licensed under a 3-clause BSD style license - see LICENSE 3 | 4 | BLIND_DIR := $(BASEDIR)/blind 5 | BLIND_INC := -I$(BLIND_DIR) 6 | -------------------------------------------------------------------------------- /net/templates/album/paginated_album_set.html: -------------------------------------------------------------------------------- 1 | {% load custom_tags %} 2 | {% paginator album_page 'album' %} 3 | {% include 'album/album_set.html' with albums=album_page.object_list %} 4 | {% paginator album_page %} 5 | -------------------------------------------------------------------------------- /net/templates/user_image/paginated_image_set.html: -------------------------------------------------------------------------------- 1 | {% load custom_tags %} 2 | {% paginator image_page 'image' %} 3 | {% include 'user_image/image_set.html' with images=image_page.object_list %} 4 | {% paginator image_page %} 5 | -------------------------------------------------------------------------------- /net/api_util.py: -------------------------------------------------------------------------------- 1 | import simplejson 2 | 3 | def json2python(json): 4 | try: 5 | return simplejson.loads(json) 6 | except: 7 | pass 8 | return None 9 | 10 | python2json = simplejson.dumps 11 | 12 | -------------------------------------------------------------------------------- /net/templates/album/permission_denied.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | 3 | {% block title %} 4 | Albums > 5 | permission denied 6 | {% endblock %} 7 | 8 | {% block content %} 9 | {% endblock %} 10 | -------------------------------------------------------------------------------- /net/templates/tag/list.css: -------------------------------------------------------------------------------- 1 | 12 | -------------------------------------------------------------------------------- /net/tmpfile.py: -------------------------------------------------------------------------------- 1 | import os 2 | import tempfile 3 | 4 | from astrometry.net.settings import TEMPDIR 5 | 6 | def get_temp_file(suffix=''): 7 | f,fn = tempfile.mkstemp(dir=TEMPDIR, suffix=suffix) 8 | os.close(f) 9 | return fn 10 | -------------------------------------------------------------------------------- /include/astrometry/qfits_config.h: -------------------------------------------------------------------------------- 1 | /* Version number of package */ 2 | #define QFITS_VERSION "6.2.0" 3 | 4 | #include "an-endian.h" 5 | 6 | #if IS_BIG_ENDIAN 7 | #define WORDS_BIGENDIAN 1 8 | #else 9 | #undef WORDS_BIGENDIAN 10 | #endif 11 | 12 | -------------------------------------------------------------------------------- /net/templates/header.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /net/templates/submission/paginated_list.html: -------------------------------------------------------------------------------- 1 | {% include 'pagination.html' with page=submission_page %} 2 | {% include 'submission/list.html' with submissions=submission_page.object_list %} 3 | {% include 'pagination.html' with page=submission_page %} 4 | -------------------------------------------------------------------------------- /net/templates/comment/list.html: -------------------------------------------------------------------------------- 1 |
2 | {% for comment in comments %} 3 | {% include 'comment/comment.html' with comment=comment next=next %} 4 | {% empty %} 5 |

No comments.

6 | {% endfor %} 7 |
8 | -------------------------------------------------------------------------------- /net/templates/job/status.css: -------------------------------------------------------------------------------- 1 | 12 | -------------------------------------------------------------------------------- /util/makefile.png: -------------------------------------------------------------------------------- 1 | # This file is part of the Astrometry.net suite. 2 | # Licensed under a 3-clause BSD style license - see LICENSE 3 | 4 | PNG_INC ?= $(shell pkg-config --cflags libpng 2>/dev/null) 5 | PNG_LIB ?= $(shell pkg-config --libs libpng 2>/dev/null) 6 | -------------------------------------------------------------------------------- /gsl-an/cblas/srotg.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | void 6 | cblas_srotg (float *a, float *b, float *c, float *s) 7 | { 8 | #define BASE float 9 | #include "source_rotg.h" 10 | #undef BASE 11 | } 12 | -------------------------------------------------------------------------------- /net/templates/user_image/permission_denied.html: -------------------------------------------------------------------------------- 1 | {% extends "user_image/index.html" %} 2 | 3 | {% block title %} 4 | {{block.super}} > 5 | permission denied 6 | {% endblock %} 7 | 8 | {% block content %} 9 | {% endblock %} 10 | -------------------------------------------------------------------------------- /util/makefile.cairo: -------------------------------------------------------------------------------- 1 | # This file is part of the Astrometry.net suite. 2 | # Licensed under a 3-clause BSD style license - see LICENSE 3 | 4 | CAIRO_INC ?= $(shell pkg-config --cflags cairo 2>/dev/null) 5 | CAIRO_LIB ?= $(shell pkg-config --libs cairo 2>/dev/null) 6 | -------------------------------------------------------------------------------- /gsl-an/cblas/drotg.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | void 6 | cblas_drotg (double *a, double *b, double *c, double *s) 7 | { 8 | #define BASE double 9 | #include "source_rotg.h" 10 | #undef BASE 11 | } 12 | -------------------------------------------------------------------------------- /gsl-an/gsl.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: GSL 7 | Description: GNU Scientific Library 8 | Version: @VERSION@ 9 | Libs: @GSL_LIBS@ -lgslcblas @LIBS@ 10 | Cflags: @GSL_CFLAGS@ 11 | -------------------------------------------------------------------------------- /net/client/examples/rc3.sh: -------------------------------------------------------------------------------- 1 | #/bin/bash 2 | # 3 | # calling sequence 4 | # ./rc3.sh apikey > ./script 5 | # bash ./script 6 | 7 | for file in $(ls ~/rc3/*hard.jpg) 8 | do 9 | cmd="python ../client.py --apikey $1 --upload $file" 10 | echo $cmd 11 | done 12 | -------------------------------------------------------------------------------- /gsl-an/cblas/dasum.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | double 6 | cblas_dasum (const int N, const double *X, const int incX) 7 | { 8 | #define BASE double 9 | #include "source_asum_r.h" 10 | #undef BASE 11 | } 12 | -------------------------------------------------------------------------------- /gsl-an/cblas/dnrm2.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | double 6 | cblas_dnrm2 (const int N, const double *X, const int incX) 7 | { 8 | #define BASE double 9 | #include "source_nrm2_r.h" 10 | #undef BASE 11 | } 12 | -------------------------------------------------------------------------------- /gsl-an/cblas/dzasum.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | double 6 | cblas_dzasum (const int N, const void *X, const int incX) 7 | { 8 | #define BASE double 9 | #include "source_asum_c.h" 10 | #undef BASE 11 | } 12 | -------------------------------------------------------------------------------- /gsl-an/cblas/dznrm2.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | double 6 | cblas_dznrm2 (const int N, const void *X, const int incX) 7 | { 8 | #define BASE double 9 | #include "source_nrm2_c.h" 10 | #undef BASE 11 | } 12 | -------------------------------------------------------------------------------- /gsl-an/cblas/sasum.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | float 6 | cblas_sasum (const int N, const float *X, const int incX) 7 | { 8 | #define BASE float 9 | #include "source_asum_r.h" 10 | #undef BASE 11 | } 12 | -------------------------------------------------------------------------------- /gsl-an/cblas/scasum.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | float 6 | cblas_scasum (const int N, const void *X, const int incX) 7 | { 8 | #define BASE float 9 | #include "source_asum_c.h" 10 | #undef BASE 11 | } 12 | -------------------------------------------------------------------------------- /gsl-an/cblas/scnrm2.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | float 6 | cblas_scnrm2 (const int N, const void *X, const int incX) 7 | { 8 | #define BASE float 9 | #include "source_nrm2_c.h" 10 | #undef BASE 11 | } 12 | -------------------------------------------------------------------------------- /gsl-an/cblas/snrm2.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | float 6 | cblas_snrm2 (const int N, const float *X, const int incX) 7 | { 8 | #define BASE float 9 | #include "source_nrm2_r.h" 10 | #undef BASE 11 | } 12 | -------------------------------------------------------------------------------- /gsl-an/matrix/matrix.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | /* Compile all the inline matrix functions */ 6 | 7 | #define COMPILE_INLINE_STATIC 8 | #include "build.h" 9 | #include 10 | 11 | -------------------------------------------------------------------------------- /util/makefile.zlib: -------------------------------------------------------------------------------- 1 | # This file is part of the Astrometry.net suite. 2 | # Licensed under a 3-clause BSD style license - see LICENSE 3 | 4 | ZLIB_INC ?= $(shell pkg-config --cflags zlib 2>/dev/null) 5 | ZLIB_LIB ?= $(shell pkg-config --libs zlib 2>/dev/null || echo "-lz") 6 | -------------------------------------------------------------------------------- /gsl-an/cblas/icamax.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | CBLAS_INDEX 6 | cblas_icamax (const int N, const void *X, const int incX) 7 | { 8 | #define BASE float 9 | #include "source_iamax_c.h" 10 | #undef BASE 11 | } 12 | -------------------------------------------------------------------------------- /net/templates/user/display_name.html: -------------------------------------------------------------------------------- 1 | {% if user %} 2 | 3 | {{user.get_profile.display_name}} 4 | ({{user.id}}) 5 | 6 | {% else %} 7 | Anonymous 8 | {% endif %} 9 | -------------------------------------------------------------------------------- /gsl-an/cblas/cscal.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | void 6 | cblas_cscal (const int N, const void *alpha, void *X, const int incX) 7 | { 8 | #define BASE float 9 | #include "source_scal_c.h" 10 | #undef BASE 11 | } 12 | -------------------------------------------------------------------------------- /gsl-an/cblas/idamax.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | CBLAS_INDEX 6 | cblas_idamax (const int N, const double *X, const int incX) 7 | { 8 | #define BASE double 9 | #include "source_iamax_r.h" 10 | #undef BASE 11 | } 12 | -------------------------------------------------------------------------------- /gsl-an/cblas/isamax.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | CBLAS_INDEX 6 | cblas_isamax (const int N, const float *X, const int incX) 7 | { 8 | #define BASE float 9 | #include "source_iamax_r.h" 10 | #undef BASE 11 | } 12 | -------------------------------------------------------------------------------- /gsl-an/cblas/izamax.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | CBLAS_INDEX 6 | cblas_izamax (const int N, const void *X, const int incX) 7 | { 8 | #define BASE double 9 | #include "source_iamax_c.h" 10 | #undef BASE 11 | } 12 | -------------------------------------------------------------------------------- /gsl-an/cblas/sscal.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | void 6 | cblas_sscal (const int N, const float alpha, float *X, const int incX) 7 | { 8 | #define BASE float 9 | #include "source_scal_r.h" 10 | #undef BASE 11 | } 12 | -------------------------------------------------------------------------------- /gsl-an/cblas/zscal.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | void 6 | cblas_zscal (const int N, const void *alpha, void *X, const int incX) 7 | { 8 | #define BASE double 9 | #include "source_scal_c.h" 10 | #undef BASE 11 | } 12 | -------------------------------------------------------------------------------- /gsl-an/cblas/csscal.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | void 6 | cblas_csscal (const int N, const float alpha, void *X, const int incX) 7 | { 8 | #define BASE float 9 | #include "source_scal_c_s.h" 10 | #undef BASE 11 | } 12 | -------------------------------------------------------------------------------- /gsl-an/cblas/cswap.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | void 6 | cblas_cswap (const int N, void *X, const int incX, void *Y, const int incY) 7 | { 8 | #define BASE float 9 | #include "source_swap_c.h" 10 | #undef BASE 11 | } 12 | -------------------------------------------------------------------------------- /gsl-an/cblas/dscal.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | void 6 | cblas_dscal (const int N, const double alpha, double *X, const int incX) 7 | { 8 | #define BASE double 9 | #include "source_scal_r.h" 10 | #undef BASE 11 | } 12 | -------------------------------------------------------------------------------- /gsl-an/cblas/srotmg.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | void 6 | cblas_srotmg (float *d1, float *d2, float *b1, const float b2, float *P) 7 | { 8 | #define BASE float 9 | #include "source_rotmg.h" 10 | #undef BASE 11 | } 12 | -------------------------------------------------------------------------------- /gsl-an/cblas/zdscal.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | void 6 | cblas_zdscal (const int N, const double alpha, void *X, const int incX) 7 | { 8 | #define BASE double 9 | #include "source_scal_c_s.h" 10 | #undef BASE 11 | } 12 | -------------------------------------------------------------------------------- /gsl-an/cblas/zswap.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | void 6 | cblas_zswap (const int N, void *X, const int incX, void *Y, const int incY) 7 | { 8 | #define BASE double 9 | #include "source_swap_c.h" 10 | #undef BASE 11 | } 12 | -------------------------------------------------------------------------------- /net/templates/form_ajax.css: -------------------------------------------------------------------------------- 1 | 14 | -------------------------------------------------------------------------------- /net/templates/tag/list.html: -------------------------------------------------------------------------------- 1 |
    2 | {% for tag in tags %} 3 | {% include 'tag/tag.html' with tag=tag recipient_id=recipient_id recipient_owner=recipient_owner category=category next=next %} 4 | {% empty %} 5 | No tags. 6 | {% endfor %} 7 |
8 | -------------------------------------------------------------------------------- /net/templates/user/index_name.html: -------------------------------------------------------------------------------- 1 | {% extends 'user/index.html' %} 2 | 3 | {% block search_settings %} 4 | {{ name_search_form.query }} 5 | 6 | {% endblock %} 7 | 8 | {% block search_results %} 9 | {{ block.super }} 10 | {% endblock %} 11 | -------------------------------------------------------------------------------- /gsl-an/cblas/drotmg.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | void 6 | cblas_drotmg (double *d1, double *d2, double *b1, const double b2, double *P) 7 | { 8 | #define BASE double 9 | #include "source_rotmg.h" 10 | #undef BASE 11 | } 12 | -------------------------------------------------------------------------------- /gsl-an/cblas/sswap.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | void 6 | cblas_sswap (const int N, float *X, const int incX, float *Y, const int incY) 7 | { 8 | #define BASE float 9 | #include "source_swap_r.h" 10 | #undef BASE 11 | } 12 | -------------------------------------------------------------------------------- /blind/cut-table.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | #ifndef CUT_TABLE_H 7 | #define CUT_TABLE_H 8 | 9 | int cut_table(const char* infn, const char* outfn, int N); 10 | 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /catalogs/openngc-names-c.awk: -------------------------------------------------------------------------------- 1 | # This file is part of the Astrometry.net suite. 2 | # Licensed under a 3-clause BSD style license - see LICENSE 3 | 4 | { 5 | print "{ .is_ngc = " ($1 ? "TRUE" : "FALSE") ","; 6 | print " .id = " $2 ","; 7 | print " .name = \"" $3 "\""; 8 | print "},"; 9 | } 10 | -------------------------------------------------------------------------------- /net/settings_test.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import 2 | # settings_test.py 3 | from astrometry.net.settings_common import * 4 | 5 | ENABLE_SOCIAL = False 6 | 7 | DATABASES['default']['ENGINE'] = 'django.db.backends.sqlite3' 8 | DATABASES['default']['NAME'] = 'django.sqlite3' 9 | 10 | 11 | -------------------------------------------------------------------------------- /net/templates/hideable/publicly_visible.html: -------------------------------------------------------------------------------- 1 | {% if hideable.publicly_visible == 'y' %} 2 | yes | no 3 | {% else %} 4 | yes | no 5 | {% endif %} 6 | -------------------------------------------------------------------------------- /gsl-an/cblas/ccopy.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | void 6 | cblas_ccopy (const int N, const void *X, const int incX, void *Y, 7 | const int incY) 8 | { 9 | #define BASE float 10 | #include "source_copy_c.h" 11 | #undef BASE 12 | } 13 | -------------------------------------------------------------------------------- /gsl-an/cblas/dswap.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | void 6 | cblas_dswap (const int N, double *X, const int incX, double *Y, 7 | const int incY) 8 | { 9 | #define BASE double 10 | #include "source_swap_r.h" 11 | #undef BASE 12 | } 13 | -------------------------------------------------------------------------------- /gsl-an/cblas/scopy.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | void 6 | cblas_scopy (const int N, const float *X, const int incX, float *Y, 7 | const int incY) 8 | { 9 | #define BASE float 10 | #include "source_copy_r.h" 11 | #undef BASE 12 | } 13 | -------------------------------------------------------------------------------- /gsl-an/cblas/zcopy.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | void 6 | cblas_zcopy (const int N, const void *X, const int incX, void *Y, 7 | const int incY) 8 | { 9 | #define BASE double 10 | #include "source_copy_c.h" 11 | #undef BASE 12 | } 13 | -------------------------------------------------------------------------------- /net/migrate_scripts/18826.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE net_submission ADD COLUMN positional_error double precision; 2 | ALTER TABLE net_submission ADD COLUMN center_ra double precision; 3 | ALTER TABLE net_submission ADD COLUMN center_dec double precision; 4 | ALTER TABLE net_submission ADD COLUMN radius double precision; 5 | -------------------------------------------------------------------------------- /blind/pnpoly.h: -------------------------------------------------------------------------------- 1 | /* 2 | See the file "pnpoly.c" for copyright and license information. 3 | */ 4 | 5 | /* 6 | Returns 1 if the point (x,y) is inside the polygon defined by the set of points 7 | (xp,yp) of length "npol". 8 | */ 9 | int point_in_poly(double* xp, double* yp, int npol, double x, double y); 10 | -------------------------------------------------------------------------------- /gsl-an/cblas/dcopy.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | void 6 | cblas_dcopy (const int N, const double *X, const int incX, double *Y, 7 | const int incY) 8 | { 9 | #define BASE double 10 | #include "source_copy_r.h" 11 | #undef BASE 12 | } 13 | -------------------------------------------------------------------------------- /net/migrate_scripts/19011.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE net_submission ADD COLUMN album_id integer; 2 | ALTER TABLE net_album ADD COLUMN user_id integer REFERENCES auth_user(id); 3 | ALTER TABLE net_album ADD COLUMN title varchar(64) NOT NULL; 4 | ALTER TABLE net_userprofile ALTER COLUMN display_name TYPE varchar(64); 5 | 6 | 7 | -------------------------------------------------------------------------------- /net/templates/flag/chooser.html: -------------------------------------------------------------------------------- 1 | {% for flag in flags %} 2 |
3 | {% endfor %} 4 | -------------------------------------------------------------------------------- /net/templates/openid/failure.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | OpenID failed 6 | 7 | 8 |

OpenID failed

9 |

{{ message|escape }}

10 | 11 | 12 | -------------------------------------------------------------------------------- /doc/api.rst: -------------------------------------------------------------------------------- 1 | Astrometry.net Python code API reference 2 | ======================================== 3 | 4 | * :ref:`api_util` 5 | 6 | util 7 | ---- 8 | 9 | * :ref:`ttime` 10 | 11 | libkd 12 | ----- 13 | 14 | * :ref:`pykd` 15 | 16 | Flat list 17 | --------- 18 | 19 | * :class:`~astrometry.util.util.Tan` 20 | 21 | -------------------------------------------------------------------------------- /gsl-an/cblas/srotm.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | void 6 | cblas_srotm (const int N, float *X, const int incX, float *Y, const int incY, 7 | const float *P) 8 | { 9 | #define BASE float 10 | #include "source_rotm.h" 11 | #undef BASE 12 | } 13 | -------------------------------------------------------------------------------- /gsl-an/cblas/drotm.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | void 6 | cblas_drotm (const int N, double *X, const int incX, double *Y, 7 | const int incY, const double *P) 8 | { 9 | #define BASE double 10 | #include "source_rotm.h" 11 | #undef BASE 12 | } 13 | -------------------------------------------------------------------------------- /gsl-an/cblas/caxpy.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | void 6 | cblas_caxpy (const int N, const void *alpha, const void *X, const int incX, 7 | void *Y, const int incY) 8 | { 9 | #define BASE float 10 | #include "source_axpy_c.h" 11 | #undef BASE 12 | } 13 | -------------------------------------------------------------------------------- /gsl-an/cblas/saxpy.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | void 6 | cblas_saxpy (const int N, const float alpha, const float *X, const int incX, 7 | float *Y, const int incY) 8 | { 9 | #define BASE float 10 | #include "source_axpy_r.h" 11 | #undef BASE 12 | } 13 | -------------------------------------------------------------------------------- /gsl-an/cblas/srot.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | void 6 | cblas_srot (const int N, float *X, const int incX, float *Y, const int incY, 7 | const float c, const float s) 8 | { 9 | #define BASE float 10 | #include "source_rot.h" 11 | #undef BASE 12 | } 13 | -------------------------------------------------------------------------------- /gsl-an/cblas/zaxpy.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | void 6 | cblas_zaxpy (const int N, const void *alpha, const void *X, const int incX, 7 | void *Y, const int incY) 8 | { 9 | #define BASE double 10 | #include "source_axpy_c.h" 11 | #undef BASE 12 | } 13 | -------------------------------------------------------------------------------- /gsl-an/cblas/daxpy.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | void 6 | cblas_daxpy (const int N, const double alpha, const double *X, const int incX, 7 | double *Y, const int incY) 8 | { 9 | #define BASE double 10 | #include "source_axpy_r.h" 11 | #undef BASE 12 | } 13 | -------------------------------------------------------------------------------- /gsl-an/cblas/drot.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | void 6 | cblas_drot (const int N, double *X, const int incX, double *Y, const int incY, 7 | const double c, const double s) 8 | { 9 | #define BASE double 10 | #include "source_rot.h" 11 | #undef BASE 12 | } 13 | -------------------------------------------------------------------------------- /net/templates/user/list.css: -------------------------------------------------------------------------------- 1 | 17 | -------------------------------------------------------------------------------- /net/templates/user_image/menu.html: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /include/astrometry/blindutils.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | #ifndef SCRIPTUTILS_H 7 | #define SCRIPTUTILS_H 8 | 9 | #include "astrometry/bl.h" 10 | 11 | int parse_depth_string(il* depths, const char* str); 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /include/astrometry/tabsort.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | #ifndef TABSORT_H 7 | #define TABSORT_H 8 | 9 | int tabsort(const char* infn, const char* outfn, const char* colname, 10 | int descending); 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /libkd/kdint_etype_d.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of libkd. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | typedef double etype; 7 | 8 | #define ETYPE_INTEGER 0 9 | 10 | #define ETYPE_MAX KDT_INFTY_DOUBLE 11 | #define ETYPE_MIN -KDT_INFTY_DOUBLE 12 | 13 | #define ETYPE d 14 | #define ETYPE_M d 15 | 16 | -------------------------------------------------------------------------------- /net/templates/footer.html: -------------------------------------------------------------------------------- 1 |

2 | This project is partially supported by the US National Science Foundation, 3 | the US National Aeronautics and Space Administration, and the Canadian 4 | National Science and Engineering Research Council. None of the views 5 | expressed on this site represent those of the funding agencies. 6 |

7 | -------------------------------------------------------------------------------- /include/astrometry/bl-nl.ph: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | //#define NODE_NUMDATA(node) ((number*)NODE_DATA(node)) 7 | 8 | #define NLFGLUE2(n,f) n ## _ ## f 9 | #define NLFGLUE(n,f) NLFGLUE2(n,f) 10 | #define NLF(func) NLFGLUE(nl, func) 11 | 12 | -------------------------------------------------------------------------------- /catalogs/openngc-entries-c.awk: -------------------------------------------------------------------------------- 1 | # This file is part of the Astrometry.net suite. 2 | # Licensed under a 3-clause BSD style license - see LICENSE 3 | 4 | { 5 | print "{ .is_ngc = " ($1 ? "TRUE" : "FALSE") ","; 6 | print " .id = " $2 ","; 7 | print " .ra = " $3 ","; 8 | print " .dec = " $4 ","; 9 | print " .size = " $5 ","; 10 | print "},"; 11 | } 12 | -------------------------------------------------------------------------------- /libkd/kdint_etype_s.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of libkd. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | typedef u16 etype; 7 | 8 | #define ETYPE_INTEGER 1 9 | 10 | #define ETYPE_MAX 0xffffu 11 | #define ETYPE_MIN 0 12 | 13 | #define ETYPE s 14 | #define ETYPE_M s 15 | 16 | //#define ETYPE_KDT_DATA KDT_DATA_U16 17 | 18 | -------------------------------------------------------------------------------- /libkd/kdint_etype_u.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of libkd. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | typedef u32 etype; 7 | 8 | #define ETYPE_INTEGER 1 9 | 10 | #define ETYPE_MAX 0xffffffffu 11 | #define ETYPE_MIN 0 12 | 13 | #define ETYPE u 14 | #define ETYPE_M u 15 | 16 | //#define ETYPE_KDT_DATA KDT_DATA_U32 17 | -------------------------------------------------------------------------------- /net/templates/user_image/index_recent.html: -------------------------------------------------------------------------------- 1 | {% extends 'user_image/index.html' %} 2 | 3 | {% block title %} 4 | {{block.super}} > 5 | Recent 6 | {% endblock %} 7 | 8 | {% block user_image_index_content %} 9 | {% include 'user_image/paginated_image_set.html' with image_page=image_page %} 10 | {% endblock %} 11 | -------------------------------------------------------------------------------- /gsl-an/cblas/cdotu_sub.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | void 6 | cblas_cdotu_sub (const int N, const void *X, const int incX, const void *Y, 7 | const int incY, void *result) 8 | { 9 | #define BASE float 10 | #define CONJ_SIGN 1.0 11 | #include "source_dot_c.h" 12 | #undef CONJ_SIGN 13 | #undef BASE 14 | } 15 | -------------------------------------------------------------------------------- /gsl-an/cblas/zdotu_sub.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | void 6 | cblas_zdotu_sub (const int N, const void *X, const int incX, const void *Y, 7 | const int incY, void *result) 8 | { 9 | #define BASE double 10 | #define CONJ_SIGN 1.0 11 | #include "source_dot_c.h" 12 | #undef CONJ_SIGN 13 | #undef BASE 14 | } 15 | -------------------------------------------------------------------------------- /libkd/kdint_etype_f.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of libkd. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | typedef float etype; 7 | 8 | #define ETYPE_INTEGER 0 9 | 10 | #define ETYPE_MAX KDT_INFTY_FLOAT 11 | #define ETYPE_MIN -KDT_INFTY_FLOAT 12 | 13 | #define ETYPE f 14 | #define ETYPE_M f 15 | 16 | //#define ETYPE_KDT_DATA KDT_DATA_FLOAT 17 | -------------------------------------------------------------------------------- /doc/api-util-py.rst: -------------------------------------------------------------------------------- 1 | Astrometry.net python API reference: astrometry.util 2 | ==================================================== 3 | 4 | .. currentmodule:: astrometry.util 5 | 6 | .. _api_util: 7 | 8 | WCS handling 9 | ------------ 10 | 11 | .. autoclass:: astrometry.util.util.Tan 12 | :members: 13 | 14 | .. autoclass:: astrometry.util.util.tan_t 15 | :members: 16 | 17 | -------------------------------------------------------------------------------- /gsl-an/cblas/cdotc_sub.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | void 6 | cblas_cdotc_sub (const int N, const void *X, const int incX, const void *Y, 7 | const int incY, void *result) 8 | { 9 | #define BASE float 10 | #define CONJ_SIGN (-1.0) 11 | #include "source_dot_c.h" 12 | #undef CONJ_SIGN 13 | #undef BASE 14 | } 15 | -------------------------------------------------------------------------------- /gsl-an/cblas/zdotc_sub.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | void 6 | cblas_zdotc_sub (const int N, const void *X, const int incX, const void *Y, 7 | const int incY, void *result) 8 | { 9 | #define BASE double 10 | #define CONJ_SIGN (-1.0) 11 | #include "source_dot_c.h" 12 | #undef CONJ_SIGN 13 | #undef BASE 14 | } 15 | -------------------------------------------------------------------------------- /libkd/kdint_dtype_u.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of libkd. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | typedef u32 dtype; 7 | 8 | #define DTYPE_INTEGER 1 9 | #define DTYPE_DOUBLE 0 10 | 11 | #define DTYPE_MAX UINT32_MAX 12 | #define DTYPE_MIN 0 13 | 14 | #define DTYPE u 15 | #define DTYPE_M u 16 | 17 | #define DTYPE_KDT_DATA KDT_DATA_U32 18 | -------------------------------------------------------------------------------- /net/settings_ison.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import 2 | # settings_ison.py 3 | from .settings_common import * 4 | 5 | TEMPDIR = '/data2/tmp' 6 | DATABASES['default']['NAME'] = 'an-ison' 7 | 8 | LOGGING['loggers']['django.request']['level'] = 'WARN' 9 | 10 | SESSION_COOKIE_NAME = 'IsonAstrometrySession' 11 | 12 | ssh_solver_config = 'an-ison' 13 | sitename = 'ison' 14 | 15 | -------------------------------------------------------------------------------- /libkd/kdint_dtype_s.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of libkd. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | typedef u16 dtype; 7 | 8 | #define DTYPE_INTEGER 1 9 | #define DTYPE_DOUBLE 0 10 | 11 | #define DTYPE_MAX UINT16_MAX 12 | #define DTYPE_MIN 0 13 | 14 | #define DTYPE s 15 | #define DTYPE_M s 16 | 17 | #define DTYPE_KDT_DATA KDT_DATA_U16 18 | 19 | -------------------------------------------------------------------------------- /man/wcs-grab.1: -------------------------------------------------------------------------------- 1 | .TH WCS-GRAB "1" "July 2015" "0.56" "astrometry.net" 2 | .SH NAME 3 | wcs-grab \- Try to interpret an existing WCS header. 4 | .SH SYNOPSIS 5 | .B wcs-grab 6 | \fIinput-filename extension output-filename\fR 7 | 8 | .SH AUTHOR 9 | The Astrometry.net team. Principal investigators are David W. Hogg (NYU) and 10 | Dustin Lang (CMU). 11 | .SH SEE ALSO 12 | http://astrometry.net 13 | -------------------------------------------------------------------------------- /net/templates/support.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | 3 | {% block title %}Support{% endblock %} 4 | 5 | {% block content %} 6 |

7 | Please post your questions on our Astrometry Google Group. 8 |

9 |

10 | For questions that can't be asked there, please email support at astrometry.net 11 |

12 | {% endblock %} 13 | 14 | -------------------------------------------------------------------------------- /net/templates/user_image/index_all.html: -------------------------------------------------------------------------------- 1 | {% extends 'user_image/index.html' %} 2 | 3 | {% block title %} 4 | {{block.super}} > 5 | All 6 | {% endblock %} 7 | 8 | {% block user_image_index_content %} 9 | {% include 'user_image/paginated_image_set.html' with image_page=image_page thumbnail_size=request.GET.thumbnail_size %} 10 | {% endblock %} 11 | 12 | -------------------------------------------------------------------------------- /gsl-an/grab-gsl-sources.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | GSL=/tmp/gsl-1.16 4 | 5 | for x in COPYING README *.h config.h.in; do 6 | echo $x 7 | cp ${GSL}/$x . 8 | done 9 | 10 | for y in cblas blas block linalg matrix sys vector err; do 11 | for x in $y/*.c; do 12 | echo $x 13 | cp ${GSL}/$x $y 14 | done 15 | done 16 | 17 | for x in gsl/*.h; do 18 | echo $x 19 | cp ${GSL}/$x gsl/ 20 | done 21 | 22 | -------------------------------------------------------------------------------- /net/templates/submission/by_user.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | 3 | {% block inline_css %} 4 | {{block.super}} 5 | {% include 'submission/list.css' %} 6 | {% endblock %} 7 | 8 | {% block title %}Submissions Summary for User {{ submitter.id }} {% endblock %} 9 | {% block content %} 10 | {% include 'submission/list.html' with submissions=submitter.submissions.all %} 11 | {% endblock content %} 12 | -------------------------------------------------------------------------------- /gsl-an/cblas/sdot.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | float 6 | cblas_sdot (const int N, const float *X, const int incX, const float *Y, 7 | const int incY) 8 | { 9 | #define INIT_VAL 0.0 10 | #define ACC_TYPE float 11 | #define BASE float 12 | #include "source_dot_r.h" 13 | #undef ACC_TYPE 14 | #undef BASE 15 | #undef INIT_VAL 16 | } 17 | -------------------------------------------------------------------------------- /libkd/kdint_dtype_f.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of libkd. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | typedef float dtype; 7 | 8 | #define DTYPE_INTEGER 0 9 | #define DTYPE_DOUBLE 0 10 | 11 | #define DTYPE_MAX KDT_INFTY_FLOAT 12 | #define DTYPE_MIN -KDT_INFTY_FLOAT 13 | 14 | #define DTYPE f 15 | #define DTYPE_M f 16 | 17 | #define DTYPE_KDT_DATA KDT_DATA_FLOAT 18 | -------------------------------------------------------------------------------- /gsl-an/cblas/ddot.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | double 6 | cblas_ddot (const int N, const double *X, const int incX, const double *Y, 7 | const int incY) 8 | { 9 | #define INIT_VAL 0.0 10 | #define ACC_TYPE double 11 | #define BASE double 12 | #include "source_dot_r.h" 13 | #undef ACC_TYPE 14 | #undef BASE 15 | #undef INIT_VAL 16 | } 17 | -------------------------------------------------------------------------------- /gsl-an/cblas/dsdot.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | double 6 | cblas_dsdot (const int N, const float *X, const int incX, const float *Y, 7 | const int incY) 8 | { 9 | #define INIT_VAL 0.0 10 | #define ACC_TYPE double 11 | #define BASE float 12 | #include "source_dot_r.h" 13 | #undef ACC_TYPE 14 | #undef BASE 15 | #undef INIT_VAL 16 | } 17 | -------------------------------------------------------------------------------- /include/astrometry/image2xy.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | #ifndef IMAGE2XY_H 7 | #define IMAGE2XY_H 8 | 9 | #include 10 | 11 | #include "astrometry/simplexy.h" 12 | 13 | int image2xy_run(simplexy_t* s, 14 | int downsample, int downsample_as_required); 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /include/astrometry/new-wcs.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | #ifndef NEW_WCS_H 6 | #define NEW_WCS_H 7 | 8 | #include "astrometry/an-bool.h" 9 | 10 | int new_wcs(const char* infn, int extension, 11 | const char* wcsfn, const char* outfn, 12 | anbool include_data); 13 | 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /libkd/kdint_dtype_d.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of libkd. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | typedef double dtype; 7 | 8 | #define DTYPE_INTEGER 0 9 | #define DTYPE_DOUBLE 1 10 | 11 | #define DTYPE_MAX KDT_INFTY_DOUBLE 12 | #define DTYPE_MIN -KDT_INFTY_DOUBLE 13 | 14 | #define DTYPE d 15 | #define DTYPE_M d 16 | 17 | #define DTYPE_KDT_DATA KDT_DATA_DOUBLE 18 | -------------------------------------------------------------------------------- /man/fits-guess-scale.1: -------------------------------------------------------------------------------- 1 | .TH FITS-GUESS-SCALE "1" "July 2015" "0.56" "astrometry.net" 2 | .SH NAME 3 | fits-guess-scale \- Try to guess the scale of an image based on FITS headers. 4 | .SH SYNOPSIS 5 | .B 6 | fits\-guess\-scale 7 | \fIFITS-file\fR 8 | .SH AUTHOR 9 | The Astrometry.net team. Principal investigators are David W. Hogg (NYU) and 10 | Dustin Lang (CMU). 11 | .SH SEE ALSO 12 | http://astrometry.net 13 | -------------------------------------------------------------------------------- /gsl-an/cblas/cher.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l2.h" 5 | 6 | void 7 | cblas_cher (const enum CBLAS_ORDER order, const enum CBLAS_UPLO Uplo, 8 | const int N, const float alpha, const void *X, const int incX, 9 | void *A, const int lda) 10 | { 11 | #define BASE float 12 | #include "source_her.h" 13 | #undef BASE 14 | } 15 | -------------------------------------------------------------------------------- /gsl-an/cblas/ssyr.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l2.h" 5 | 6 | void 7 | cblas_ssyr (const enum CBLAS_ORDER order, const enum CBLAS_UPLO Uplo, 8 | const int N, const float alpha, const float *X, const int incX, 9 | float *A, const int lda) 10 | { 11 | #define BASE float 12 | #include "source_syr.h" 13 | #undef BASE 14 | } 15 | -------------------------------------------------------------------------------- /gsl-an/cblas/zher.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l2.h" 5 | 6 | void 7 | cblas_zher (const enum CBLAS_ORDER order, const enum CBLAS_UPLO Uplo, 8 | const int N, const double alpha, const void *X, const int incX, 9 | void *A, const int lda) 10 | { 11 | #define BASE double 12 | #include "source_her.h" 13 | #undef BASE 14 | } 15 | -------------------------------------------------------------------------------- /gsl-an/cblas/dsyr.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l2.h" 5 | 6 | void 7 | cblas_dsyr (const enum CBLAS_ORDER order, const enum CBLAS_UPLO Uplo, 8 | const int N, const double alpha, const double *X, const int incX, 9 | double *A, const int lda) 10 | { 11 | #define BASE double 12 | #include "source_syr.h" 13 | #undef BASE 14 | } 15 | -------------------------------------------------------------------------------- /gsl-an/cblas/sdsdot.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | 5 | float 6 | cblas_sdsdot (const int N, const float alpha, const float *X, const int incX, 7 | const float *Y, const int incY) 8 | { 9 | #define INIT_VAL alpha 10 | #define ACC_TYPE double 11 | #define BASE float 12 | #include "source_dot_r.h" 13 | #undef ACC_TYPE 14 | #undef BASE 15 | #undef INIT_VAL 16 | } 17 | -------------------------------------------------------------------------------- /include/astrometry/simplexy-common.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | /* 7 | Common declarations and syntactic candy. 8 | */ 9 | 10 | #ifndef SIMPLEXY_COMMON_H 11 | #define SIMPLEXY_COMMON_H 12 | 13 | #include 14 | 15 | #define PI M_PI 16 | 17 | #define FREEVEC(a) {if((a)!=NULL) free((a)); (a)=NULL;} 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /libkd/kdint_ttype_s.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of libkd. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | typedef u16 ttype; 7 | 8 | #define BIGTTYPE u32 9 | #define BIGTTYPE_MAX UINT32_MAX 10 | typedef u32 bigttype; 11 | 12 | #define TTYPE_INTEGER 1 13 | 14 | #define TTYPE_MIN 0 15 | #define TTYPE_MAX UINT16_MAX 16 | #define TTYPE_SQRT_MAX UINT8_MAX 17 | 18 | #define TTYPE s 19 | #define TTYPE_M s 20 | -------------------------------------------------------------------------------- /libkd/kdint_ttype_u.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of libkd. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | typedef u32 ttype; 7 | 8 | #define BIGTTYPE u64 9 | #define BIGTTYPE_MAX UINT64_MAX 10 | typedef u64 bigttype; 11 | 12 | #define TTYPE_INTEGER 1 13 | 14 | #define TTYPE_MIN 0 15 | #define TTYPE_MAX UINT32_MAX 16 | #define TTYPE_SQRT_MAX UINT16_MAX 17 | 18 | #define TTYPE u 19 | #define TTYPE_M u 20 | -------------------------------------------------------------------------------- /gsl-an/cblas/cgerc.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l2.h" 5 | 6 | void 7 | cblas_cgerc (const enum CBLAS_ORDER order, const int M, const int N, 8 | const void *alpha, const void *X, const int incX, const void *Y, 9 | const int incY, void *A, const int lda) 10 | { 11 | #define BASE float 12 | #include "source_gerc.h" 13 | #undef BASE 14 | } 15 | -------------------------------------------------------------------------------- /gsl-an/cblas/cgeru.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l2.h" 5 | 6 | void 7 | cblas_cgeru (const enum CBLAS_ORDER order, const int M, const int N, 8 | const void *alpha, const void *X, const int incX, const void *Y, 9 | const int incY, void *A, const int lda) 10 | { 11 | #define BASE float 12 | #include "source_geru.h" 13 | #undef BASE 14 | } 15 | -------------------------------------------------------------------------------- /gsl-an/cblas/sger.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l2.h" 5 | 6 | void 7 | cblas_sger (const enum CBLAS_ORDER order, const int M, const int N, 8 | const float alpha, const float *X, const int incX, const float *Y, 9 | const int incY, float *A, const int lda) 10 | { 11 | #define BASE float 12 | #include "source_ger.h" 13 | #undef BASE 14 | } 15 | -------------------------------------------------------------------------------- /gsl-an/cblas/zgerc.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l2.h" 5 | 6 | void 7 | cblas_zgerc (const enum CBLAS_ORDER order, const int M, const int N, 8 | const void *alpha, const void *X, const int incX, const void *Y, 9 | const int incY, void *A, const int lda) 10 | { 11 | #define BASE double 12 | #include "source_gerc.h" 13 | #undef BASE 14 | } 15 | -------------------------------------------------------------------------------- /gsl-an/cblas/zgeru.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l2.h" 5 | 6 | void 7 | cblas_zgeru (const enum CBLAS_ORDER order, const int M, const int N, 8 | const void *alpha, const void *X, const int incX, const void *Y, 9 | const int incY, void *A, const int lda) 10 | { 11 | #define BASE double 12 | #include "source_geru.h" 13 | #undef BASE 14 | } 15 | -------------------------------------------------------------------------------- /include/astrometry/indexset.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | #ifndef AN_INDEXSET_H 7 | #define AN_INDEXSET_H 8 | 9 | #include "astrometry/index.h" 10 | #include "astrometry/an-bool.h" 11 | #include "astrometry/anqfits.h" 12 | #include "astrometry/bl.h" 13 | 14 | void indexset_get(const char* name, pl* indexlist); 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /gsl-an/cblas/dger.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l2.h" 5 | 6 | void 7 | cblas_dger (const enum CBLAS_ORDER order, const int M, const int N, 8 | const double alpha, const double *X, const int incX, 9 | const double *Y, const int incY, double *A, const int lda) 10 | { 11 | #define BASE double 12 | #include "source_ger.h" 13 | #undef BASE 14 | } 15 | -------------------------------------------------------------------------------- /util/makefile.anbase: -------------------------------------------------------------------------------- 1 | # This file is part of the Astrometry.net suite. 2 | # Licensed under a 3-clause BSD style license - see LICENSE 3 | 4 | ANBASE_DIR := $(BASEDIR)/util 5 | ANBASE_LIB_FILE ?= $(ANBASE_DIR)/libanbase.a 6 | 7 | ANBASE_CFLAGS := 8 | ANBASE_INC := -I$(INCLUDE_BASE_DIR) -I$(INCLUDE_DIR) 9 | ANBASE_LIB := 10 | ANBASE_SLIB := $(ANBASE_LIB_FILE) 11 | 12 | # $(ANBASE_LIB_FILE): 13 | # $(MAKE) -C $(ANBASE_DIR) libanbase.a 14 | 15 | -------------------------------------------------------------------------------- /net/doc/models.rst: -------------------------------------------------------------------------------- 1 | .. _nova_models: 2 | 3 | Nova.astrometry.net: Data model 4 | =============================== 5 | 6 | * Submission: solve parameters + DiskFile upload -> set of UserImages 7 | * Job: UserImage + Astrometry.net processing parameters + Calibration result 8 | * UserImage: an Image submitted by a User. (Multiple Users could submit the same Image). 9 | * DiskFile 10 | * Image (DiskFile + image-specifics) 11 | 12 | 13 | * Calibration 14 | -------------------------------------------------------------------------------- /net/templates/user/albums.html: -------------------------------------------------------------------------------- 1 | {% extends 'user/base.html' %} 2 | 3 | {% block inline_css %} 4 | {{block.super}} 5 | {% include 'album/album_set.css' %} 6 | {% endblock %} 7 | 8 | {% block title %} 9 | {{block.super}} > 10 | Albums 11 | {% endblock %} 12 | 13 | {% block user_content %} 14 | {% include 'album/paginated_album_set.html' with album_page=album_page %} 15 | {% endblock %} 16 | -------------------------------------------------------------------------------- /net/templates/user_image/index_user.html: -------------------------------------------------------------------------------- 1 | {% extends 'user_image/index.html' %} 2 | 3 | {% block title %} 4 | {{block.super}} > 5 | {% include 'user/display_name.html' with user=display_user %} > 6 | Images 7 | {% endblock %} 8 | 9 | {% block user_image_index_content %} 10 | {% include 'user_image/paginated_image_set.html' with image_page=image_page %} 11 | {% endblock %} 12 | 13 | -------------------------------------------------------------------------------- /gsl-an/cblas/cher2.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l2.h" 5 | 6 | void 7 | cblas_cher2 (const enum CBLAS_ORDER order, const enum CBLAS_UPLO Uplo, 8 | const int N, const void *alpha, const void *X, const int incX, 9 | const void *Y, const int incY, void *A, const int lda) 10 | { 11 | #define BASE float 12 | #include "source_her2.h" 13 | #undef BASE 14 | } 15 | -------------------------------------------------------------------------------- /gsl-an/cblas/zher2.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l2.h" 5 | 6 | void 7 | cblas_zher2 (const enum CBLAS_ORDER order, const enum CBLAS_UPLO Uplo, 8 | const int N, const void *alpha, const void *X, const int incX, 9 | const void *Y, const int incY, void *A, const int lda) 10 | { 11 | #define BASE double 12 | #include "source_her2.h" 13 | #undef BASE 14 | } 15 | -------------------------------------------------------------------------------- /gsl-an/cblas/ssyr2.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l2.h" 5 | 6 | void 7 | cblas_ssyr2 (const enum CBLAS_ORDER order, const enum CBLAS_UPLO Uplo, 8 | const int N, const float alpha, const float *X, const int incX, 9 | const float *Y, const int incY, float *A, const int lda) 10 | { 11 | #define BASE float 12 | #include "source_syr2.h" 13 | #undef BASE 14 | } 15 | -------------------------------------------------------------------------------- /net/tests.py: -------------------------------------------------------------------------------- 1 | """ 2 | This file demonstrates writing tests using the unittest module. These will pass 3 | when you run "manage.py test". 4 | 5 | Replace this with more appropriate tests for your application. 6 | """ 7 | 8 | from django.test import TestCase 9 | 10 | 11 | class SimpleTest(TestCase): 12 | def test_basic_addition(self): 13 | """ 14 | Tests that 1 + 1 always equals 2. 15 | """ 16 | self.assertEqual(1 + 1, 2) 17 | -------------------------------------------------------------------------------- /gsl-an/cblas/dsyr2.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l2.h" 5 | 6 | void 7 | cblas_dsyr2 (const enum CBLAS_ORDER order, const enum CBLAS_UPLO Uplo, 8 | const int N, const double alpha, const double *X, const int incX, 9 | const double *Y, const int incY, double *A, const int lda) 10 | { 11 | #define BASE double 12 | #include "source_syr2.h" 13 | #undef BASE 14 | } 15 | -------------------------------------------------------------------------------- /net/templates/user/user_images.html: -------------------------------------------------------------------------------- 1 | {% extends 'user/base.html' %} 2 | 3 | {% block inline_css %} 4 | {{block.super}} 5 | {% include 'user_image/image_set.css' %} 6 | {% endblock %} 7 | 8 | {% block title %} 9 | {{block.super}} > 10 | Images 11 | {% endblock %} 12 | 13 | {% block user_content %} 14 | {% include 'user_image/paginated_image_set.html' with image_page=image_page %} 15 | {% endblock %} 16 | -------------------------------------------------------------------------------- /include/astrometry/an-bool.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | #ifndef AN_BOOL_H 7 | #define AN_BOOL_H 8 | 9 | #include 10 | 11 | #ifndef TRUE 12 | #define TRUE 1 13 | #endif 14 | 15 | #ifndef FALSE 16 | #define FALSE 0 17 | #endif 18 | 19 | // This helps unconfuse SWIG; it doesn't seem to like uint8_t 20 | typedef unsigned char anbool; 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /libkd/kdint_ttype_f.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of libkd. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | typedef float ttype; 7 | 8 | #define BIGTTYPE float 9 | #define BIGTTYPE_MAX KDT_INFTY_FLOAT 10 | typedef float bigttype; 11 | 12 | #define TTYPE_INTEGER 0 13 | 14 | #define TTYPE_MIN -KDT_INFTY_FLOAT 15 | #define TTYPE_MAX KDT_INFTY_FLOAT 16 | #define TTYPE_SQRT_MAX 1e19 17 | 18 | #define TTYPE f 19 | #define TTYPE_M f 20 | 21 | -------------------------------------------------------------------------------- /net/templates/dashboard/user_images.html: -------------------------------------------------------------------------------- 1 | {% extends 'dashboard/base.html' %} 2 | 3 | {% block inline_css %} 4 | {{block.super}} 5 | {% include 'user_image/image_set.css' %} 6 | {% endblock %} 7 | 8 | {% block title %} 9 | {{block.super}} > 10 | My Images 11 | {% endblock %} 12 | 13 | {% block dashboard_content %} 14 | {% include 'user_image/paginated_image_set.html' with image_page=image_page %} 15 | {% endblock %} 16 | -------------------------------------------------------------------------------- /libkd/kdint_ttype_d.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of libkd. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | typedef double ttype; 7 | 8 | #define BIGTTYPE double 9 | #define BIGTTYPE_MAX KDT_INFTY_DOUBLE 10 | typedef double bigttype; 11 | 12 | #define TTYPE_INTEGER 0 13 | 14 | #define TTYPE_MIN -KDT_INFTY_DOUBLE 15 | #define TTYPE_MAX KDT_INFTY_DOUBLE 16 | #define TTYPE_SQRT_MAX 1e154 17 | 18 | #define TTYPE d 19 | #define TTYPE_M d 20 | 21 | -------------------------------------------------------------------------------- /net/settings_bbc.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import 2 | from .settings_common import * 3 | 4 | TEMPDIR = '/data2/tmp' 5 | DATABASES['default']['NAME'] = 'an-bbc' 6 | 7 | LOGGING['loggers']['django.request']['level'] = 'WARN' 8 | 9 | SESSION_COOKIE_NAME = 'BBCAstrometrySession' 10 | 11 | ssh_solver_config = 'an-bbc' 12 | sitename = 'bbc' 13 | 14 | SOCIAL_AUTH_GITHUB_KEY = github_secrets[sitename].key 15 | SOCIAL_AUTH_GITHUB_SECRET = github_secrets[sitename].secret 16 | -------------------------------------------------------------------------------- /gsl-an/cblas/chemv.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l2.h" 5 | 6 | void 7 | cblas_chemv (const enum CBLAS_ORDER order, const enum CBLAS_UPLO Uplo, 8 | const int N, const void *alpha, const void *A, const int lda, 9 | const void *X, const int incX, const void *beta, void *Y, 10 | const int incY) 11 | { 12 | #define BASE float 13 | #include "source_hemv.h" 14 | #undef BASE 15 | } 16 | -------------------------------------------------------------------------------- /gsl-an/cblas/ctrmv.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l2.h" 5 | 6 | void 7 | cblas_ctrmv (const enum CBLAS_ORDER order, const enum CBLAS_UPLO Uplo, 8 | const enum CBLAS_TRANSPOSE TransA, const enum CBLAS_DIAG Diag, 9 | const int N, const void *A, const int lda, void *X, 10 | const int incX) 11 | { 12 | #define BASE float 13 | #include "source_trmv_c.h" 14 | #undef BASE 15 | } 16 | -------------------------------------------------------------------------------- /gsl-an/cblas/strmv.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l2.h" 5 | 6 | void 7 | cblas_strmv (const enum CBLAS_ORDER order, const enum CBLAS_UPLO Uplo, 8 | const enum CBLAS_TRANSPOSE TransA, const enum CBLAS_DIAG Diag, 9 | const int N, const float *A, const int lda, float *X, 10 | const int incX) 11 | { 12 | #define BASE float 13 | #include "source_trmv_r.h" 14 | #undef BASE 15 | } 16 | -------------------------------------------------------------------------------- /gsl-an/cblas/strsv.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l2.h" 5 | 6 | void 7 | cblas_strsv (const enum CBLAS_ORDER order, const enum CBLAS_UPLO Uplo, 8 | const enum CBLAS_TRANSPOSE TransA, const enum CBLAS_DIAG Diag, 9 | const int N, const float *A, const int lda, float *X, 10 | const int incX) 11 | { 12 | #define BASE float 13 | #include "source_trsv_r.h" 14 | #undef BASE 15 | } 16 | -------------------------------------------------------------------------------- /gsl-an/cblas/ztrmv.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l2.h" 5 | 6 | void 7 | cblas_ztrmv (const enum CBLAS_ORDER order, const enum CBLAS_UPLO Uplo, 8 | const enum CBLAS_TRANSPOSE TransA, const enum CBLAS_DIAG Diag, 9 | const int N, const void *A, const int lda, void *X, 10 | const int incX) 11 | { 12 | #define BASE double 13 | #include "source_trmv_c.h" 14 | #undef BASE 15 | } 16 | -------------------------------------------------------------------------------- /net/settings_superstaging.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import 2 | # settings_supernova.py 3 | from .settings_common import * 4 | 5 | DATABASES['default']['NAME'] = 'an-superstaging' 6 | 7 | LOGGING['loggers']['django.request']['level'] = 'WARN' 8 | #LOGGING['loggers']['django.db']['level'] = 'INFO' 9 | 10 | SESSION_COOKIE_NAME = 'SuperstagingAstrometrySession' 11 | 12 | # Used in process_submissions 13 | ssh_solver_config = 'an-superstaging' 14 | sitename = 'superstaging' 15 | 16 | -------------------------------------------------------------------------------- /gsl-an/cblas/dtrmv.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l2.h" 5 | 6 | void 7 | cblas_dtrmv (const enum CBLAS_ORDER order, const enum CBLAS_UPLO Uplo, 8 | const enum CBLAS_TRANSPOSE TransA, const enum CBLAS_DIAG Diag, 9 | const int N, const double *A, const int lda, double *X, 10 | const int incX) 11 | { 12 | #define BASE double 13 | #include "source_trmv_r.h" 14 | #undef BASE 15 | } 16 | -------------------------------------------------------------------------------- /gsl-an/cblas/dtrsv.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l2.h" 5 | 6 | void 7 | cblas_dtrsv (const enum CBLAS_ORDER order, const enum CBLAS_UPLO Uplo, 8 | const enum CBLAS_TRANSPOSE TransA, const enum CBLAS_DIAG Diag, 9 | const int N, const double *A, const int lda, double *X, 10 | const int incX) 11 | { 12 | #define BASE double 13 | #include "source_trsv_r.h" 14 | #undef BASE 15 | } 16 | -------------------------------------------------------------------------------- /gsl-an/cblas/ssymv.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l2.h" 5 | 6 | void 7 | cblas_ssymv (const enum CBLAS_ORDER order, const enum CBLAS_UPLO Uplo, 8 | const int N, const float alpha, const float *A, const int lda, 9 | const float *X, const int incX, const float beta, float *Y, 10 | const int incY) 11 | { 12 | #define BASE float 13 | #include "source_symv.h" 14 | #undef BASE 15 | } 16 | -------------------------------------------------------------------------------- /gsl-an/cblas/zhemv.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l2.h" 5 | 6 | void 7 | cblas_zhemv (const enum CBLAS_ORDER order, const enum CBLAS_UPLO Uplo, 8 | const int N, const void *alpha, const void *A, const int lda, 9 | const void *X, const int incX, const void *beta, void *Y, 10 | const int incY) 11 | { 12 | #define BASE double 13 | #include "source_hemv.h" 14 | #undef BASE 15 | } 16 | -------------------------------------------------------------------------------- /net/templates/admin.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | 3 | {% block title %} 4 | {{block.super}} > Admin 5 | {% endblock %} 6 | 7 | {% block content %} 8 | 9 | process_submissions.py processes running: 10 | 11 | 12 | {% for p in procsubs %} 13 | 14 | 15 | 16 | 17 | {% endfor %} 18 |
pidwatchdog
{{ p.pid }}{{ p.watchdog }}
19 | 20 | {% endblock %} 21 | -------------------------------------------------------------------------------- /gsl-an/cblas/dsymv.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l2.h" 5 | 6 | void 7 | cblas_dsymv (const enum CBLAS_ORDER order, const enum CBLAS_UPLO Uplo, 8 | const int N, const double alpha, const double *A, const int lda, 9 | const double *X, const int incX, const double beta, double *Y, 10 | const int incY) 11 | { 12 | #define BASE double 13 | #include "source_symv.h" 14 | #undef BASE 15 | } 16 | -------------------------------------------------------------------------------- /sdss/__init__.py: -------------------------------------------------------------------------------- 1 | # This file is part of the Astrometry.net suite. 2 | # Licensed under a 3-clause BSD style license - see LICENSE 3 | from .dr7 import DR7 4 | from .dr8 import DR8 5 | from .dr9 import DR9 6 | from .dr10 import DR10 7 | 8 | from .common import band_name, band_index, band_names, cas_flags 9 | from .common import photo_flags1_info, photo_flags2_info, photo_flags1_map, photo_flags2_map 10 | from .common import munu_to_radec_deg, AsTransWrapper, AsTrans 11 | 12 | from .fields import * 13 | -------------------------------------------------------------------------------- /gsl-an/cblas/cherk.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l3.h" 5 | 6 | void 7 | cblas_cherk (const enum CBLAS_ORDER Order, const enum CBLAS_UPLO Uplo, 8 | const enum CBLAS_TRANSPOSE Trans, const int N, const int K, 9 | const float alpha, const void *A, const int lda, 10 | const float beta, void *C, const int ldc) 11 | { 12 | #define BASE float 13 | #include "source_herk.h" 14 | #undef BASE 15 | } 16 | -------------------------------------------------------------------------------- /man/tabsort.1: -------------------------------------------------------------------------------- 1 | .TH TABSORT "1" "July 2015" "0.56" "astrometry.net" 2 | .SH NAME 3 | tabsort \- Sort a FITS binary table based on values in one column. 4 | .SH SYNOPSIS 5 | .B 6 | tabsort 7 | [options] \fIcolumn-name\fR \fIinput-file\fR \fIoutput-file\fR 8 | .SH OPTIONS 9 | .TP 10 | \fB\-d\fR 11 | Sort in descending order (default: ascending) 12 | .SH AUTHOR 13 | The Astrometry.net team. Principal investigators are David W. Hogg (NYU) and 14 | Dustin Lang (CMU). 15 | .SH SEE ALSO 16 | http://astrometry.net 17 | -------------------------------------------------------------------------------- /gsl-an/cblas/csyrk.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l3.h" 5 | 6 | void 7 | cblas_csyrk (const enum CBLAS_ORDER Order, const enum CBLAS_UPLO Uplo, 8 | const enum CBLAS_TRANSPOSE Trans, const int N, const int K, 9 | const void *alpha, const void *A, const int lda, 10 | const void *beta, void *C, const int ldc) 11 | { 12 | #define BASE float 13 | #include "source_syrk_c.h" 14 | #undef BASE 15 | } 16 | -------------------------------------------------------------------------------- /gsl-an/cblas/ssyrk.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l3.h" 5 | 6 | void 7 | cblas_ssyrk (const enum CBLAS_ORDER Order, const enum CBLAS_UPLO Uplo, 8 | const enum CBLAS_TRANSPOSE Trans, const int N, const int K, 9 | const float alpha, const float *A, const int lda, 10 | const float beta, float *C, const int ldc) 11 | { 12 | #define BASE float 13 | #include "source_syrk_r.h" 14 | #undef BASE 15 | } 16 | -------------------------------------------------------------------------------- /gsl-an/cblas/zherk.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l3.h" 5 | 6 | void 7 | cblas_zherk (const enum CBLAS_ORDER Order, const enum CBLAS_UPLO Uplo, 8 | const enum CBLAS_TRANSPOSE Trans, const int N, const int K, 9 | const double alpha, const void *A, const int lda, 10 | const double beta, void *C, const int ldc) 11 | { 12 | #define BASE double 13 | #include "source_herk.h" 14 | #undef BASE 15 | } 16 | -------------------------------------------------------------------------------- /gsl-an/cblas/zsyrk.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l3.h" 5 | 6 | void 7 | cblas_zsyrk (const enum CBLAS_ORDER Order, const enum CBLAS_UPLO Uplo, 8 | const enum CBLAS_TRANSPOSE Trans, const int N, const int K, 9 | const void *alpha, const void *A, const int lda, 10 | const void *beta, void *C, const int ldc) 11 | { 12 | #define BASE double 13 | #include "source_syrk_c.h" 14 | #undef BASE 15 | } 16 | -------------------------------------------------------------------------------- /net/templates/user/submissions.html: -------------------------------------------------------------------------------- 1 | {% extends 'user/base.html' %} 2 | 3 | {% block inline_css %} 4 | {{block.super}} 5 | {% include 'submission/list.css' %} 6 | {% include 'job/status.css' %} 7 | {% endblock %} 8 | 9 | {% block title %} 10 | {{block.super}} > 11 | Submissions 12 | {% endblock %} 13 | {% block user_content %} 14 | {% include 'submission/paginated_list.html' with submission_page=submission_page %} 15 | {% endblock %} 16 | 17 | -------------------------------------------------------------------------------- /gsl-an/cblas/cgemv.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l2.h" 5 | 6 | void 7 | cblas_cgemv (const enum CBLAS_ORDER order, const enum CBLAS_TRANSPOSE TransA, 8 | const int M, const int N, const void *alpha, const void *A, 9 | const int lda, const void *X, const int incX, const void *beta, 10 | void *Y, const int incY) 11 | { 12 | #define BASE float 13 | #include "source_gemv_c.h" 14 | #undef BASE 15 | } 16 | -------------------------------------------------------------------------------- /gsl-an/cblas/dsyrk.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l3.h" 5 | 6 | void 7 | cblas_dsyrk (const enum CBLAS_ORDER Order, const enum CBLAS_UPLO Uplo, 8 | const enum CBLAS_TRANSPOSE Trans, const int N, const int K, 9 | const double alpha, const double *A, const int lda, 10 | const double beta, double *C, const int ldc) 11 | { 12 | #define BASE double 13 | #include "source_syrk_r.h" 14 | #undef BASE 15 | } 16 | -------------------------------------------------------------------------------- /gsl-an/cblas/sgemv.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l2.h" 5 | 6 | void 7 | cblas_sgemv (const enum CBLAS_ORDER order, const enum CBLAS_TRANSPOSE TransA, 8 | const int M, const int N, const float alpha, const float *A, 9 | const int lda, const float *X, const int incX, const float beta, 10 | float *Y, const int incY) 11 | { 12 | #define BASE float 13 | #include "source_gemv_r.h" 14 | #undef BASE 15 | } 16 | -------------------------------------------------------------------------------- /gsl-an/cblas/zgemv.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l2.h" 5 | 6 | void 7 | cblas_zgemv (const enum CBLAS_ORDER order, const enum CBLAS_TRANSPOSE TransA, 8 | const int M, const int N, const void *alpha, const void *A, 9 | const int lda, const void *X, const int incX, const void *beta, 10 | void *Y, const int incY) 11 | { 12 | #define BASE double 13 | #include "source_gemv_c.h" 14 | #undef BASE 15 | } 16 | -------------------------------------------------------------------------------- /net/templates/radio-nobullets.html: -------------------------------------------------------------------------------- 1 | {% with id=widget.attrs.id %}{% for group, options, index in widget.optgroups %}{% if group %} 2 |
{{ group }}{% endif %}{% for option in options %} 3 |
{% include option.template_name with widget=option %}
{% endfor %}{% if group %} 4 |
{% endif %}{% endfor %} 5 |
{% endwith %} 6 | -------------------------------------------------------------------------------- /gsl-an/cblas/ctrsv.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l2.h" 5 | 6 | #include "hypot.c" 7 | 8 | void 9 | cblas_ctrsv (const enum CBLAS_ORDER order, const enum CBLAS_UPLO Uplo, 10 | const enum CBLAS_TRANSPOSE TransA, const enum CBLAS_DIAG Diag, 11 | const int N, const void *A, const int lda, void *X, 12 | const int incX) 13 | { 14 | #define BASE float 15 | #include "source_trsv_c.h" 16 | #undef BASE 17 | } 18 | -------------------------------------------------------------------------------- /gsl-an/cblas/ztrsv.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l2.h" 5 | 6 | #include "hypot.c" 7 | 8 | void 9 | cblas_ztrsv (const enum CBLAS_ORDER order, const enum CBLAS_UPLO Uplo, 10 | const enum CBLAS_TRANSPOSE TransA, const enum CBLAS_DIAG Diag, 11 | const int N, const void *A, const int lda, void *X, 12 | const int incX) 13 | { 14 | #define BASE double 15 | #include "source_trsv_c.h" 16 | #undef BASE 17 | } 18 | -------------------------------------------------------------------------------- /include/astrometry/bl-sort.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | /* 7 | 8 | Sorting functions of bl.h, to factor out qsort dependency. 9 | 10 | */ 11 | #ifndef BL_SORT_H 12 | #define BL_SORT_H 13 | 14 | #include "astrometry/bl.h" 15 | 16 | void bl_sort(bl* list, int (*compare)(const void* v1, const void* v2)); 17 | 18 | void pl_sort(pl* list, int (*compare)(const void* v1, const void* v2)); 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /net/templates/flag/form.html: -------------------------------------------------------------------------------- 1 | {% if user.is_authenticated %} 2 |
3 |
4 | {% csrf_token %} 5 |
6 | {% include 'flag/chooser.html' with flags=flags selected_flags=selected_flags %} 7 |
8 | 9 | 10 |
11 |
12 | {% endif %} 13 | -------------------------------------------------------------------------------- /gsl-an/cblas/dgemv.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l2.h" 5 | 6 | void 7 | cblas_dgemv (const enum CBLAS_ORDER order, const enum CBLAS_TRANSPOSE TransA, 8 | const int M, const int N, const double alpha, const double *A, 9 | const int lda, const double *X, const int incX, 10 | const double beta, double *Y, const int incY) 11 | { 12 | #define BASE double 13 | #include "source_gemv_r.h" 14 | #undef BASE 15 | } 16 | -------------------------------------------------------------------------------- /net/templates/form_ajax.js: -------------------------------------------------------------------------------- 1 | 14 | -------------------------------------------------------------------------------- /net/templates/tag/tag.html: -------------------------------------------------------------------------------- 1 |
  • 2 | {{ tag.text }} 3 | {% if recipient_owner %} 4 | {% if user == tag.tagger or user == recipient_owner %} 5 | [remove] 8 | {% endif %} 9 | {% endif %} 10 |
  • 11 | -------------------------------------------------------------------------------- /blind/onepixel.c: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | #include 6 | #include "cairoutils.h" 7 | 8 | int main() { 9 | unsigned char img[4]; 10 | int W=1; 11 | int H=1; 12 | 13 | float x=20; 14 | float mag=100; 15 | float back=0; 16 | 17 | img[0] = 0; 18 | img[1] = 0; 19 | img[2] = 0; 20 | img[3] = 128; 21 | cairoutils_stream_png(stdout, img, W, H); 22 | 23 | return 0; 24 | } 25 | -------------------------------------------------------------------------------- /gsl-an/cblas/chemm.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l3.h" 5 | 6 | void 7 | cblas_chemm (const enum CBLAS_ORDER Order, const enum CBLAS_SIDE Side, 8 | const enum CBLAS_UPLO Uplo, const int M, const int N, 9 | const void *alpha, const void *A, const int lda, const void *B, 10 | const int ldb, const void *beta, void *C, const int ldc) 11 | { 12 | #define BASE float 13 | #include "source_hemm.h" 14 | #undef BASE 15 | } 16 | -------------------------------------------------------------------------------- /gsl-an/cblas/zhemm.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l3.h" 5 | 6 | void 7 | cblas_zhemm (const enum CBLAS_ORDER Order, const enum CBLAS_SIDE Side, 8 | const enum CBLAS_UPLO Uplo, const int M, const int N, 9 | const void *alpha, const void *A, const int lda, const void *B, 10 | const int ldb, const void *beta, void *C, const int ldc) 11 | { 12 | #define BASE double 13 | #include "source_hemm.h" 14 | #undef BASE 15 | } 16 | -------------------------------------------------------------------------------- /net/log.py: -------------------------------------------------------------------------------- 1 | import logging 2 | logger = logging.getLogger(__name__) 3 | #debug = logger.debug 4 | #loginfo = logger.info 5 | #logmsg = logger.info 6 | 7 | def _getstr(args): 8 | try: 9 | return ' '.join(str(a) for a in args) 10 | except: 11 | return ' '.join(unicode(a) for a in args) 12 | 13 | def loginfo(*args): 14 | ss = _getstr(args) 15 | logger.info(ss) 16 | 17 | logmsg = loginfo 18 | 19 | def debug(*args): 20 | ss = _getstr(args) 21 | logger.debug(ss) 22 | 23 | logdebug = debug 24 | -------------------------------------------------------------------------------- /net/templates/view_menu.css: -------------------------------------------------------------------------------- 1 | 24 | -------------------------------------------------------------------------------- /util/md5.h: -------------------------------------------------------------------------------- 1 | #ifndef _MD5_H 2 | #define _MD5_H 3 | 4 | #ifndef uint8 5 | #define uint8 unsigned char 6 | #endif 7 | 8 | #ifndef uint32 9 | #define uint32 unsigned long int 10 | #endif 11 | 12 | typedef struct 13 | { 14 | uint32 total[2]; 15 | uint32 state[4]; 16 | uint8 buffer[64]; 17 | } 18 | md5_context; 19 | 20 | void md5_starts( md5_context *ctx ); 21 | void md5_update( md5_context *ctx, uint8 *input, uint32 length ); 22 | void md5_finish( md5_context *ctx, uint8 digest[16] ); 23 | 24 | #endif /* md5.h */ 25 | -------------------------------------------------------------------------------- /gsl-an/cblas/csymm.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l3.h" 5 | 6 | void 7 | cblas_csymm (const enum CBLAS_ORDER Order, const enum CBLAS_SIDE Side, 8 | const enum CBLAS_UPLO Uplo, const int M, const int N, 9 | const void *alpha, const void *A, const int lda, const void *B, 10 | const int ldb, const void *beta, void *C, const int ldc) 11 | { 12 | #define BASE float 13 | #include "source_symm_c.h" 14 | #undef BASE 15 | } 16 | -------------------------------------------------------------------------------- /gsl-an/cblas/ssymm.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l3.h" 5 | 6 | void 7 | cblas_ssymm (const enum CBLAS_ORDER Order, const enum CBLAS_SIDE Side, 8 | const enum CBLAS_UPLO Uplo, const int M, const int N, 9 | const float alpha, const float *A, const int lda, const float *B, 10 | const int ldb, const float beta, float *C, const int ldc) 11 | { 12 | #define BASE float 13 | #include "source_symm_r.h" 14 | #undef BASE 15 | } 16 | -------------------------------------------------------------------------------- /gsl-an/cblas/zsymm.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l3.h" 5 | 6 | void 7 | cblas_zsymm (const enum CBLAS_ORDER Order, const enum CBLAS_SIDE Side, 8 | const enum CBLAS_UPLO Uplo, const int M, const int N, 9 | const void *alpha, const void *A, const int lda, const void *B, 10 | const int ldb, const void *beta, void *C, const int ldc) 11 | { 12 | #define BASE double 13 | #include "source_symm_c.h" 14 | #undef BASE 15 | } 16 | -------------------------------------------------------------------------------- /gsl-an/gsl_version.h.in: -------------------------------------------------------------------------------- 1 | #ifndef __GSL_VERSION_H__ 2 | #define __GSL_VERSION_H__ 3 | 4 | #include 5 | 6 | #undef __BEGIN_DECLS 7 | #undef __END_DECLS 8 | #ifdef __cplusplus 9 | # define __BEGIN_DECLS extern "C" { 10 | # define __END_DECLS } 11 | #else 12 | # define __BEGIN_DECLS /* empty */ 13 | # define __END_DECLS /* empty */ 14 | #endif 15 | __BEGIN_DECLS 16 | 17 | 18 | #define GSL_VERSION "@VERSION@" 19 | 20 | GSL_VAR const char * gsl_version; 21 | 22 | __END_DECLS 23 | 24 | #endif /* __GSL_VERSION_H__ */ 25 | -------------------------------------------------------------------------------- /include/astrometry/wcs-xy2rd.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | #ifndef WCS_XY2RD_H 7 | #define WCS_XY2RD_H 8 | 9 | #include "astrometry/bl.h" 10 | 11 | int wcs_xy2rd(const char* wcsfn, int wcsext, 12 | const char* xylsfn, const char* rdlsfn, 13 | const char* xcol, const char* ycol, 14 | int forcetan, 15 | int forcewcslib, 16 | il* fields); 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /util/jpl.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | #ifndef JPL_H 6 | #define JPL_H 7 | 8 | #include "astrometry/bl.h" 9 | 10 | struct orbital_elements { 11 | double a; 12 | double e; 13 | double I; 14 | double Omega; 15 | double pomega; 16 | double M; 17 | double mjd; 18 | }; 19 | typedef struct orbital_elements orbital_elements_t; 20 | 21 | bl* jpl_parse_orbital_elements(const char* str, bl* lst); 22 | 23 | 24 | #endif 25 | 26 | 27 | -------------------------------------------------------------------------------- /include/astrometry/wcs-rd2xy.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | #ifndef WCS_RD2XY_H 7 | #define WCS_RD2XY_H 8 | 9 | #include "astrometry/bl.h" 10 | 11 | int wcs_rd2xy(const char* wcsfn, int wcsext, 12 | const char* rdlsfn, const char* xylsfn, 13 | const char* racol, const char* deccol, 14 | int forcetan, 15 | int forcewcslib, 16 | il* fields); 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /gsl-an/cblas/cher2k.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l3.h" 5 | 6 | void 7 | cblas_cher2k (const enum CBLAS_ORDER Order, const enum CBLAS_UPLO Uplo, 8 | const enum CBLAS_TRANSPOSE Trans, const int N, const int K, 9 | const void *alpha, const void *A, const int lda, const void *B, 10 | const int ldb, const float beta, void *C, const int ldc) 11 | { 12 | #define BASE float 13 | #include "source_her2k.h" 14 | #undef BASE 15 | } 16 | -------------------------------------------------------------------------------- /gsl-an/cblas/csyr2k.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l3.h" 5 | 6 | void 7 | cblas_csyr2k (const enum CBLAS_ORDER Order, const enum CBLAS_UPLO Uplo, 8 | const enum CBLAS_TRANSPOSE Trans, const int N, const int K, 9 | const void *alpha, const void *A, const int lda, const void *B, 10 | const int ldb, const void *beta, void *C, const int ldc) 11 | { 12 | #define BASE float 13 | #include "source_syr2k_c.h" 14 | #undef BASE 15 | } 16 | -------------------------------------------------------------------------------- /gsl-an/cblas/zher2k.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l3.h" 5 | 6 | void 7 | cblas_zher2k (const enum CBLAS_ORDER Order, const enum CBLAS_UPLO Uplo, 8 | const enum CBLAS_TRANSPOSE Trans, const int N, const int K, 9 | const void *alpha, const void *A, const int lda, const void *B, 10 | const int ldb, const double beta, void *C, const int ldc) 11 | { 12 | #define BASE double 13 | #include "source_her2k.h" 14 | #undef BASE 15 | } 16 | -------------------------------------------------------------------------------- /gsl-an/cblas/zsyr2k.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l3.h" 5 | 6 | void 7 | cblas_zsyr2k (const enum CBLAS_ORDER Order, const enum CBLAS_UPLO Uplo, 8 | const enum CBLAS_TRANSPOSE Trans, const int N, const int K, 9 | const void *alpha, const void *A, const int lda, const void *B, 10 | const int ldb, const void *beta, void *C, const int ldc) 11 | { 12 | #define BASE double 13 | #include "source_syr2k_c.h" 14 | #undef BASE 15 | } 16 | -------------------------------------------------------------------------------- /man/get-wcs.1: -------------------------------------------------------------------------------- 1 | .TH GET-WCS "1" "July 2015" "0.56" "astrometry.net" 2 | .SH NAME 3 | get\-wcs \- Try to interpret an existing WCS header. 4 | .SH SYNOPSIS 5 | .B 6 | get\-wcs 7 | [options] 8 | \fIinput-file\fR 9 | .SH OPTIONS 10 | .TP 11 | \fB\-e\fR \fIext\fR 12 | Extension number 13 | .TP 14 | \fB\-o\fR \fIfile\fR 15 | Output file 16 | .TP 17 | \fB\-t\fR 18 | Force TAN (not SIP) 19 | .SH AUTHOR 20 | The Astrometry.net team. Principal investigators are David W. Hogg (NYU) and 21 | Dustin Lang (CMU). 22 | .SH SEE ALSO 23 | http://astrometry.net 24 | -------------------------------------------------------------------------------- /net/templates/dashboard/albums.html: -------------------------------------------------------------------------------- 1 | {% extends 'dashboard/base.html' %} 2 | 3 | {% block inline_css %} 4 | {{block.super}} 5 | {% include 'album/album_set.css' %} 6 | {% endblock %} 7 | 8 | {% block title %} 9 | {{block.super}} > 10 | My Albums 11 | {% endblock %} 12 | 13 | {% block dashboard_content %} 14 | 15 |
    16 | {% include 'album/paginated_album_set.html' with album_page=album_page %} 17 | {% endblock %} 18 | -------------------------------------------------------------------------------- /net/templates/license/form.html: -------------------------------------------------------------------------------- 1 |
    2 | {% if user.is_authenticated %} 3 | {% block form_tag %} 4 |
    5 | {% endblock %} 6 | {% csrf_token %} 7 |
    8 | {{ license_form.as_p }} 9 |
    10 | 11 | 12 |
    13 | {% endif %} 14 |
    15 | 16 | -------------------------------------------------------------------------------- /net/templates/user/menu.html: -------------------------------------------------------------------------------- 1 | 11 | -------------------------------------------------------------------------------- /man/wcs-match.1: -------------------------------------------------------------------------------- 1 | .TH WCS-MATCH "1" "July 2015" "0.56" "astrometry.net" 2 | .SH NAME 3 | wcs-match \- Prints x and y coordinates of invariant point 4 | .SH SYNOPSIS 5 | .B wcs-match 6 | .SH DESCRIPTION 7 | .TP 8 | \fB\-1\fR \fIfile\fR 9 | WCS first input file 10 | .TP 11 | \fB\-2\fR \fIfile\fR 12 | WCS second input file 13 | .TP 14 | \fB\-h\fR 15 | .TP 16 | \fB\-v\fR 17 | +verbose 18 | 19 | .SH AUTHOR 20 | The Astrometry.net team. Principal investigators are David W. Hogg (NYU) and 21 | Dustin Lang (CMU). 22 | .SH SEE ALSO 23 | http://astrometry.net 24 | -------------------------------------------------------------------------------- /net/templates/dashboard/menu.html: -------------------------------------------------------------------------------- 1 | 11 | -------------------------------------------------------------------------------- /gsl-an/cblas/dsymm.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l3.h" 5 | 6 | void 7 | cblas_dsymm (const enum CBLAS_ORDER Order, const enum CBLAS_SIDE Side, 8 | const enum CBLAS_UPLO Uplo, const int M, const int N, 9 | const double alpha, const double *A, const int lda, 10 | const double *B, const int ldb, const double beta, double *C, 11 | const int ldc) 12 | { 13 | #define BASE double 14 | #include "source_symm_r.h" 15 | #undef BASE 16 | } 17 | -------------------------------------------------------------------------------- /gsl-an/cblas/ctrmm.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l3.h" 5 | 6 | void 7 | cblas_ctrmm (const enum CBLAS_ORDER Order, const enum CBLAS_SIDE Side, 8 | const enum CBLAS_UPLO Uplo, const enum CBLAS_TRANSPOSE TransA, 9 | const enum CBLAS_DIAG Diag, const int M, const int N, 10 | const void *alpha, const void *A, const int lda, void *B, 11 | const int ldb) 12 | { 13 | #define BASE float 14 | #include "source_trmm_c.h" 15 | #undef BASE 16 | } 17 | -------------------------------------------------------------------------------- /gsl-an/cblas/ssyr2k.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l3.h" 5 | 6 | void 7 | cblas_ssyr2k (const enum CBLAS_ORDER Order, const enum CBLAS_UPLO Uplo, 8 | const enum CBLAS_TRANSPOSE Trans, const int N, const int K, 9 | const float alpha, const float *A, const int lda, 10 | const float *B, const int ldb, const float beta, float *C, 11 | const int ldc) 12 | { 13 | #define BASE float 14 | #include "source_syr2k_r.h" 15 | #undef BASE 16 | } 17 | -------------------------------------------------------------------------------- /gsl-an/cblas/ztrmm.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l3.h" 5 | 6 | void 7 | cblas_ztrmm (const enum CBLAS_ORDER Order, const enum CBLAS_SIDE Side, 8 | const enum CBLAS_UPLO Uplo, const enum CBLAS_TRANSPOSE TransA, 9 | const enum CBLAS_DIAG Diag, const int M, const int N, 10 | const void *alpha, const void *A, const int lda, void *B, 11 | const int ldb) 12 | { 13 | #define BASE double 14 | #include "source_trmm_c.h" 15 | #undef BASE 16 | } 17 | -------------------------------------------------------------------------------- /gsl-an/cblas/dtrmm.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l3.h" 5 | 6 | void 7 | cblas_dtrmm (const enum CBLAS_ORDER Order, const enum CBLAS_SIDE Side, 8 | const enum CBLAS_UPLO Uplo, const enum CBLAS_TRANSPOSE TransA, 9 | const enum CBLAS_DIAG Diag, const int M, const int N, 10 | const double alpha, const double *A, const int lda, double *B, 11 | const int ldb) 12 | { 13 | #define BASE double 14 | #include "source_trmm_r.h" 15 | #undef BASE 16 | } 17 | -------------------------------------------------------------------------------- /gsl-an/cblas/dtrsm.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l3.h" 5 | 6 | void 7 | cblas_dtrsm (const enum CBLAS_ORDER Order, const enum CBLAS_SIDE Side, 8 | const enum CBLAS_UPLO Uplo, const enum CBLAS_TRANSPOSE TransA, 9 | const enum CBLAS_DIAG Diag, const int M, const int N, 10 | const double alpha, const double *A, const int lda, double *B, 11 | const int ldb) 12 | { 13 | #define BASE double 14 | #include "source_trsm_r.h" 15 | #undef BASE 16 | } 17 | -------------------------------------------------------------------------------- /gsl-an/cblas/strmm.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l3.h" 5 | 6 | void 7 | cblas_strmm (const enum CBLAS_ORDER Order, const enum CBLAS_SIDE Side, 8 | const enum CBLAS_UPLO Uplo, const enum CBLAS_TRANSPOSE TransA, 9 | const enum CBLAS_DIAG Diag, const int M, const int N, 10 | const float alpha, const float *A, const int lda, float *B, 11 | const int ldb) 12 | { 13 | #define BASE float 14 | #include "source_trmm_r.h" 15 | #undef BASE 16 | } 17 | -------------------------------------------------------------------------------- /gsl-an/cblas/strsm.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l3.h" 5 | 6 | void 7 | cblas_strsm (const enum CBLAS_ORDER Order, const enum CBLAS_SIDE Side, 8 | const enum CBLAS_UPLO Uplo, const enum CBLAS_TRANSPOSE TransA, 9 | const enum CBLAS_DIAG Diag, const int M, const int N, 10 | const float alpha, const float *A, const int lda, float *B, 11 | const int ldb) 12 | { 13 | #define BASE float 14 | #include "source_trsm_r.h" 15 | #undef BASE 16 | } 17 | -------------------------------------------------------------------------------- /libkd/demo.c: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of libkd. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | #include 6 | #include "kdtree.h" 7 | 8 | void ex1() { 9 | double mydata[] = { 1,1, 2,2, 3,3, 4,4, 5,5, 6,6, 7,7, 8,8 }; 10 | int D = 2; 11 | int N = sizeof(mydata) / (D * sizeof(double)); 12 | printf("N %i, D %i\n", N, D); 13 | kdtree_t* kd = kdtree_build(NULL, mydata, N, D, 4, KDTT_DOUBLE, KD_BUILD_BBOX); 14 | kdtree_print(kd); 15 | kdtree_free(kd); 16 | } 17 | 18 | int main() { 19 | ex1(); 20 | } 21 | -------------------------------------------------------------------------------- /gsl-an/cblas/dsyr2k.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l3.h" 5 | 6 | void 7 | cblas_dsyr2k (const enum CBLAS_ORDER Order, const enum CBLAS_UPLO Uplo, 8 | const enum CBLAS_TRANSPOSE Trans, const int N, const int K, 9 | const double alpha, const double *A, const int lda, 10 | const double *B, const int ldb, const double beta, double *C, 11 | const int ldc) 12 | { 13 | #define BASE double 14 | #include "source_syr2k_r.h" 15 | #undef BASE 16 | } 17 | -------------------------------------------------------------------------------- /gsl-an/cblas/hypot.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | static double xhypot (const double x, const double y); 4 | 5 | static double xhypot (const double x, const double y) 6 | { 7 | double xabs = fabs(x) ; 8 | double yabs = fabs(y) ; 9 | double min, max; 10 | 11 | if (xabs < yabs) { 12 | min = xabs ; 13 | max = yabs ; 14 | } else { 15 | min = yabs ; 16 | max = xabs ; 17 | } 18 | 19 | if (min == 0) 20 | { 21 | return max ; 22 | } 23 | 24 | { 25 | double u = min / max ; 26 | return max * sqrt (1 + u * u) ; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /catalogs/brightstars.c: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | #include 7 | 8 | #include "brightstars.h" 9 | 10 | static brightstar_t bs[] = 11 | #include "brightstars-data.c" 12 | ; 13 | 14 | int bright_stars_n() { 15 | return sizeof(bs) / sizeof(brightstar_t); 16 | } 17 | 18 | const brightstar_t* bright_stars_get(int starindex) { 19 | assert(starindex >= 0); 20 | assert(starindex < bright_stars_n()); 21 | return bs + starindex; 22 | } 23 | 24 | -------------------------------------------------------------------------------- /gsl-an/cblas/cgemm.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l3.h" 5 | 6 | void 7 | cblas_cgemm (const enum CBLAS_ORDER Order, const enum CBLAS_TRANSPOSE TransA, 8 | const enum CBLAS_TRANSPOSE TransB, const int M, const int N, 9 | const int K, const void *alpha, const void *A, const int lda, 10 | const void *B, const int ldb, const void *beta, void *C, 11 | const int ldc) 12 | { 13 | #define BASE float 14 | #include "source_gemm_c.h" 15 | #undef BASE 16 | } 17 | -------------------------------------------------------------------------------- /gsl-an/cblas/sgemm.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l3.h" 5 | 6 | void 7 | cblas_sgemm (const enum CBLAS_ORDER Order, const enum CBLAS_TRANSPOSE TransA, 8 | const enum CBLAS_TRANSPOSE TransB, const int M, const int N, 9 | const int K, const float alpha, const float *A, const int lda, 10 | const float *B, const int ldb, const float beta, float *C, 11 | const int ldc) 12 | { 13 | #define BASE float 14 | #include "source_gemm_r.h" 15 | #undef BASE 16 | } 17 | -------------------------------------------------------------------------------- /gsl-an/cblas/zgemm.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l3.h" 5 | 6 | void 7 | cblas_zgemm (const enum CBLAS_ORDER Order, const enum CBLAS_TRANSPOSE TransA, 8 | const enum CBLAS_TRANSPOSE TransB, const int M, const int N, 9 | const int K, const void *alpha, const void *A, const int lda, 10 | const void *B, const int ldb, const void *beta, void *C, 11 | const int ldc) 12 | { 13 | #define BASE double 14 | #include "source_gemm_c.h" 15 | #undef BASE 16 | } 17 | -------------------------------------------------------------------------------- /gsl-an/cblas/dgemm.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l3.h" 5 | 6 | void 7 | cblas_dgemm (const enum CBLAS_ORDER Order, const enum CBLAS_TRANSPOSE TransA, 8 | const enum CBLAS_TRANSPOSE TransB, const int M, const int N, 9 | const int K, const double alpha, const double *A, const int lda, 10 | const double *B, const int ldb, const double beta, double *C, 11 | const int ldc) 12 | { 13 | #define BASE double 14 | #include "source_gemm_r.h" 15 | #undef BASE 16 | } 17 | -------------------------------------------------------------------------------- /libkd/kdtree_internal_common.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of libkd. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | #define DIST_SCALE( kd, rd) ((rd) * (kd)->scale) 7 | #define DIST2_SCALE(kd, rd) ((rd) * (kd)->scale * (kd)->scale) 8 | 9 | #define DIST_INVSCALE( kd, rd) ((rd) * (kd)->invscale) 10 | #define DIST2_INVSCALE(kd, rd) ((rd) * (kd)->invscale * (kd)->invscale) 11 | 12 | #define POINT_SCALE( kd, d, p) (((p) - (kd)->minval[d]) * (kd)->scale) 13 | #define POINT_INVSCALE(kd, d, p) (((p) * ((kd)->invscale)) + (kd)->minval[d]) 14 | 15 | -------------------------------------------------------------------------------- /bin/image2pnm: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env python3 2 | from __future__ import print_function 3 | from __future__ import absolute_import 4 | import sys 5 | # Assume this script is in $(INSTALL_DIR)/bin/ and the 6 | # python base directory is in $(INSTALL_DIR)/lib/python/ . 7 | try: 8 | # If the PYTHONPATH is already set up, don't mess with it. 9 | import astrometry.util.image2pnm 10 | except: 11 | import os 12 | sys.path.insert(1, os.path.normpath(os.path.join(os.path.dirname(__file__), '..', 'lib', 'python'))) 13 | 14 | from astrometry.util.image2pnm import main 15 | sys.exit(main()) 16 | -------------------------------------------------------------------------------- /net/templates/user/list.html: -------------------------------------------------------------------------------- 1 |
    2 | {% for user in users %} 3 | 13 | {% empty %} 14 | No users. 15 | {% endfor %} 16 |
    17 | -------------------------------------------------------------------------------- /bin/uniformize: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env python3 2 | from __future__ import print_function 3 | from __future__ import absolute_import 4 | import sys 5 | # Assume this script is in $(INSTALL_DIR)/bin/ and the 6 | # python base directory is in $(INSTALL_DIR)/lib/python/ . 7 | try: 8 | # If the PYTHONPATH is already set up, don't mess with it. 9 | import astrometry.util.uniformize 10 | except: 11 | import os 12 | sys.path.insert(1, os.path.normpath(os.path.join(os.path.dirname(__file__), '..', 'lib', 'python'))) 13 | 14 | from astrometry.util.uniformize import main 15 | sys.exit(main()) 16 | -------------------------------------------------------------------------------- /gsl-an/cblas/ctrsm.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l3.h" 5 | 6 | #include "hypot.c" 7 | 8 | void 9 | cblas_ctrsm (const enum CBLAS_ORDER Order, const enum CBLAS_SIDE Side, 10 | const enum CBLAS_UPLO Uplo, const enum CBLAS_TRANSPOSE TransA, 11 | const enum CBLAS_DIAG Diag, const int M, const int N, 12 | const void *alpha, const void *A, const int lda, void *B, 13 | const int ldb) 14 | { 15 | #define BASE float 16 | #include "source_trsm_c.h" 17 | #undef BASE 18 | } 19 | -------------------------------------------------------------------------------- /gsl-an/cblas/ztrsm.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "cblas.h" 4 | #include "error_cblas_l3.h" 5 | 6 | #include "hypot.c" 7 | 8 | void 9 | cblas_ztrsm (const enum CBLAS_ORDER Order, const enum CBLAS_SIDE Side, 10 | const enum CBLAS_UPLO Uplo, const enum CBLAS_TRANSPOSE TransA, 11 | const enum CBLAS_DIAG Diag, const int M, const int N, 12 | const void *alpha, const void *A, const int lda, void *B, 13 | const int ldb) 14 | { 15 | #define BASE double 16 | #include "source_trsm_c.h" 17 | #undef BASE 18 | } 19 | -------------------------------------------------------------------------------- /bin/removelines: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env python3 2 | from __future__ import print_function 3 | from __future__ import absolute_import 4 | import sys 5 | # Assume this script is in $(INSTALL_DIR)/bin/ and the 6 | # python base directory is in $(INSTALL_DIR)/lib/python/ . 7 | try: 8 | # If the PYTHONPATH is already set up, don't mess with it. 9 | import astrometry.util.removelines 10 | except: 11 | import os 12 | sys.path.insert(1, os.path.normpath(os.path.join(os.path.dirname(__file__), '..', 'lib', 'python'))) 13 | 14 | from astrometry.util.removelines import main 15 | sys.exit(main()) 16 | -------------------------------------------------------------------------------- /include/astrometry/dualtree_nearestneighbour.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | #ifndef DUALTREE_NEAREST_NEIGHBOUR_H 7 | #define DUALTREE_NEAREST_NEIGHBOUR_H 8 | 9 | #include "astrometry/kdtree.h" 10 | 11 | void dualtree_nearestneighbour(kdtree_t* xtree, kdtree_t* ytree, double maxdist2, 12 | double** nearest_d2, int** nearest_ind, 13 | int** count_within_range, 14 | int notself); 15 | 16 | #endif 17 | 18 | -------------------------------------------------------------------------------- /man/wcsinfo.1: -------------------------------------------------------------------------------- 1 | .TH WCSINFO "1" "July 2015" "0.56" "astrometry.net" 2 | .SH NAME 3 | wcsinfo \- print simple properties of WCS headers (scale, rotation, etc) 4 | .SH SYNOPSIS 5 | .B wcsinfo 6 | [options] 7 | \fIwcs-file\fR 8 | .SH OPTIONS 9 | .TP 10 | \fB\-e\fR \fIextension\fR 11 | Read from given HDU (default 0 = primary) 12 | .TP 13 | \fB\-W\fR \fIwidth\fR 14 | Set/override IMAGEW 15 | .TP 16 | \fB\-H\fR \fIheight\fR 17 | Set/override IMAGEH 18 | .SH AUTHOR 19 | The Astrometry.net team. Principal investigators are David W. Hogg (NYU) and 20 | Dustin Lang (CMU). 21 | .SH SEE ALSO 22 | http://astrometry.net 23 | -------------------------------------------------------------------------------- /util/makefile.qfits: -------------------------------------------------------------------------------- 1 | # This file is part of the Astrometry.net suite. 2 | # Licensed under a 3-clause BSD style license - see LICENSE 3 | 4 | QFITS_DIR := $(BASEDIR)/qfits-an 5 | QFITS_LIB_FILE := $(QFITS_DIR)/libqfits.a 6 | QFITS_SRCDIR := $(QFITS_DIR) 7 | 8 | QFITS_CFLAGS := 9 | QFITS_INC := 10 | QFITS_LIB := 11 | QFITS_SLIB := $(QFITS_LIB_FILE) 12 | 13 | # $(QFITS_LIB_FILE): 14 | # $(MAKE) -C $(QFITS_DIR) libqfits.a 15 | 16 | include $(COMMON)/makefile.anbase 17 | 18 | QFITS_INC += $(ANBASE_INC) 19 | QFITS_LIB += $(ANBASE_LIB) 20 | QFITS_SLIB += $(ANBASE_SLIB) 21 | QFITS_CFLAGS += $(ANBASE_CFLAGS) 22 | -------------------------------------------------------------------------------- /blind/tst.plot: -------------------------------------------------------------------------------- 1 | plot_wcs tst.wcs 2 | plot_wcs_setsize 3 | 4 | plot_color 0.5 0.5 0.5 5 | grid_rastep 1 6 | grid_decstep 1 7 | grid_ralabelstep 1 8 | grid_declabelstep 1 9 | grid 10 | 11 | plot_color green 12 | plot_lw 3 13 | 14 | annotations_fontsize 20 15 | annotations_target 350 0 350,0 16 | annotations_target 20 0 20,0 17 | annotations_target 0 10 0,10 18 | annotations_target 0 -10 0,-10 19 | annotations_target 10 10 10,10 20 | annotations_target -10 10 -10,10 21 | annotations_target 10 -10 10,-10 22 | annotations_target -10 -10 -10,-10 23 | 24 | annotations_target 180 0 180,0 25 | 26 | annotations 27 | 28 | -------------------------------------------------------------------------------- /include/astrometry/brightstars.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | #ifndef BRIGHTSTARS_H 7 | #define BRIGHTSTARS_H 8 | 9 | struct brightstar { 10 | // Don't change the order of these fields - the included datafile depends on this order! 11 | char* name; 12 | char* common_name; 13 | double ra; 14 | double dec; 15 | double Vmag; 16 | }; 17 | typedef struct brightstar brightstar_t; 18 | 19 | int bright_stars_n(); 20 | const brightstar_t* bright_stars_get(int starindex); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /doc/changelog.rst: -------------------------------------------------------------------------------- 1 | 2 | Change Log: 3 | =========== 4 | 5 | Version 0.46: 6 | ------------- 7 | 8 | * Makefile revamp. Now possible to use system GSL rather than our 9 | shipped subset, by defining SYSTEM_GSL=yes:: 10 | 11 | make SYSTEM_GSL=yes 12 | 13 | * Move away from *qfits*, toward *an-qfits*; reorganize *qfits-an* 14 | directory to be more like the other source directories. 15 | 16 | * Web api: add *invert* option 17 | 18 | * Add more Intermediate World Coords options to WCS classes 19 | 20 | Version 0.47: 21 | ------------- 22 | 23 | * *solve-field*: add "focalmm" as a supported image scale type. 24 | 25 | -------------------------------------------------------------------------------- /net/templates/tag/user_image_tag_list.html: -------------------------------------------------------------------------------- 1 |
      2 | {% for user_image_tag in tags %} 3 |
    • {{ user_image_tag.text }} 4 | {% if user == user_image_tag.tagger or user == tagged_object_owner %} 5 | [remove]
    • 8 | {% endif %} 9 | {% endfor %} 10 |
    11 | -------------------------------------------------------------------------------- /net/templates/dashboard/index.html: -------------------------------------------------------------------------------- 1 | {% extends 'dashboard/base.html' %} 2 | 3 | {% block dashboard_content %} 4 |

    5 | We had to change our login system, so logins after March 16, 2016 appear as new accounts. If you want all of the images you have uploaded previously to appear in this new account, please Email us with the old and new account names (eg, "I used to use google account bobwob@gmail.com and now I'm using Twitter account @bobwob") and we'll connect it up. Thanks! 6 |

    7 | {% endblock %} 8 | -------------------------------------------------------------------------------- /util/shell.py: -------------------------------------------------------------------------------- 1 | # This file is part of the Astrometry.net suite. 2 | # Licensed under a 3-clause BSD style license - see LICENSE 3 | def shell_escape(s): 4 | repl = ('\\', '|', '&', ';', '(', ')', '<', '>', ' ', '\t', 5 | '\n', '$', "'", '"', "`") 6 | # (note, \\ must be first!) 7 | for x in repl: 8 | s = s.replace(x, '\\'+x) 9 | return s 10 | 11 | # escape a string that will appear inside double-quotes. 12 | def shell_escape_inside_quotes(s): 13 | repl = ('\\', '\t', '`', '"', '$') 14 | # (note, \\ must be first!) 15 | for x in repl: 16 | s = s.replace(x, '\\'+x) 17 | return s 18 | -------------------------------------------------------------------------------- /include/astrometry/bl.ph: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | /// Private header file shared between bl.inc and bl.c 7 | 8 | InlineDeclare 9 | bl_node* find_node(const bl* list, size_t n, size_t* rtn_nskipped); 10 | 11 | // data follows the bl_node*. 12 | #define NODE_DATA(node) ((void*)(((bl_node*)(node)) + 1)) 13 | #define NODE_CHARDATA(node) ((char*)(((bl_node*)(node)) + 1)) 14 | #define NODE_INTDATA(node) ((int*)(((bl_node*)(node)) + 1)) 15 | #define NODE_DOUBLEDATA(node) ((double*)(((bl_node*)(node)) + 1)) 16 | 17 | #define bl_free_node free 18 | -------------------------------------------------------------------------------- /man/pad-file.1: -------------------------------------------------------------------------------- 1 | .TH PAD-FILE "1" "July 2015" "0.56" "astrometry.net" 2 | .SH NAME 3 | pad-file \- Pad a FITS file out to the correct size 4 | .SH SYNOPSIS 5 | .B pad-file 6 | \fIdesired-length input-file\fR [\fIinput-file\fR ...] 7 | .SH DESCRIPTION 8 | The file will be padded in\-place. By default, the file is padded with zeros. 9 | .SH OPTIONS 10 | .TP 11 | \fB\-v\fR \fIn\fR 12 | Numerical value of character to pad with 13 | .TP 14 | \fB\-c\fR \fIc\fR 15 | Character to pad with 16 | .SH AUTHOR 17 | The Astrometry.net team. Principal investigators are David W. Hogg (NYU) and 18 | Dustin Lang (CMU). 19 | .SH SEE ALSO 20 | http://astrometry.net 21 | -------------------------------------------------------------------------------- /man/subtable.1: -------------------------------------------------------------------------------- 1 | .TH SUBTABLE "1" "July 2015" "0.56" "astrometry.net" 2 | .SH NAME 3 | subtable \- Pull out a set of columns from a many-column FITS binary table. 4 | .SH SYNOPSIS 5 | .B 6 | subtable 7 | \fB\-i\fR \fIinput-file\fR \fB\-o\fR \fIoutput-file\fR 8 | \fB\-c\fR \fIcol-name\fR [\fB\-c\fR \fIcol-name\fR ...] 9 | .SH OPTIONS 10 | .TP 11 | \fB\-i\fR \fIfile\fR 12 | Input file 13 | .TP 14 | \fB\-o\fR \fIfile\fR 15 | Output file 16 | .TP 17 | \fB\-c\fR \fIname\fR 18 | Column name 19 | .SH AUTHOR 20 | The Astrometry.net team. Principal investigators are David W. Hogg (NYU) and 21 | Dustin Lang (CMU). 22 | .SH SEE ALSO 23 | http://astrometry.net 24 | -------------------------------------------------------------------------------- /net/templates/radio-horizontal.html: -------------------------------------------------------------------------------- 1 | {% with id=widget.attrs.id %} 2 |
    6 | {% for group, options, index in widget.optgroups %} 7 | {% if group %} 8 |
    {{ group }} 9 |
    12 | {% endif %} 13 | {% for option in options %} 14 |
    {% include option.template_name with widget=option %}
    15 | {% endfor %} 16 | {% if group %} 17 |
    18 | {% endif %} 19 | {% endfor %} 20 |
    21 | {% endwith %} 22 | -------------------------------------------------------------------------------- /qfits-an/NOTE-Astrometry.net: -------------------------------------------------------------------------------- 1 | This distribution of the qfits library is a modified version of 2 | qfits-6.2.0. 3 | 4 | We have submitted our patches upstream but have not heard back from 5 | the original author. 6 | 7 | All modified files contain a note at the top of the file (as required 8 | by the GPL): 9 | 10 | /* Note: this file has been modified from its original form by the 11 | Astrometry.net team. For details see http://astrometry.net */ 12 | 13 | In turn, we hereby claim all our modifications: 14 | Copyright 2006, 2007 Dustin Lang, Keir Mierle and Sam Roweis 15 | and release our modifications under the GPL v2 or later. 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /include/astrometry/tic.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | #ifndef TIC_H 7 | #define TIC_H 8 | 9 | #include 10 | #include 11 | 12 | void tic(); 13 | int get_resource_stats(double* p_usertime, double* p_systime, long* p_maxrss); 14 | void toc(); 15 | 16 | double millis_between(struct timeval* tv1, struct timeval* tv2); 17 | 18 | // Returns the number of seconds since (approximately) Jan 1, 2000 UTC. 19 | // You probably only want to look at differences in the values returned by this function. 20 | double timenow(); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /util/makefile.cfitsio: -------------------------------------------------------------------------------- 1 | # This file is part of the Astrometry.net suite. 2 | # Licensed under a 3-clause BSD style license - see LICENSE 3 | 4 | # if CFITS_INC environment variable is set, assume CFITS_EXISTS. 5 | # Note also that CFITS_EXISTS can be overridden by the environment. 6 | ifeq ($(origin CFITS_INC), environment) 7 | CFITS_EXISTS := 1 8 | else 9 | X := $(shell pkg-config --exists cfitsio && echo yes || echo no) 10 | ifeq ($(X), yes) 11 | CFITS_EXISTS ?= 1 12 | endif 13 | endif 14 | 15 | CFITS_INC ?= $(shell pkg-config --cflags cfitsio 2>/dev/null) 16 | CFITS_LIB ?= $(shell pkg-config --libs cfitsio 2>/dev/null) 17 | CFITS_SLIB := 18 | 19 | -------------------------------------------------------------------------------- /net/client/README: -------------------------------------------------------------------------------- 1 | 2 | simplejson is no longer needed. client.py uses the python builtin json libs coming with version >=2.6 3 | 4 | Supernova API is at: 5 | http://supernova.astrometry.net/api 6 | 7 | Nova API is at: 8 | http://nova.astrometry.net/api 9 | 10 | 11 | Note on supernova: 12 | Since supernova is undergoing continuous development, consider your API 13 | key for it short lived and volatile. 14 | 15 | That said: 16 | If you find that the client is no longer able to connect to the 17 | (experimental) supernova API, please check that your API key hasn't 18 | changed by visiting http://supernova.astrometry.net/dashboard/profile/ 19 | -------------------------------------------------------------------------------- /blind/pquad.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | #ifndef PQUAD_H 7 | #define PQUAD_H 8 | 9 | /** 10 | This file is just required for testing purposes (of solver.c) 11 | */ 12 | 13 | struct potential_quad 14 | { 15 | anbool scale_ok; 16 | int fieldA, fieldB; 17 | // distance-squared between A and B, in pixels^2. 18 | double scale; 19 | double costheta, sintheta; 20 | // (field pixel noise / quad scale in pixels)^2 21 | double rel_field_noise2; 22 | anbool* inbox; 23 | int ninbox; 24 | double* xy; 25 | }; 26 | typedef struct potential_quad pquad; 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /man/downsample-fits.1: -------------------------------------------------------------------------------- 1 | .TH DOWNSAMPLE-FITS "1" "July 2015" "0.56" "astrometry.net" 2 | .SH NAME 3 | downsample-fits \- Scale down a FITS image 4 | .SH SYNOPSIS 5 | .B 6 | downsample-fits 7 | [options] \fIinput-file\fR \fIoutput-file\fR 8 | .SH DESCRIPTION 9 | Scale down a FITS image. Use "\-" to write to stdout. 10 | .SH OPTIONS 11 | .TP 12 | \fB\-s\fR \fIscale\fR 13 | Downsample scale (default: 2): integer 14 | .TP 15 | \fB\-e\fR \fIextension\fR 16 | Read extension (default: 0) 17 | .TP 18 | \fB\-v\fR 19 | Verbose 20 | .SH AUTHOR 21 | The Astrometry.net team. Principal investigators are David W. Hogg (NYU) and 22 | Dustin Lang (CMU). 23 | .SH SEE ALSO 24 | http://astrometry.net 25 | -------------------------------------------------------------------------------- /util/makefile.libkd: -------------------------------------------------------------------------------- 1 | # This file is part of the Astrometry.net suite. 2 | # Licensed under a 3-clause BSD style license - see LICENSE 3 | 4 | LIBKD_DIR := $(BASEDIR)/libkd 5 | LIBKD_LIB_FILE := $(LIBKD_DIR)/libkd.a 6 | LIBKD_NOIO_LIB_FILE := $(LIBKD_DIR)/libkd-noio.a 7 | 8 | LIBKD_INC := 9 | LIBKD_SLIB := $(LIBKD_LIB_FILE) 10 | LIBKD_LIB := 11 | 12 | # $(LIBKD_LIB_FILE): 13 | # $(MAKE) -C $(LIBKD_DIR) libkd.a 14 | # 15 | # $(LIBKD_NOIO_LIB_FILE): 16 | # $(MAKE) -C $(LIBKD_DIR) libkd-noio.a 17 | 18 | include $(COMMON)/makefile.anutils 19 | 20 | LIBKD_INC += $(ANUTILS_INC) 21 | LIBKD_CFLAGS += $(ANUTILS_CFLAGS) 22 | LIBKD_SLIB += $(ANUTILS_SLIB) 23 | LIBKD_LIB += $(ANUTILS_LIB) 24 | -------------------------------------------------------------------------------- /man/an-pnmtofits.1: -------------------------------------------------------------------------------- 1 | .TH AN-PNMTOFITS "1" "July 2015" "0.56" "astrometry.net" 2 | .SH NAME 3 | an\-pnmtofits \- Convert PNM file to FITS. 4 | .SH SYNOPSIS 5 | .B 6 | an\-pnmtofits 7 | [options] [\fIinput-file\fR [\fIoutput-file\fR]] 8 | .SH DESCRIPTION 9 | Convert a PNM file to a FITS file. If no input file is given, stdin is used. 10 | If no output file is given, stdout is used. 11 | .TP 12 | \fB\-o\fR \fIfile\fR 13 | Output file (default stdout) 14 | .TP 15 | \fB\-v\fR 16 | Verbose mode 17 | .TP 18 | \fB\-q\fR 19 | Quiet mode 20 | .SH AUTHOR 21 | The Astrometry.net team. Principal investigators are David W. Hogg (NYU) and 22 | Dustin Lang (CMU). 23 | .SH SEE ALSO 24 | http://astrometry.net 25 | -------------------------------------------------------------------------------- /qfits-an/md5.h: -------------------------------------------------------------------------------- 1 | #ifndef MD5_H 2 | #define MD5_H 3 | 4 | typedef unsigned int word32; 5 | 6 | struct MD5Context { 7 | word32 buf[4]; 8 | word32 bits[2]; 9 | union { 10 | unsigned char in[64]; 11 | word32 in32[16]; 12 | }; 13 | }; 14 | 15 | void MD5Init(struct MD5Context *context); 16 | void MD5Update(struct MD5Context *context, unsigned char const *buf, 17 | unsigned len); 18 | void MD5Final(unsigned char digest[16], struct MD5Context *context); 19 | void MD5Transform(word32 buf[4], word32 const in[16]); 20 | 21 | /* 22 | * This is needed to make RSAREF happy on some MS-DOS compilers. 23 | */ 24 | typedef struct MD5Context MD5_CTX; 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /gsl-an/gsl/gsl_block.h: -------------------------------------------------------------------------------- 1 | #ifndef __GSL_BLOCK_H__ 2 | #define __GSL_BLOCK_H__ 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | #include 9 | #include 10 | #include 11 | 12 | #include 13 | #include 14 | 15 | #include 16 | #include 17 | 18 | #include 19 | #include 20 | 21 | #include 22 | #include 23 | 24 | #endif /* __GSL_BLOCK_H__ */ 25 | -------------------------------------------------------------------------------- /sdss/setup.py: -------------------------------------------------------------------------------- 1 | # This file is part of the Astrometry.net suite. 2 | # Licensed under a 3-clause BSD style license - see LICENSE 3 | from distutils.core import setup, Extension 4 | import os 5 | import sys 6 | 7 | sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'util')) 8 | from an_build_ext import an_build_ext 9 | 10 | setup(cmdclass={'build_ext': an_build_ext}, 11 | name='C utils for Astrometry.net SDSS routines', 12 | version = '1.0', 13 | author = 'Lang & Hogg', 14 | author_email = 'dstndstn@gmail.com', 15 | url = 'http://astrometry.net', 16 | ext_modules = [Extension('_cutils', ['cutils.i'], libraries=['m'])], 17 | ) 18 | -------------------------------------------------------------------------------- /man/fits-flip-endian.1: -------------------------------------------------------------------------------- 1 | .TH FITS-FLIP-ENDIAN "1" "July 2015" "0.56" "astrometry.net" 2 | .SH NAME 3 | fits-flip-endian \- Endian swapping of FITS binary tables. 4 | .SH SYNOPSIS 5 | .B 6 | fits\-flip\-endian 7 | \fB\-i\fR \fIinput-file\fR 8 | \fB\-o\fR \fIoutput-file\fR 9 | [ \fB\-e\fR \fIext\fR \fB\-s\fR \fIsize\fR ] ... 10 | .SH OPTIONS 11 | .TP 12 | \fB\-i\fR \fIfile\fR 13 | Input file 14 | .TP 15 | \fB\-o\fR \fIfile\fR 16 | Output file 17 | .TP 18 | \fB\-e\fR \fIext\fR 19 | Extension number 20 | .TP 21 | \fB\-s\fR \fIsize\fR 22 | Data size in bytes 23 | .SH AUTHOR 24 | The Astrometry.net team. Principal investigators are David W. Hogg (NYU) and 25 | Dustin Lang (CMU). 26 | .SH SEE ALSO 27 | http://astrometry.net 28 | -------------------------------------------------------------------------------- /include/astrometry/bl-nl.inc: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | #include "astrometry/bl-nl.ph" 7 | 8 | InlineDefine 9 | number NLF(get)(nl* list, size_t n) { 10 | number* ptr = (number*)bl_access(list, n); 11 | return *ptr; 12 | } 13 | 14 | InlineDefine 15 | number NLF(get_const)(const nl* list, size_t n) { 16 | number* ptr = (number*)bl_access_const(list, n); 17 | return *ptr; 18 | } 19 | 20 | InlineDefine 21 | size_t NLF(size)(const nl* list) { 22 | return bl_size(list); 23 | } 24 | 25 | InlineDefine 26 | number* NLF(access)(nl* list, size_t j) { 27 | return (number*)bl_access(list, j); 28 | } 29 | 30 | -------------------------------------------------------------------------------- /catalogs/openngc-names-csv.awk: -------------------------------------------------------------------------------- 1 | # This file is part of the Astrometry.net suite. 2 | # Licensed under a 3-clause BSD style license - see LICENSE 3 | 4 | function printName(name) { 5 | print isngc ";" id ";" name; 6 | } 7 | 8 | # Skip header line. 9 | NR==1 { next } 10 | 11 | { 12 | if ($1 !~ /^(IC|NGC)[0-9]*$/) next; 13 | 14 | # Is it part of NGC or IC? 15 | isngc = ($1 ~ /^NGC/); 16 | 17 | # ID number. 18 | id = $1; 19 | gsub(/[A-Z]/, "", id); 20 | id = int(id); 21 | 22 | # Common names (comma separated). 23 | split($24, names, ","); 24 | for (i in names) { 25 | printName(names[i]); 26 | } 27 | 28 | # Add Messier number as a common name. 29 | if ($19 != "") { 30 | printName("M " int($19)); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /gsl-an/gsl/gsl_matrix.h: -------------------------------------------------------------------------------- 1 | #ifndef __GSL_MATRIX_H__ 2 | #define __GSL_MATRIX_H__ 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | #include 9 | #include 10 | #include 11 | 12 | #include 13 | #include 14 | 15 | #include 16 | #include 17 | 18 | #include 19 | #include 20 | 21 | #include 22 | #include 23 | 24 | 25 | #endif /* __GSL_MATRIX_H__ */ 26 | -------------------------------------------------------------------------------- /gsl-an/gsl/gsl_vector.h: -------------------------------------------------------------------------------- 1 | #ifndef __GSL_VECTOR_H__ 2 | #define __GSL_VECTOR_H__ 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | #include 9 | #include 10 | #include 11 | 12 | #include 13 | #include 14 | 15 | #include 16 | #include 17 | 18 | #include 19 | #include 20 | 21 | #include 22 | #include 23 | 24 | 25 | #endif /* __GSL_VECTOR_H__ */ 26 | -------------------------------------------------------------------------------- /sdss/dr10.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | from .common import * 5 | from .dr9 import * 6 | 7 | class DR10(DR9): 8 | 9 | def __init__(self, **kwargs): 10 | ''' 11 | Useful kwargs: 12 | 13 | basedir : (string) - local directory where data will be stored. 14 | ''' 15 | super(DR9, self).__init__(**kwargs) 16 | self.dasurl = 'http://data.sdss3.org/sas/dr10/boss/' 17 | 18 | def getDRNumber(self): 19 | return 10 20 | 21 | def _get_runlist_filename(self): 22 | return self._get_data_file('runList-dr10.par') 23 | 24 | -------------------------------------------------------------------------------- /util/makefile.wcslib: -------------------------------------------------------------------------------- 1 | # This file is part of the Astrometry.net suite. 2 | # Licensed under a 3-clause BSD style license - see LICENSE 3 | 4 | # WCSLIB is (supposed to be) optional. 5 | 6 | # if WCSLIB_INC environment variable is set, assume WCSLIB_EXISTS 7 | ifeq ($(origin WCSLIB_INC), environment) 8 | WCSLIB_EXISTS := 1 9 | else 10 | X := $(shell pkg-config --exists wcslib && echo yes || echo no) 11 | ifeq ($(X), yes) 12 | WCSLIB_EXISTS ?= 1 13 | endif 14 | endif 15 | 16 | WCSLIB_INC ?= $(shell pkg-config --cflags wcslib 2>/dev/null) 17 | WCSLIB_LIB ?= $(shell pkg-config --libs wcslib 2>/dev/null) 18 | WCSLIB_SLIB ?= 19 | 20 | #WCSLIB_LIB ?= 21 | #WCSLIB_SLIB ?= $(shell pkg-config --static wcslib 2>/dev/null) 22 | -------------------------------------------------------------------------------- /include/astrometry/fileutils.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | #ifndef FILEUTILS_H 7 | #define FILEUTILS_H 8 | 9 | /* 10 | Removes '.' and '..' references from a path. 11 | Collapses '//' to '/'. 12 | Does NOT care whether the file actually exists. 13 | Does NOT resolve symlinks. 14 | Assumes '/' is the path separator. 15 | 16 | Returns a newly-allocated string which should be freed with free(). 17 | */ 18 | char* an_canonicalize_file_name(const char* fn); 19 | 20 | char* resolve_path(const char* filename, const char* basedir); 21 | 22 | char* find_executable(const char* progname, const char* sibling); 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /blind/plotcoadd.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | #ifndef PLOTCOADD_H 6 | #define PLOTCOADD_H 7 | 8 | #include "astrometry/plotstuff.h" 9 | 10 | struct plotcoadd_args { 11 | }; 12 | typedef struct plotcoadd_args plotcoadd_t; 13 | 14 | plotcoadd_t* plot_coadd_get(plot_args_t* pargs); 15 | 16 | void* plot_coadd_init(plot_args_t* args); 17 | 18 | int plot_coadd_command(const char* command, const char* cmdargs, 19 | plot_args_t* args, void* baton); 20 | 21 | int plot_coadd_plot(const char* command, cairo_t* cr, 22 | plot_args_t* args, void* baton); 23 | 24 | void plot_coadd_free(plot_args_t* args, void* baton); 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /gsl-an/gsl/gsl_permute.h: -------------------------------------------------------------------------------- 1 | #ifndef __GSL_PERMUTE_H__ 2 | #define __GSL_PERMUTE_H__ 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | #include 9 | #include 10 | #include 11 | 12 | #include 13 | #include 14 | 15 | #include 16 | #include 17 | 18 | #include 19 | #include 20 | 21 | #include 22 | #include 23 | 24 | #endif /* __GSL_PERMUTE_H__ */ 25 | -------------------------------------------------------------------------------- /net/templates/job/status.html: -------------------------------------------------------------------------------- 1 | {% if job.status %} 2 | {% if job.status == 'S' %} 3 |
    Success
    4 | {% endif %} 5 | {% if job.status == 'F' %} 6 |
    Failed
    7 | {% endif %} 8 | {% if not job.status == 'F' and not job.status == 'S' %}?{% endif %} 9 | {% else %} 10 |
    11 |
    Processing...
    12 |
    Queued: {{ job.queued_time|date:"Y-m-d H:i:s" }}
    13 | 14 | {% if job.start_time %} 15 |
    Started: {{ job.start_time|date:"Y-m-d H:i:s" }}
    16 | {% endif %} 17 |
    18 | {% endif %} 19 | -------------------------------------------------------------------------------- /man/new-wcs.1: -------------------------------------------------------------------------------- 1 | .TH NEW-WCS "1" "July 2015" "0.56" "astrometry.net" 2 | .SH NAME 3 | new-wcs \- Merge a WCS solution with existing FITS header cards 4 | .SH SYNOPSIS 5 | .B 6 | new\-wcs 7 | \fB\-i\fR \fIinput-file\fR 8 | .SH DESCRIPTION 9 | Merge a WCS solution with existing FITS header cards. 10 | This can be used to create a new image file containing the WCS headers. 11 | .SH OPTIONS 12 | .TP 13 | \fB\-w\fR \fIfile\fR 14 | WCS file 15 | .TP 16 | \fB\-o\fR \fIfile\fR 17 | Output file 18 | .TP 19 | \fB\-d\fR 20 | Also copy the data segment 21 | .TP 22 | \fB\-v\fR 23 | +verbose 24 | .SH AUTHOR 25 | The Astrometry.net team. Principal investigators are David W. Hogg (NYU) and 26 | Dustin Lang (CMU). 27 | .SH SEE ALSO 28 | http://astrometry.net 29 | -------------------------------------------------------------------------------- /net/static/css/jquery.autocomplete.css: -------------------------------------------------------------------------------- 1 | .acInput { 2 | } 3 | .acResults { 4 | padding: 0px; 5 | border: 1px solid WindowFrame; 6 | background-color: Window; 7 | overflow: hidden; 8 | } 9 | 10 | .acResults ul { 11 | width: 100%; 12 | list-style-position: outside; 13 | list-style: none; 14 | padding: 0; 15 | margin: 0; 16 | } 17 | 18 | .acResults li { 19 | margin: 0px; 20 | padding: 2px 5px; 21 | cursor: pointer; 22 | display: block; 23 | width: 100%; 24 | text-align: left; 25 | font: menu; 26 | font-size: 80%; 27 | overflow: hidden; 28 | } 29 | 30 | .acLoading { 31 | background : url('indicator.gif') right center no-repeat; 32 | } 33 | 34 | .acSelect { 35 | background-color: Highlight; 36 | color: HighlightText; 37 | } 38 | -------------------------------------------------------------------------------- /net/views/flag.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import render_to_response, get_object_or_404, redirect 2 | from django.contrib.auth.decorators import login_required 3 | from astrometry.net.models import * 4 | 5 | @login_required 6 | def update_flags(req, category=None, recipient_id=None): 7 | redirect_url = '/' 8 | if req.method == 'POST': 9 | recipient = None 10 | if category == 'user_image': 11 | user_image = get_object_or_404(UserImage, pk=recipient_id) 12 | selected_flags = req.POST.getlist('flags') 13 | user_image.update_flags(selected_flags, req.user) 14 | user_image.save() 15 | redirect_url = req.POST.get('next','/') 16 | 17 | return redirect(redirect_url) 18 | -------------------------------------------------------------------------------- /util/dsigma.c: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | 12 | #include "dimage.h" 13 | #include "simplexy-common.h" 14 | #include "log.h" 15 | 16 | /* 17 | * dsigma.c 18 | * 19 | * Simple guess at the sky sigma 20 | * 21 | * Mike Blanton 22 | * 1/2006 */ 23 | 24 | 25 | #define IMGTYPE float 26 | #define DSIGMA_SUFF 27 | #include "dsigma.inc" 28 | #undef DSIGMA_SUFF 29 | #undef IMGTYPE 30 | 31 | #define IMGTYPE uint8_t 32 | #define DSIGMA_SUFF _u8 33 | #include "dsigma.inc" 34 | #undef IMGTYPE 35 | #undef DSIGMA_SUFF 36 | 37 | -------------------------------------------------------------------------------- /blind/setsolved.c: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | #include 6 | #include 7 | #include "solvedfile.h" 8 | 9 | int main(int argc, char** args) { 10 | int field = 1; 11 | char* fn; 12 | if (argc < 2) { 13 | printf("%s \n", args[0]); 14 | exit(-1); 15 | } 16 | fn = args[1]; 17 | printf("Field %i solved: %s\n", field, 18 | solvedfile_get(fn, field) ? "yes" : "no"); 19 | printf("Setting solved.\n"); 20 | solvedfile_set(fn, field); 21 | printf("Field %i solved: %s\n", field, 22 | solvedfile_get(fn, field) ? "yes" : "no"); 23 | return 0; 24 | } 25 | -------------------------------------------------------------------------------- /include/astrometry/resort-xylist.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | #ifndef RESORT_XYLIST_H 6 | #define RESORT_XYLIST_H 7 | 8 | /* 9 | Sorts the xylist in *infn*, writing the output to *outfn*. 10 | 11 | The sorting order is strange. The algorithm first performs two 12 | indirect sorts, by flux and by flux+background. It then interleaves 13 | these two results, without duplication. This can be useful if you 14 | don't really trust the background subtraction... 15 | */ 16 | int resort_xylist(const char* infn, const char* outfn, 17 | const char* fluxcol, const char* backcol, 18 | int ascending); 19 | 20 | #endif 21 | 22 | -------------------------------------------------------------------------------- /blind/plotxxx.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | #ifndef PLOTXXX_H 6 | #define PLOTXXX_H 7 | 8 | #include "astrometry/plotstuff.h" 9 | 10 | struct plotxxx_args { 11 | }; 12 | typedef struct plotxxx_args plotxxx_t; 13 | 14 | plotxxx_t* plot_xxx_get(plot_args_t* pargs); 15 | 16 | void* plot_xxx_init(plot_args_t* args); 17 | 18 | int plot_xxx_command(const char* command, const char* cmdargs, 19 | plot_args_t* args, void* baton); 20 | 21 | int plot_xxx_plot(const char* command, cairo_t* cr, 22 | plot_args_t* args, void* baton); 23 | 24 | void plot_xxx_free(plot_args_t* args, void* baton); 25 | 26 | extern const plotter_t plotter_xxx; 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /net/templates/comment/comment.html: -------------------------------------------------------------------------------- 1 |
    2 |
    3 | {% include 'user/display_name.html' with user=comment.author %}: 4 | {{comment.text}} 5 |
    6 | 14 |
    15 |
    16 | -------------------------------------------------------------------------------- /net/templates/dashboard/submissions.html: -------------------------------------------------------------------------------- 1 | {% extends 'dashboard/base.html' %} 2 | 3 | {% block inline_css %} 4 | {{block.super}} 5 | {% include 'submission/list.css' %} 6 | {% include 'job/status.css' %} 7 | 20 | {% endblock %} 21 | 22 | {% block title %} 23 | {{block.super}} > 24 | My Submissions 25 | {% endblock %} 26 | {% block dashboard_content %} 27 | {% include 'submission/paginated_list.html' with submission_page=submission_page %} 28 | {% endblock %} 29 | 30 | -------------------------------------------------------------------------------- /util/bl-nl-sort.c: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | static int NLF(compare_ascending)(const void* v1, const void* v2) { 6 | number i1 = *(number*)v1; 7 | number i2 = *(number*)v2; 8 | if (i1 > i2) return 1; 9 | else if (i1 < i2) return -1; 10 | else return 0; 11 | } 12 | 13 | static int NLF(compare_descending)(const void* v1, const void* v2) { 14 | number i1 = *(number*)v1; 15 | number i2 = *(number*)v2; 16 | if (i1 > i2) return -1; 17 | else if (i1 < i2) return 1; 18 | else return 0; 19 | } 20 | 21 | void NLF(sort)(nl* list, int ascending) { 22 | bl_sort(list, ascending ? NLF(compare_ascending) : NLF(compare_descending)); 23 | } 24 | 25 | -------------------------------------------------------------------------------- /include/astrometry/qfits_keywords.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file was added by the Astrometry.net team. 3 | Copyright 2007 Dustin Lang. 4 | 5 | # This file is part of the Astrometry.net suite. 6 | # Licensed under a 3-clause BSD style license - see LICENSE 7 | 8 | */ 9 | 10 | #ifndef QFITS_KEYWORDS_H 11 | #define QFITS_KEYWORDS_H 12 | 13 | // this snippet borrowed from GNU libc features.h: 14 | #if defined __GNUC__ 15 | # define GNUC_PREREQ(maj, min) \ 16 | ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min)) 17 | #else 18 | # define GNUC_PREREQ(maj, min) 0 19 | #endif 20 | 21 | // new in gcc-3.1: 22 | #if GNUC_PREREQ (3, 1) 23 | # define Deprecated __attribute__ ((deprecated)) 24 | #else 25 | # define Deprecated 26 | #endif 27 | 28 | 29 | 30 | #endif 31 | 32 | -------------------------------------------------------------------------------- /net/templates/user/base.html: -------------------------------------------------------------------------------- 1 | {% extends "user/index.html" %} 2 | 3 | {% block inline_css %} 4 | {{block.super}} 5 | {% include 'view_menu.css' %} 6 | 16 | {% endblock %} 17 | 18 | {% block title %} 19 | {{ block.super }} > 20 | {% include 'user/display_name.html' with user=display_user%} 21 | {% endblock %} 22 | {% block content %} 23 |
    24 |
    25 | {% include 'user/menu.html' %} 26 |
    27 |
    28 | {% block user_content %} 29 | {% endblock %} 30 |
    31 |
    32 |
    33 | {% endblock content %} 34 | -------------------------------------------------------------------------------- /blind/verify2.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | #ifndef VERIFY2_H 7 | #define VERIFY2_H 8 | 9 | #include "astrometry/kdtree.h" 10 | #include "astrometry/matchobj.h" 11 | #include "astrometry/bl.h" 12 | #include "astrometry/starkd.h" 13 | #include "astrometry/sip.h" 14 | #include "astrometry/bl.h" 15 | #include "astrometry/starxy.h" 16 | #include "astrometry/index.h" 17 | 18 | void verify_get_all_matches(const double* refxys, int NR, 19 | const double* testxys, const double* testsigma2s, int NT, 20 | double effective_area, 21 | double distractors, 22 | double nsigma, 23 | double limit, 24 | il*** p_reflist, 25 | dl*** p_problist); 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /include/astrometry/codetree.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | #ifndef CODETREE_H 7 | #define CODETREE_H 8 | 9 | #include "astrometry/codekd.h" 10 | #include "astrometry/codefile.h" 11 | #include "astrometry/fitstable.h" 12 | 13 | /** 14 | */ 15 | codetree_t* codetree_build(codefile_t* codes, 16 | int Nleaf, int datatype, int treetype, 17 | int buildopts, 18 | char** args, int argc); 19 | 20 | int codetree_files(const char* codefn, const char* ckdtfn, 21 | int Nleaf, int datatype, int treetype, 22 | int buildopts, 23 | char** args, int argc); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /net/settings_staging.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import 2 | from .settings_common import * 3 | 4 | from .settings_social import * 5 | ENABLE_SOCIAL = True 6 | SOUTH_MIGRATION_MODULES.update(SOCIAL_MIGRATION) 7 | TEMPLATE_CONTEXT_PROCESSORS += SOCIAL_TEMPLATE_CONTEXT_PROCESSORS 8 | INSTALLED_APPS += SOCIAL_INSTALLED_APPS 9 | AUTHENTICATION_BACKENDS = SOCIAL_AUTH_BACKENDS + AUTHENTICATION_BACKENDS 10 | 11 | TEMPDIR = '/data2/tmp' 12 | DATABASES['default']['NAME'] = 'an-staging' 13 | 14 | LOGGING['loggers']['django.request']['level'] = 'WARN' 15 | 16 | SESSION_COOKIE_NAME = 'StagingAstrometrySession' 17 | 18 | ssh_solver_config = 'an-nova' 19 | sitename = 'staging' 20 | 21 | SOCIAL_AUTH_GITHUB_KEY = github_secrets[sitename].key 22 | SOCIAL_AUTH_GITHUB_SECRET = github_secrets[sitename].secret 23 | -------------------------------------------------------------------------------- /util/makefile.gsl: -------------------------------------------------------------------------------- 1 | # This file is part of the Astrometry.net suite. 2 | # Licensed under a 3-clause BSD style license - see LICENSE 3 | 4 | # On by default? This doesn't seem to work 5 | #SYSTEM_GSL ?= $(shell pkg-config --modversion gsl >/dev/null 2>/dev/null && echo yes) 6 | 7 | ifeq ($(SYSTEM_GSL),yes) 8 | 9 | GSL_INC ?= $(shell pkg-config --cflags gsl 2>/dev/null) 10 | GSL_LIB ?= $(shell pkg-config --libs gsl 2>/dev/null) 11 | GSL_SLIB ?= 12 | 13 | else 14 | 15 | GSL_DIR := $(BASEDIR)/gsl-an 16 | GSL_LIB_FILE := $(GSL_DIR)/libgsl-an.a 17 | 18 | # flags needed to compile gsl 19 | GSL_INC ?= -I$(GSL_DIR) 20 | 21 | # flags needed to link gsl 22 | GSL_LIB ?= 23 | 24 | # file dependencies for GSL 25 | GSL_SLIB ?= $(GSL_LIB_FILE) 26 | 27 | # $(GSL_LIB_FILE): 28 | # $(MAKE) -C $(GSL_DIR) 29 | 30 | endif 31 | -------------------------------------------------------------------------------- /catalogs/test_boundaries.c: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | 11 | #include "cutest.h" 12 | #include "hd.h" 13 | #include "starutil.h" 14 | #include "ioutils.h" 15 | #include "constellation-boundaries.h" 16 | 17 | void test_bdy_1(CuTest* tc) { 18 | // "Suhail" (Lambda Vela) 19 | int con = constellation_containing(136.9992, -43.4325); 20 | printf("Got: %i\n", con); 21 | CuAssertIntEquals(tc, CON_VEL, con); 22 | 23 | // Naos (xi Pup?) 24 | con = constellation_containing(120.8963, -40.0033); 25 | printf("Got: %i\n", con); 26 | CuAssertIntEquals(tc, CON_PUP, con); 27 | } 28 | -------------------------------------------------------------------------------- /net/templates/tag/form.html: -------------------------------------------------------------------------------- 1 | {% if user == recipient_owner %} 2 |
    3 |
    4 | {% csrf_token %} 5 |
    6 | {{ tag_form.text }}
    7 | {{ tag_form.text.errors }} 8 |
    9 | 10 | 11 | 12 | 13 | 14 | Adding tag... 15 | 16 | Tag added! 17 | Could not add tag. 18 | 19 |
    20 |
    21 | {% endif %} 22 | -------------------------------------------------------------------------------- /libkd/kdtree_mem.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of libkd. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | #ifndef KDTREE_MEM_H 7 | #define KDTREE_MEM_H 8 | 9 | #include 10 | 11 | // Are we tracking memory usage by libkd? 12 | #if defined(KDTREE_MEM_TRACK) 13 | 14 | void* CALLOC(size_t nmemb, size_t sz); 15 | void* MALLOC(size_t sz); 16 | void* REALLOC(void* ptr, size_t sz); 17 | void FREE(void* ptr); 18 | 19 | #else 20 | 21 | #define CALLOC calloc 22 | #define MALLOC malloc 23 | #define REALLOC realloc 24 | #define FREE free 25 | 26 | #endif 27 | 28 | // Is memory-tracking enabled? 29 | int kdtree_mem_enabled(); 30 | 31 | // Reset the memory usage counter 32 | void kdtree_mem_reset(); 33 | 34 | // Get the current memory usage 35 | int kdtree_mem_get(); 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /include/astrometry/plotfill.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | #ifndef PLOTFILL_H 6 | #define PLOTFILL_H 7 | 8 | #include "astrometry/plotstuff.h" 9 | 10 | struct plotfill_args { 11 | }; 12 | typedef struct plotfill_args plotfill_t; 13 | 14 | void* plot_fill_init(plot_args_t* args); 15 | 16 | int plot_fill_command(const char* command, const char* cmdargs, 17 | plot_args_t* args, void* baton); 18 | 19 | int plot_fill_plot(const char* command, cairo_t* cr, 20 | plot_args_t* args, void* baton); 21 | 22 | void plot_fill_free(plot_args_t* args, void* baton); 23 | 24 | //extern const plotter_t plotter_fill; 25 | //plotter_t* plot_fill_new(); 26 | DECLARE_PLOTTER(fill); 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /net/templates/submission/list.css: -------------------------------------------------------------------------------- 1 | 29 | -------------------------------------------------------------------------------- /man/query-starkd.1: -------------------------------------------------------------------------------- 1 | .TH QUERY-STARKD "1" "July 2015" "0.56" "astrometry.net" 2 | .SH NAME 3 | query-starkd \- Search index files for stars near a given point on the sky 4 | .SH SYNOPSIS 5 | .B query-starkd 6 | [options] 7 | \fIstar-kdtree-file\fR 8 | .SH OPTIONS 9 | .TP 10 | \fB\-o\fR \fIfile\fR 11 | Write RA-DEC-list FITS table (default: print ASCII to stdout) 12 | .TP 13 | \fB-r\fR \fIra\fR 14 | RA (deg) 15 | .TP 16 | \fB\-d\fR \fIdec\fR 17 | DEC (deg) 18 | .TP 19 | \fB\-R\fR \fIradius\fR 20 | Radius (deg) 21 | .TP 22 | \fB\-t\fR \fIcol\fR 23 | Tag along column 24 | .TP 25 | \fB\-T\fR 26 | Tag along all 27 | .TP 28 | \fB\-I\fR 29 | Print indices too 30 | .TP 31 | \fB\-v\fR 32 | +verbose 33 | .SH AUTHOR 34 | The Astrometry.net team. Principal investigators are David W. Hogg (NYU) and 35 | Dustin Lang (CMU). 36 | .SH SEE ALSO 37 | http://astrometry.net 38 | -------------------------------------------------------------------------------- /net/templates/dashboard/base.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | 3 | {% block inline_css %} 4 | {{block.super}} 5 | {% include 'view_menu.css' %} 6 | 16 | {% endblock %} 17 | 18 | {% block title %} 19 | Dashboard{% endblock %} 20 | {% block content %} 21 | {% if user.is_authenticated %} 22 |
    23 |
    24 | {% include 'dashboard/menu.html' %} 25 |
    26 |
    27 | {% block dashboard_content %} 28 | {% endblock %} 29 |
    30 |
    31 |
    32 | {% else %} 33 | {% endif %} 34 | {% endblock content %} 35 | -------------------------------------------------------------------------------- /gsl-an/gsl/gsl_vector_complex.h: -------------------------------------------------------------------------------- 1 | #ifndef __GSL_VECTOR_COMPLEX_H__ 2 | #define __GSL_VECTOR_COMPLEX_H__ 3 | 4 | #define GSL_VECTOR_REAL(z, i) ((z)->data[2*(i)*(z)->stride]) 5 | #define GSL_VECTOR_IMAG(z, i) ((z)->data[2*(i)*(z)->stride + 1]) 6 | 7 | #if GSL_RANGE_CHECK 8 | #define GSL_VECTOR_COMPLEX(zv, i) (((i) >= (zv)->size ? (gsl_error ("index out of range", __FILE__, __LINE__, GSL_EINVAL), 0):0 , *GSL_COMPLEX_AT((zv),(i)))) 9 | #else 10 | #define GSL_VECTOR_COMPLEX(zv, i) (*GSL_COMPLEX_AT((zv),(i))) 11 | #endif 12 | 13 | #define GSL_COMPLEX_AT(zv,i) ((gsl_complex*)&((zv)->data[2*(i)*(zv)->stride])) 14 | #define GSL_COMPLEX_FLOAT_AT(zv,i) ((gsl_complex_float*)&((zv)->data[2*(i)*(zv)->stride])) 15 | #define GSL_COMPLEX_LONG_DOUBLE_AT(zv,i) ((gsl_complex_long_double*)&((zv)->data[2*(i)*(zv)->stride])) 16 | 17 | #endif /* __GSL_VECTOR_COMPLEX_H__ */ 18 | -------------------------------------------------------------------------------- /man/wcs-to-tan.1: -------------------------------------------------------------------------------- 1 | .TH WCS-TO-TAN "1" "July 2015" "0.56" "astrometry.net" 2 | .SH NAME 3 | wcs-to-tan \- Undocumented program of astromatic.net 4 | .SH SYNOPSIS 5 | .B wcs-to-tan 6 | .SH DESCRIPTION 7 | .TP 8 | \fB\-w\fR \fIfile\fR 9 | WCS input file 10 | .TP 11 | \fB\-o\fR \fIfile\fR 12 | WCS output file 13 | .TP 14 | \fB\-e \fIextension\fR 15 | FITS HDU number to read WCS from (default 0 = primary) 16 | .TP 17 | \fB\-t\fR 18 | Just use TAN projection, even if SIP extension exists. 19 | .TP 20 | \fB\-L\fR 21 | force WCSlib 22 | .TP 23 | \fB\-x\fR \fIx-lo\fR \fB\-y\fR \fIy-lo\fR \fB\-W\fR \fIx-hi\fR \fB\-H\fR \fIy-hi\fR 24 | .TP 25 | \fB\-N\fR \fIgrid-n\fR 26 | .TP 27 | \fB\-v\fR 28 | Verbose 29 | .SH AUTHOR 30 | The Astrometry.net team. Principal investigators are David W. Hogg (NYU) and 31 | Dustin Lang (CMU). 32 | .SH SEE ALSO 33 | http://astrometry.net 34 | -------------------------------------------------------------------------------- /net/templates/user_image/index_location.html: -------------------------------------------------------------------------------- 1 | {% extends 'user_image/index.html' %} 2 | 3 | {% block inline_css %} 4 | {{ block.super }} 5 | 8 | {% endblock %} 9 | 10 | {% block title %} 11 | {{ block.super }} 12 | {% with form=location_search_form %} 13 | {% if form.ra.data and form.dec.data and form.radius.data %} 14 | > Location: center ({{ form.ra.data }}, {{ form.dec.data }}); radius {{ form.radius.data }} deg 15 | {% endif %} 16 | {% endwith %} 17 | {% endblock %} 18 | 19 | {% block search_settings %} 20 | RA, Dec: ({{ location_search_form.ra }}, {{ location_search_form.dec }}) degrees 21 | Radius: {{ location_search_form.radius }} degrees 22 | 23 | {% endblock %} 24 | -------------------------------------------------------------------------------- /gsl-an/gsl/gsl_permute_vector.h: -------------------------------------------------------------------------------- 1 | #ifndef __GSL_PERMUTE_VECTOR_H__ 2 | #define __GSL_PERMUTE_VECTOR_H__ 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | #include 9 | #include 10 | #include 11 | 12 | #include 13 | #include 14 | 15 | #include 16 | #include 17 | 18 | #include 19 | #include 20 | 21 | #include 22 | #include 23 | 24 | #endif /* __GSL_PERMUTE_VECTOR_H__ */ 25 | -------------------------------------------------------------------------------- /include/astrometry/qfits_convert.h: -------------------------------------------------------------------------------- 1 | /** Copyright 2009 Dustin Lang. 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | /** 7 | Converts a single pixel from C to FITS format. 8 | 9 | "ctype" = PTYPE_FLOAT, PTYPE_INT, etc. 10 | "fitstype" = BPP_8_UNSIGNED, BPP_16_SIGNED, etc. 11 | 12 | "cval": pointer to C value (input) 13 | "fitsval": pointer to FITS value (output) 14 | 15 | Does byte-swapping, if necessary. 16 | */ 17 | int qfits_pixel_ctofits(int ctype, int fitstype, 18 | const void* cval, void* fitsval); 19 | 20 | 21 | /** 22 | Returns the size in bytes of the given C pixel type. 23 | */ 24 | int qfits_pixel_ctype_size(int ctype); 25 | 26 | /** 27 | Returns the size in bytes of the given FITS pixel type. 28 | */ 29 | int qfits_pixel_fitstype_size(int fitstype); 30 | -------------------------------------------------------------------------------- /net/templates/api-test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
    5 | Login form. 6 |
    7 | 9 |
    10 | 11 |
    12 | 13 |
    14 |
    15 | 16 |
    17 | Submit URL 18 |
    19 | 21 |
    22 | 23 |
    24 | 25 |
    26 |
    27 | 28 |
    29 | Submission status 30 |
    31 | 33 |
    34 | 35 |
    36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /net/showcache.py: -------------------------------------------------------------------------------- 1 | from __future__ import print_function 2 | import os 3 | import sys 4 | if __name__ == '__main__': 5 | me = __file__ 6 | path = os.path.realpath(me) 7 | sys.path.append(os.path.dirname(os.path.dirname(path))) 8 | os.environ['DJANGO_SETTINGS_MODULE'] = 'astrometry.net.settings' 9 | import settings 10 | import django 11 | django.setup() 12 | from astrometry.net.models import * 13 | from astrometry.util.file import * 14 | 15 | if __name__ == '__main__': 16 | cfs = CachedFile.objects.all() 17 | print('Total of', cfs.count(), 'files cached') 18 | nbytes = 0 19 | for cf in cfs: 20 | df = cf.disk_file 21 | path = df.get_path() 22 | sz = file_size(path) 23 | print(' %-32s' % cf.key, '=>', path, ' (size: %i bytes)' % sz) 24 | nbytes += sz 25 | print('Total of', nbytes, 'bytes') 26 | 27 | -------------------------------------------------------------------------------- /util/makefile.jpeg: -------------------------------------------------------------------------------- 1 | # This file is part of the Astrometry.net suite. 2 | # Copyright 2007 Dustin Lang. 3 | # 4 | # The Astrometry.net suite is free software; you can redistribute 5 | # it and/or modify it under the terms of the GNU General Public License 6 | # as published by the Free Software Foundation, version 2. 7 | # 8 | # The Astrometry.net suite is distributed in the hope that it will be 9 | # useful, but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 | # General Public License for more details. 12 | # 13 | # You should have received a copy of the GNU General Public License 14 | # along with the Astrometry.net suite ; if not, write to the Free Software 15 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 16 | 17 | JPEG_INC ?= 18 | JPEG_LIB ?= -ljpeg 19 | -------------------------------------------------------------------------------- /net/abstract_models.py: -------------------------------------------------------------------------------- 1 | 2 | from .log import * 3 | 4 | import urllib.request, urllib.parse, urllib.error 5 | import urllib.request, urllib.error, urllib.parse 6 | 7 | import xml.dom.minidom 8 | from xml.dom.minidom import Node 9 | 10 | from django.db import models 11 | from django.contrib.auth.models import User 12 | from astrometry.net.settings import * 13 | 14 | class Hideable(models.Model): 15 | class Meta: 16 | abstract = True 17 | 18 | YES_NO = (('y','yes'),('n','no')) 19 | 20 | publicly_visible = models.CharField(choices=YES_NO, max_length=1, 21 | default='y') 22 | 23 | def unhide(self): 24 | self.publicly_visible = 'y' 25 | self.save() 26 | 27 | def hide(self): 28 | self.publicly_visible = 'n' 29 | self.save() 30 | 31 | def is_public(self): 32 | return self.publicly_visible == 'y' 33 | -------------------------------------------------------------------------------- /include/astrometry/plothealpix.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | #ifndef PLOTHEALPIX_H 6 | #define PLOTHEALPIX_H 7 | 8 | #include "plotstuff.h" 9 | 10 | struct plothealpix_args { 11 | int nside; 12 | int stepsize; 13 | }; 14 | typedef struct plothealpix_args plothealpix_t; 15 | 16 | plothealpix_t* plot_healpix_get(plot_args_t* pargs); 17 | 18 | void* plot_healpix_init(plot_args_t* args); 19 | 20 | int plot_healpix_command(const char* command, const char* cmdargs, 21 | plot_args_t* args, void* baton); 22 | 23 | int plot_healpix_plot(const char* command, cairo_t* cr, 24 | plot_args_t* args, void* baton); 25 | 26 | void plot_healpix_free(plot_args_t* args, void* baton); 27 | 28 | DECLARE_PLOTTER(healpix); 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /include/astrometry/thread-specific.inc: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | #include 7 | 8 | #define GLUE2(x, y) x ## _ ## y 9 | #define GLUE(x, y) GLUE2(x, y) 10 | #define TSMANGLE(x) GLUE(TSNAME, x) 11 | 12 | static pthread_key_t TSMANGLE(key); 13 | static pthread_once_t TSMANGLE(key_once) = PTHREAD_ONCE_INIT; 14 | 15 | static void TSMANGLE(make_key)() { 16 | pthread_key_create(&TSMANGLE(key), NULL); 17 | } 18 | 19 | static void* TSMANGLE(get_key)(void* initdata) { 20 | void *ptr; 21 | pthread_once(&TSMANGLE(key_once), TSMANGLE(make_key)); 22 | ptr = pthread_getspecific(TSMANGLE(key)); 23 | if (!ptr) { 24 | ptr = TSMANGLE(init_key)(initdata); 25 | pthread_setspecific(TSMANGLE(key), ptr); 26 | } 27 | return ptr; 28 | } 29 | 30 | -------------------------------------------------------------------------------- /include/astrometry/eigen-math.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | typedef struct { 6 | double* data; 7 | int cols; 8 | int rows; 9 | } ematrix_t; 10 | 11 | typedef struct { 12 | double* data; 13 | int N; 14 | } evector_t; 15 | 16 | ematrix_t* ematrix_new(int R, int C); 17 | 18 | evector_t* evector_new(int N); 19 | 20 | void ematrix_set(ematrix_t* m, int r, int c, double v); 21 | double ematrix_get(const ematrix_t* m, int r, int c); 22 | 23 | void evector_set(evector_t* m, int i, double v); 24 | double evector_get(const evector_t* m, int i); 25 | 26 | 27 | //int eigen_solve_least_squares(const ematrix_t* A, const evector_t** B, 28 | int eigen_solve_least_squares(ematrix_t* A, evector_t** B, 29 | evector_t** X, int NB); 30 | 31 | 32 | -------------------------------------------------------------------------------- /include/astrometry/merge-index.h: -------------------------------------------------------------------------------- 1 | /* 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | */ 5 | 6 | #ifndef MERGE_INDEX_H 7 | #define MERGE_INDEX_H 8 | 9 | #include "astrometry/quadfile.h" 10 | #include "astrometry/codekd.h" 11 | #include "astrometry/starkd.h" 12 | 13 | /** 14 | Merges .quad, .ckdt, and .skdt files to produce a .index file. 15 | */ 16 | int merge_index_files(const char* quadfn, const char* ckdtfn, const char* skdtfn, 17 | const char* indexfn); 18 | 19 | int merge_index_open_files(const char* quadfn, const char* ckdtfn, const char* skdtfn, 20 | quadfile_t** quad, codetree_t** code, startree_t** star); 21 | 22 | int merge_index(quadfile_t* quads, codetree_t* codekd, startree_t* starkd, 23 | const char* indexfn); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /net/templates/user_image/index_by_user.html: -------------------------------------------------------------------------------- 1 | {% extends 'user_image/index.html' %} 2 | 3 | {% block inline_css %} 4 | {{block.super}} 5 | 12 | {% endblock %} 13 | 14 | {% block title %} 15 | {{block.super}} > 16 | By User 17 | {% endblock %} 18 | 19 | {% block user_image_index_content %} 20 | 31 | {% endblock %} 32 | -------------------------------------------------------------------------------- /man/fitsgetext.1: -------------------------------------------------------------------------------- 1 | .TH FITSGETEXT "1" "July 2015" "0.56" "astrometry.net" 2 | .SH NAME 3 | fitsgetext \- Pull out individual header or data blocks from multi-HDU FITS files. 4 | .SH OPTIONS 5 | .TP 6 | \fB\-o\fR \fIfile\fR 7 | Output file 8 | .TP 9 | \fB\-a\fR 10 | Write out ALL extensions; the output filename should be a sprintf(1) pattern 11 | such as "extension\-%04i". 12 | .TP 13 | \fB\-b\fR 14 | Print sizes and offsets in FITS blocks (of 2880 bytes) 15 | .TP 16 | \fB\-M\fR 17 | Print sizes in megabytes (using floor(), not round()!) 18 | .TP 19 | \fB\-D\fR 20 | Data blocks only 21 | .TP 22 | \fB\-H\fR 23 | Header blocks only 24 | .TP 25 | \fB\-e\fR \fIextension\fR 26 | Extension number 27 | .TP 28 | \fB\-v\fR 29 | +verbose 30 | .SH AUTHOR 31 | The Astrometry.net team. Principal investigators are David W. Hogg (NYU) and 32 | Dustin Lang (CMU). 33 | .SH SEE ALSO 34 | http://astrometry.net 35 | -------------------------------------------------------------------------------- /bin/votabletofits: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env python3 2 | # This file is part of the Astrometry.net suite. 3 | # Licensed under a 3-clause BSD style license - see LICENSE 4 | import sys 5 | 6 | # Assume this script is in $(INSTALL_DIR)/bin/ and the 7 | # python base directory is in $(INSTALL_DIR)/lib/python/ . 8 | try: 9 | # If the PYTHONPATH is already set up, don't mess with it. 10 | import astrometry.util.siap 11 | except: 12 | import os 13 | sys.path.insert(1, os.path.normpath(os.path.join(os.path.dirname(__file__), '..', 'lib', 'python'))) 14 | 15 | from astrometry.util.siap import siap_parse_result 16 | 17 | from optparse import OptionParser 18 | parser = OptionParser('%prog 6 | $(document).ready(function() { 7 | $("#id_query").autocomplete('/tags/autocomplete'); 8 | }); 9 | 10 | {% endblock %} 11 | 12 | {% block title %} 13 | {{ block.super }} 14 | {% with form=tag_search_form %} 15 | {% if tag %} 16 | > Tagged with {{ tag.text }} 17 | {% else %} 18 | {% if form.query.data %} 19 | > Tag Search: '{{ form.query.data }}' 20 | {% endif %} 21 | {% endif %} 22 | {% endwith %} 23 | {% endblock %} 24 | 25 | {% block search_settings %} 26 | {{ tag_search_form.query }} 27 | 28 | {{ tag_search_form.exact }} 29 | 30 | {% endblock %} 31 | 32 | {% block search_results %} 33 | {{ block.super }} 34 | {% endblock %} 35 | --------------------------------------------------------------------------------