procedure setfitstype

Set the (FITS extension) type info of given fits to either image or bintable

setfitstype VAR [, extension], [ /image, /bintable]

VAR:   A named variable which contains a FITS, a FITS list, or a string array
extension:   Optional in case of a FITS list, which element to set

/image:   set the FITS type to image
/bintable:   set the FITS type to bintable