The easiest way to import generic data into GBTIDL is to use standard IDL tools to get the data into a data container, as described below. You can then use GBTIDL to operate on data in data containers, and you can save the data containers to SDFITS format as well.
A data container is just an IDL data structure with a predefined format. See the 'About Data Containers' section for a discussion about data containers in GBTIDL. You can get data into a data container as follows:
dc.source = 'mysource' dc.scan = 24 dc.coordinate_mode = 'J2000' ...
set_data_container, dc
fileout,'myfile.fits' keep
data_free, dc
start a new GBTIDL session first
filein,'myfile.fits' getrec, 0
Please contact us with any questions about the contents of the data container or other aspects of GBTIDL necessary to do this translation. (However, please be advised that we have limited resources, and will not be able to provide extensive development for reducing data from non-NRAO telescopes.)
As an example, the contributed procedure uni2sdfits uses an IDL class sdd to read in the UniPOPS binary file and then the above steps are used to copy it to the primary data container and keep it to the output file. The source code can be seen by clicking on the "source" links at the top of the page in each of the above two links.