Merging 2 fields together

This is how i was able to merge 3 fields together to create a single big field. CFV

The fields i merge together were G49.4-, G49.5-, G49.75-
 * G49.4- and G49.5- were reduced by me and G49.75- by Bill

So first i collected all the "good" and "ok" beams from all the above fields on a single folder and called it. G49.45-
 * I renamed the files so they can have common names
 * G49.4- files were rename to G49.45-_split##A.smt
 * G49.5- files were rename to G49.45-_split##B.smt
 * G49.75-  files were rename to G49.45-_split##C.smt
 * This naming system is so i can easily identify from which field it belongs and so i can easily use the macro CombGrid to create datacubes. Note: The P is neccesary so this names can work with CombGrid.

Before we can use CombGrid, we need to make the center and source name of each file to be the same. For that we are going to use a for loop to change it for each file.

I made a .class file to change the center and source and it is the following. Just use emacs and write it as NAME.class. 'note you still need to hance the prefix and suffix to represent your field every time. '

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

modify_cfv.class
 * define character prefix*100
 * define character name*100
 * define character output*100
 * define character suffix*100


 * prefix = "g49.4-"
 * output = "G49.45-_split"
 * suffix = "A"


 * for i 11 to 88 by 1
 * name = 'prefixi"P.smt"                ! it is 'prefix'   'i'   "P.smt" 'without spaces
 * if file(name)
 * file out 'output''i'suffix'"P.smt" multiple       !'output'  'i'  'suffix'  "P.smt"
 * ! I added the P to indicate that it has been modify to the new center and source name. The P is also needed so that it can work with CombGrid since it will search for a P.smt file. 
 * file in 'name'


 * find
 * for j 1 to found
 * get idx%num[j]
 * modify source G49.45-
 * modify position 49.45 -0.50
 * write number
 * next
 * end if
 * next

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

then i just created an rclist containing the beams i want to use in CombGrid and it should work prefectly
 * example Rc_list.txt
 * 44AP.smt
 * 44BP.smt
 * 44CP.smt
 * CombGrid G49.45-_split G49.45_rclist1 Rclist.txt
 * so it will combine G49.45-_split 44AP.smt and write it into G49.45_rclist1.lmv