Peter Erwin: Astronomical Software

Astronomical Software


A new 2D image-fitting program, for use in modeling galaxies (and other astronomical objects), designed to be fast and easily extensible.

See here for more information and to download the program.


This is a Python command-line program for searching multiple public telescope archives. It takes the name of an astronomical object -- or a set of coordinates -- and checks the telescope archives to see if they have observations within a user-specified box centered on the object/coordinates.

It does not retrieve any of the data, or provide a detailed listing of the available data [but see fetchsdss below]; you need to visit the individual archive sites for that. Its main purpose is to make it easier to find out whether there are any publically available data out there for a given object, or for a given position on the sky. It can tell you how many observations meeting the search criteria are available at each archive; for most archives, a short summary of the types of observations (e.g., instruments used) is given.

An example (slightly reformatted):

$ telarchive "ngc 7027" 2.0
	SIMBAD (Simbad 4, France):  Found object coordinates: RA = 21 07 01.593, Dec = +42 14 10.18

Searching archives for ngc 7027 (RA = 21 07 01.593, dec = +42 14 10.18), with search box =  2.0 arcmin...
	ESO Archive: Data exists! (2 observations found)
		0 images, 2 spectra, 0 echelle, 0 MOS, 0 MXU, 0 IFU, 0 polarimetry, 0 coronography, 0 interferometry
	HST archive: Data exists! (109 records found)
		13 FOS, 26 NICMOS, 25 WFPC, 18 WFPC2, 3 FOC, 24 STIS
	AAT Archive: No data found.
	Spitzer archive: Data exists! (13 records found)
		1 mipssed, 2 iracmap, 3 mipsphot, 7 irsstare
	Sloan Digital Sky Survey (DR7+DR12): No data found.
	CFHT Archive: Data exists! (213 observations found)
		BEAR (200), GECKO (4), AOBVIS (3), AOBIR (6)
	UKIRT Archive: Data exists! (943 observations found)
	Multimission Archive at STScI (MAST): Data exists! (64 observations found)
		COPERNICUS (1); FUSE (2); GALEX (27); IUE (34)
	ING Archive (old interface): Data exists! (577 observations found)
		143 images, 391 spectra, 43 unclassified
		JKT -- RBS (1), FWHL (2), AGBX (102);  INT -- WFC (9), PFCU (30), IDS (66), MES (17), FOS_1 (10);  
		WHT -- TAURUS_2 (5), unknown (43), ISIS_BLUE_ARM (159), UES (58), ISIS_RED_ARM (75)
	Gemini Science Archive: Data exists! (563 observations found)
		355 imaging, 163 long-slit, 45 IFU
		NIRI (508), michelle (10), GMOS-N (45)
	SMOKA (Subaru Mitaka Okayama Kiso Archive): Data exists! (1628 observations found)
		Subaru -- HDS (18), Subaru -- OHS/CISCO (38), Subaru -- IRCS (489), Subaru -- COMICS (1046), 
		Kiso -- 1k CCD (3), Okayama -- HIDES (31), Okayama -- SNG (3)

More details and some sample outputs can be found in the README file.

Download: telarchive-1.8.1.tar.gz.


Archives currently searched:

The code for searching individual archives is (mostly) modular, which should make it easier for people familiar with Python to add searches for new or private archives, as long as they have interfaces and outputs reasonably similar in format to the existing archives.


Included in the telarchive distribution is a separate program called "fetchsdss," which is specialized for retrieving FITS or JPEG images from the Sloan Digital Sky Survey (Data Release 7 and Data Release 12); included is an auxiliary script called "" which can retrieve FITS spectra from SDSS DR12. This uses some of the same underlying software as telarchive, and is automatically installed as part of the telarchive package. See the file README_fetchsdss.txt for more information.

If you're only interested in searching (and possibly retrieving data from) SDSS, then fetchsdss can also be installed as a smaller package by itself.

Download: fetchsdss-1.2.4.tar.gz.

Telarchive and fetchsdss are open source software, released under the Gnu Public License.

If you have found either of these programs particularly useful in your research, acknowledgment would be appreciated, but is not required.