*
* @param o
* The object to be described.
*/
public static BasicHDU HDUFactory(Object o) throws FitsException {
Data d;
Header h;
if (ImageHDU.isData(o)) {
d = ImageHDU.encapsulate(o);
h = ImageHDU.manufactureHeader(d);
} else if (RandomGroupsHDU.isData(o)) {