A format of "RDF_range_1" implies that a height, width, and size are the only requirements for specifying the image dimensions.
A format of "Rdf_spectrum_1" implies the existence of the following header tags: ndata, nchan, nspec, ntags.
There is currently no mechanism for specifying the order, but the tag value "JCP" can be read to discover the polarization of any spectrum.
The number of spectral pairs in an image can be calculated using
npairs = nspec
width = ndata + ntags
height
value.