Index: trunk/Ohana/src/opihi/cmd.data/rd.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/rd.c	(revision 18251)
+++ trunk/Ohana/src/opihi/cmd.data/rd.c	(revision 18278)
@@ -186,4 +186,6 @@
     status = gfits_fread_ftable_data (f, &ftable);  // this just reads the bytes (not even a SWAP)
     status = gfits_uncompress_image (&buf[0].header, &buf[0].matrix, &ftable);
+    // uncompressing the image leaves the format as an extension
+    gfits_extended_to_primary (&buf[0].header, TRUE, "Standard FITS");
     gfits_free_table (&ftable);
     // XXX this currently does not work for a cube (we get a cube back, not a specific plane)
