A Space & astronomy forum. SpaceBanter.com

Go Back   Home » SpaceBanter.com forum » Astronomy and Astrophysics » CCD Imaging
Site Map Home Authors List Search Today's Posts Mark Forums Read Web Partners

Valid Fits File



 
 
Thread Tools Display Modes
  #1  
Old May 16th 06, 06:12 PM posted to sci.astro.ccd-imaging
external usenet poster
 
Posts: n/a
Default Valid Fits File

Hi Friends,

I am completely new to these FITS files.Its quite confusing.Can any
one please help me.

I am looking for the code which creates a valid FITS file.The FITS
file should contain a valid header with header test data. The FITS file
should contain one valid image with a test pattern. This image should
be 128 pixels wide by 64 pixels high. Each pixel should be eight bits.
Pixel values in the first row should begin with 0 and increment by 1.
Pixel values in the second row should begin with 1 and increment by 1.
Pixel values in the third row should begin with 2 and increment by 1.
Etc.

Hope someone helps me out.

Thank you very much,

Regards
Kiran

  #2  
Old May 16th 06, 08:41 PM posted to sci.astro.ccd-imaging
external usenet poster
 
Posts: n/a
Default Valid Fits File

On 16 May 2006 10:12:43 -0700, "Kiran" wrote:

I am completely new to these FITS files.Its quite confusing.Can any
one please help me.

I am looking for the code which creates a valid FITS file.The FITS
file should contain a valid header with header test data. The FITS file
should contain one valid image with a test pattern. This image should
be 128 pixels wide by 64 pixels high. Each pixel should be eight bits.
Pixel values in the first row should begin with 0 and increment by 1.
Pixel values in the second row should begin with 1 and increment by 1.
Pixel values in the third row should begin with 2 and increment by 1.


If you want to write your own program, you can download the CFITSIO
library from http://fits.gsfc.nasa.gov/fits_libraries.html and compile
it into your app. This is the reference code for reading and writing
FITS files.

It would be fairly easy to generate a test pattern like you want using
Photoshop, or another graphics program with similar capabilities. Save
the image as a TIFF, and then open it in an astronomical image
processing program (Iris, for instance, is freeware). Fill in the header
keywords you want, and then save as FITS. You could also use a
scriptable image processor like Maxim to produce the test pattern
easily.

BTW, FITS files containing 8-bit data are quite unusual. Some
applications may not even be able to read them. Unless you have a very
specific reason for using 8-bit data, it is probably better to save it
as 16-bit, even if the actual range is only 8-bits.

_________________________________________________

Chris L Peterson
Cloudbait Observatory
http://www.cloudbait.com
  #3  
Old May 17th 06, 01:47 AM posted to sci.astro.ccd-imaging
external usenet poster
 
Posts: n/a
Default Valid Fits File

Kiran,

Try CFITSIO...

http://heasarc.nasa.gov/fitsio/fitsio.html

It's what the pro's use.

Eric.


Kiran wrote:
Hi Friends,

I am completely new to these FITS files.Its quite confusing.Can any
one please help me.

I am looking for the code which creates a valid FITS file.The FITS
file should contain a valid header with header test data. The FITS file
should contain one valid image with a test pattern. This image should
be 128 pixels wide by 64 pixels high. Each pixel should be eight bits.
Pixel values in the first row should begin with 0 and increment by 1.
Pixel values in the second row should begin with 1 and increment by 1.
Pixel values in the third row should begin with 2 and increment by 1.
Etc.

Hope someone helps me out.

Thank you very much,

Regards
Kiran

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Drudge: Spy satellites watch Americans from space Jim Oberg History 390 July 1st 06 05:41 AM
Drudge: Spy satellites watch Americans from space Jim Oberg Policy 371 July 1st 06 05:37 AM
Free Commodities Are Abused Len Policy 46 December 5th 05 06:21 AM
NASA PDF documents available online for free download Rusty History 18 October 23rd 05 02:52 PM
FITS long integer support (was [fitsbits] ADASS FITS BoFon Sunday) William Pence FITS 6 October 22nd 04 08:23 PM


All times are GMT +1. The time now is 11:50 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 SpaceBanter.com.
The comments are property of their posters.