[daip] AIPS Data Importing
Eric Greisen
egreisen at nrao.edu
Tue Aug 7 16:54:10 EDT 2007
I have taken another look at the issue of writing a translator program
to swap byte order. There are lots of file types:
MA, UV are all floats
RL all character
HI, MS, CA simple structures w character and no double precision
CB - complex header structure but I already have a translator to/from
network order for XAS's image catalog
The Tricky ones will be PL (plot), SL (slice), TG (TGET), SG
(SAVE/GET) but I bet that a dumb routine that swaps any word that is
not all legal characters should work since none of these has any
double precision data.
Then there are tables - quite complex but a self-defining structure
that is amenable to analysis independent of the 24 types I counted.
It will take a while to write, particulary the table part and to
debug. If you have some time, however, I think I am going to do this.
(You are not the first nor the last to encounter this problem.)
Eric Greisen
More information about the Daip
mailing list