A Space & astronomy forum. SpaceBanter.com

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

[fitsbits] Fits recognition



 
 
Thread Tools Display Modes
  #1  
Old August 16th 07, 04:30 PM posted to sci.astro.fits
Steve Allen
external usenet poster
 
Posts: 37
Default [fitsbits] Fits recognition

On Thu 2007-08-16T17:22:29 +0200, eggpap hath writ:
how to know programmatically if a fit/fits extension file is a true fit
file?


The quickest test is the one Jeff Uphoff wrote for the /etc/magic
or /usr/share/magic file which is used by the unix "file" program.

# FITS format. Jeff Uphoff
# FITS is the Flexible Image Transport System, the de facto standard for
# data and image transfer, storage, etc., for the astronomical community.
# (FITS floating point formats are big-endian.)
0 string SIMPLE\ \ = FITS image data
109 string 8 \b, 8-bit, character or unsigned binary integer
108 string 16 \b, 16-bit, two's complement binary integer
107 string \ 32 \b, 32-bit, two's complement binary integer
107 string -32 \b, 32-bit, floating point, single precision
107 string -64 \b, 64-bit, floating point, double precision


This does not prove conformance with the FITS standard, but
it's a good start.

also see verifits and its kin
http://fits.gsfc.nasa.gov/software.html#VERIFITS

--
Steve Allen WGS-84 (GPS)
UCO/Lick Observatory Natural Sciences II, Room 165 Lat +36.99855
University of California Voice: +1 831 459 3046 Lng -122.06015
Santa Cruz, CA 95064 http://www.ucolick.org/~sla/ Hgt +250 m
 




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
[fitsbits] Fits recognition eggpap FITS 1 August 16th 07 05:25 PM
[fitsbits] fitsbits--sci.astro.fits gateway fully operationalagain Don Wells FITS 0 September 29th 06 05:17 PM
FITS long integer support (was [fitsbits] ADASS FITS BoF onSunday) Eric Greisen FITS 10 October 26th 04 08:14 AM
FITS long integer support (was [fitsbits] ADASS FITS BoFon Sunday) William Pence FITS 6 October 22nd 04 08:23 PM
FITS long integer support (was [fitsbits] ADASS FITS BoF onSunday) Thomas McGlynn FITS 0 October 20th 04 03:18 PM


All times are GMT +1. The time now is 11:05 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.