[fitsbits] Output array type when BZERO is an integer {External}

Seaman, Robert Lewis - (rseaman) rseaman at arizona.edu
Wed Mar 13 11:27:33 EDT 2024


Richard Mathar said:

It's difficult to imagine that any data taken from a real instrument need 64 bits (20 decimal digits), i.e. more than 32 bits.
Real instruments can produce complex measurements in both meanings: complex numbers or complicated combinations of optical/IR cameras or multispectral measurements. I wouldn’t myself choose to glue separate numbers together in a single integer pixel array, but other projects/programmers might. That said, I don’t know if anybody does do that. It would typically be a data cube with distinct per-band planes if they don't use an MEF format.

ADC's in the MHz range can produce 16bit data (10 decimal digits).
Lots of CCDs have 18-bit A/Ds. These data are usually stored in 32-bit signed integer pixels. (Reduced data might then be 32-bit floats.) FPACK only cares about the values, not the datatype, so the empty space in each pixel will be efficiently squeezed out when compressed.

The exception are time stamps, if "stamped" by computers that can resolve milliseconds reliably and set the origin at some arbitrary J2000-alike or MJD references. (But clock synchronization is not easy, so in reality only time differences matter to resolve GRBs etc...)
Use cases for high-resolution absolute time stamps are not too hard to find. Optical or radar astrometric observations in the solar system, occultations, pulsar timing can easily drill down to millisecond precision against an absolute reference like UTC. Commercial GNSS clocks can provide sub-microsecond timing against hardware timestamps. Usually a floating-point representation like MJD is used, but one supposes some project might rely on large integer counts of nanoseconds.
Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listmgr.nrao.edu/pipermail/fitsbits/attachments/20240313/6f683db3/attachment.html>


More information about the fitsbits mailing list