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] Packed binary values



 
 
Thread Tools Display Modes
  #1  
Old April 30th 07, 05:37 PM posted to sci.astro.fits
William Pence
external usenet poster
 
Posts: 66
Default [fitsbits] Packed binary values

Mike Nolan a écrit :
We're trying to data formats a new spectral instrument. It will produce
binary tables in a vaguely SDFITS-like format, with a table column
that contains a data array. The array will have multiple axes: time,
frequency, polarization, etc., usually with only the frequency axis
being nondegenerate, with table rows generated (say) once per second.
At moderate data rates, the header information changes slowly compared
to the spectral dump rate, and the time axis may become nondegenerate
within a record. However, at the highest data rates packed binary data
(say 2 bits per sample) will have to be stored, and we're trying to figure
out how to best describe those in a way consistent with "principle of
least astonishment". Do others have experience or suggestions with this?


One could write the packed data to a bit column in the binary table
with TFORMn = 'rX'. The TDIMn keyword could be used to convey the number
of bits per sample. For example, a 1-dimensional 256-sample spectrum
with 2 bits per sample could be stored with

TFORMn = '512X'
TDIMn = '(2,256)'

This could be extended to higher dimensional data. If the record
contained the spectrum that was read out a 4 successive times, then it
could be stored with

TFORMn = '2048X'
TDIMn = '(2,256,4)'

I might be clearer however to write the 4 spectra as separate rows in
the table.

Bill
--
__________________________________________________ __________________
Dr. William Pence
NASA/GSFC Code 662 HEASARC +1-301-286-4599 (voice)
Greenbelt MD 20771 +1-301-286-1684 (fax)



 




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] Packed binary values Thierry Forveille FITS 0 April 30th 07 04:19 PM
[fitsbits] Packed binary values Mike Nolan FITS 0 April 27th 07 04:42 PM
Power-packed results? roberts Policy 0 March 24th 05 01:40 PM
[fitsbits] FITS Binary Table Proposals William Pence FITS 5 November 23rd 04 09:54 PM
[fitsbits] Start of Public Comment Period on FITS Binary TableProposals William Pence FITS 2 October 19th 04 02:31 PM


All times are GMT +1. The time now is 01:45 AM.


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.