Skip to main content

Astro tools

Project description

Astrophysical routines.


version badge licence badge pythons badge


Set of modules developed in Astronomical Institute of Wroclaw University. Contains wrappers for daophot package, star lists manipulation as pandas DataFrames with export/import to daophot and ds9 formats, genetic algorithm for searching for optimal PSF stars and other.


$ pip install astwro

You should setup paths to executables (e.g. your daophot). See documentation.


You must have modern DAOPHOT suite installed to use pydaophot submodule (not IRAF’s daophot).


Package contains following modules:

  • pydaophot - wrapper for Peter Stetson’s DAOPHOT photometry suite:
d = astwro.pydaophot.Daophot(image='i.fits')
res = d.PHotometry(IS=35, OS=50, apertures=[8])
  • starlist - provides pandas objects for stars list, with import/export do daophot and ds9 formats.
s = res.photometry_starlist.sort_values('mag')
psf = astwro.starlist.read_dao_file('i.lst')
astwro.starlist.write_ds9_regions('i.reg', color='blue', indexes=[psf.index], colors=['red']) # PSF stars red
  • utils - some helpers for scripts.
dir = astwro.utils.tempdir('i.lst')
f = open(os.path.join(dir.path,'notimportant.txt'), 'w')
  • tools - command line (callable form python also) tools including gapick for finding optimal PSF-stars set using generic algorithm.
$ -od results -c i.coo i.fits


For any comments or wishes please e-mail for the following alias:

For any issues please use github tracker:

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for astwro, version 0.7.5
Filename, size File type Python version Upload date Hashes
Filename, size astwro-0.7.5-py3-none-any.whl (5.6 MB) File type Wheel Python version py3 Upload date Hashes View
Filename, size astwro-0.7.5.tar.gz (5.5 MB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page