fits or img to ascii

Stephen L. Mahan mahan at aurora.phys.utk.edu
Sun Nov 9 17:45:15 CLST 1997


David,

Interactive Data Language (http://www.rsinc.com) when coupled with the IDL
astronomy library (maintained by Wayne Landsman at the website:
http://idlastro.gsfc.nasa.gov/homepage.html) works nicely for reading FITS
files.

Lets assume the image is 512x512 pixels, after read with a simple call to
a read_fits function (either interactively or with a program you write),
the array can be binned by summing subregions of the image-  so if we wish
to bin horizontally into a 1-D array (being the vertical binned img), we
issue the command v_bin_variable=total(image_variable, 1)  (where 1 is the
dimension), if want to do a horizontal binning you can rotate the image or
devise other strategies to do this).  The result is a variable having the
data, then one can save this array to an ascii, fits or a number of other
formats.

-Steve 

On Sun, 9 Nov 1997, David Waite wrote:

> Does anyone know of a program that converts fits or img files to ascii so
> that I can export the camera data and analyse it using origin?  Also, I am
> looking for software that allows me to do either vertical (1x512) or
> horizontal (512x1) binning.  
> 
> Thanks
> 
> David Waite
> Institut fuer Experimentalphysik
> Freie Universitat Berlin
> Arnimallee 14
> D-14195 Berlin
> Germany
> 
> Phone +49.30.838.4776  Fax +49.30.838.5567
> e-mail: waited at physik.fu-berlin.de
> 

__________________________________________________________________________
Stephen L. Mahan		  URL:	http://aurora.phys.utk.edu/~mahan
S&E 603 UT Complex Systems Lab    Voice:  423-974-7850  Fax: 423-974-7843
Dept. of Physics & Astronomy, University of Tennessee
Knoxville, TN  37996-1200	  E-Mail:  smahan at utk.edu
__________________________________________________________________________



More information about the CCD-world mailing list