#include #include #include #include #include /* This routine reads in each real-valued pixel, checks for garbage values and replaces them with nulls as needed, swaps the bytes, inverts the axes, and writes spits them back out for use as a FITS data segment. 09 November 2006, ACR */ main( int argc, char *argv[]) { union swapspace { float r4; char b1[4]; }; int lines,samples; int row,col,row2; float img[1024][1022]; union swapspace pixel; char hold; /* Initialize: */ lines = 1022; samples = 1024; for (row=0; row