ANALYSTS JOB MANUAL

(Version 4.0.1 December 19, 2001)


Table of Contents



INTRODUCTION

Data Analysts can be thought of as scientific assistants and quality control filters. Their main tasks are aiding observers with their VLA and VLBA observations, preparing VLBI projects for correlation, helping maintain the integrity of each instrument, assessing the data quality from the VLBA, and distributing data to researchers. There are elements of investigation and management involved in the daily problems that data analysts encounter.

The follow manual is a cookbook outlining the main steps of many routine tasks that data analysts do on a regular basis. It is not an exhaustive (or even understandable) list of tasks, but it can help guide a foggy mind. This manual does not include any tasks specific to VSOP projects.

On a lighter note, here is a listing of AOC data analysts mottos, sayings, and philosophies:


VLA Jobs


    VLA schedule reminders

    Description: When Barry Clark finishes the monthly schedule, we send out canned reminders to all the observers. This is to help prevent VLA down-time due to the absence of the needed observe file. Some people like this philosophy, and some people don't. Bottom line is that it hurts the observatory, and it hurts the observer if a neglected file is skipped.

  1. Determine who the scheduling contact is for each VLA project. This information can be found in the proposal cover letters kept in the filing cabinet in the office, or from Lori Appel. Send reminders to only the scheduling contacts unless it appears that the contact will not receive the reminder.

    Proofreading VLA OBSERVE files

    Description: If observers sends us a VLA observing text file, we check it over for common errors and mistakes. We use OBSERVE and JObserve to help us check it. At the very least, we want to make sure the file will run on the MODCOMPS at the site and that it fits correctly into the monthly schedule.

  1. Save files in the directory /home/anduril/observe/ as <projectmmmdd>.obs.
  2. Cut out Email headers and/or convert with DOS2UNIX (or with mimencode).
  3. Load file into OBSERVE or JOBSERVE.
  4. Make sure the AIPS number is not zero or blank.
  5. Check time range and day against the monthly schedule.
  6. Make sure there is time on all sources (Usually at least one minute).
  7. Check to see if a scan will be lost due to a possible long unwrapping. Is a wrap card needed?
  8. Make sure dwell time on source is reasonable. For "referenced pointing" scans there must be a minimum of 2 minutes 20 seconds dwell time to determine the pointing solutions.
  9. Check that at least one of the three VLA flux calibrators was observed.
  10. Check that the LO settings are either defaults or something reasonable. Run LOSER if you have to. All of the LOs MUST be set in a spectral line experiment.
  11. Make sure reference pointing is done correctly. (i.e. the IRs and Ts are in the right places.)
  12. Check to make sure the scans are in stop times and that they look reasonable.
  13. Watch out for stray characters that are confusing OBSERVE.
  14. Ask Gustaaf van Moorsel or Michael Rupen to help look over complicated line files.
  15. Ask Chris Carilli, or Claire Chandler to help look over complicated Q-band (7 mm) files.
  16. Ask Gustaaf van Moorsel for general help with complicated files.

    VLA/VLBA ARCHIVE DATA REQUESTS

    Description: Observers may make a request to have their VLA data sent to them. (It is not sent automatically like VLBA data.) It's our job to fulfill these requests. Or they may retrieve it themselves from the NRAO Data Archive.

  1. As the VLA observes, the data are written to a local disk in the control building and also to a DAT backup tape. Sometime after IAT midnight, the data are transferred to the NRAO Data Archive in Socorro. After that time, observers may retrieve the data from the archive at http://e2e.nrao.edu/archive/archiveproject.html.
  2. VLBA data is put into the NRAO Data Archive after correlation. There are two formats: The individual FITS files and slightly processed FITS files which we produce with AIPS task 'vlbaarch'. In the "processed" files, the raw correlator job files have been loaded uncompressed in AIPS with VLBALOAD (see HELP VLBAUTIL) and a CL interval of 15 sec (0.25). Their tables have been merged, they have been re-indexed and, if necessary, they have been TB sorted, sub-arrayed and corrected for polarization labeling (VLBAFIX). Then the data was split in individual (multisource) frequency-IDs and written out as uncompressed FITS files (FITAB). They should also include the HIstory files which you can read in AIPS.
  3. Proprietary VLA and VLBA data are password protected, and the password may be obtained from the data analysts office only by the PI or other authors on the project. After the proprietary period of 12 months, the data become public and a password is not needed.
  4. Data requests usually come into the office in the form of an Email. People can fill out an online request form on the VLA webpage which sends an Email to analysts. If the requestor is not an author of the project, and the data are still proprietary, the requestor will need to get permission from Barry Clark or Jim Ulvestad.
  5. Critical information needed are the project name, the observation date, a shipping address if it is a tape request, and an Email address. Write back to the requestor if more information is needed.
  6. See the appropriate section below when you are ready to complete the request.
    1. Retrieving data from NRAO Data Archive

    2. VLA logs are available on the web at http://www.vla.nrao.edu/operators.
    3. VLBA logs are available in the project directory at /home/vlbiobs/astronomy/.
    4. Go to http://e2e.aoc.nrao.edu/archive/analyststool.html. Enter the project name. The access key "testing" will unlock any dataset. Do not give this out! It is for analysts use only.
    5. Click on Submit Query. The data files will appear. Select those needed.
    6. Enter an email address for the system to reply to when the data are ready, and enter a directory for the files to be written to. Click one of the Download buttons. Wait for the email saying the data have been downloaded.
    7. The observer can ftp the files and load them in to AIPS themselves setting their own parameters. The VLA files are loaded into AIPS with task 'FILLM', and the VLBA files are loaded into AIPS with task 'FITLD'. (There is a standard message to email observers at /users/analysts/diy.data that explains how to retrieve and load VLA data.)

        FTP archive request and data distribution

      1. VLA logs are available on the web at http://www.vla.nrao.edu/operators.
      2. Check the archive data tape out of the vault. Tape numbers are listed on the upper left side of the first page of the log. The data are available on an XH (high-density) tape.
      3. Start AIPS version 'NEW'.
      4. Use task FILLM to take data off tape and into AIPS.
      5. Use task FITTP to copy data from AIPS into /agave/ftp/pub directory.

      6. Set OUTFILE = 'pub:<projectcode>.<YYMMDD>', as in pub:AZ100.910101.
      7. Get a copy of the file /users/analysts/ftpmail and modify it for use.
      8. Mail message to PI.

        Tape (8mm or 4mm) archive request and data distribution

      1. VLA logs are available on the web at http://www.vla.nrao.edu/operators.
      2. Check the archive data tape out of the vault. Tape numbers are listed on the upper left side of the first page of the log. If the data is recent, the original N tape should be available. If the data is about two weeks old or older, the N tape will be available on an XH (high-density) tape. Use the N -> XH book to find out which XH tape you'll need.
      3. Load the first archive tape into an Exabyte drive and load a blank tape into either a DAT (4mm) or Exabyte (8mm) drive. Start a VLAR window (Select VLAR from the Basic tools window found in the background menus).
      4. Select the correct input and output device. Fill in the Program ID and Time Range. Make sure Antennas File: is always set to LAST USED.
      5. Select Action ..., then COPY / TRANSLATE, then Accept.
      6. NOTE: For High Density (XH) tapes, it saves time to skip ahead to the file number where the data actually starts. The file number where the data starts can be found in the tape logs in the archive vault. Before starting the copy, select Position ...from the VLAR window. Choose INPUT as the device to position. Select SKIP Files #, and fill in the number of files to skip over (This is one file less than the file number that the data is on). Hit Accept. Wait for the tape to position.
      7. When the tape is done copying, check to make sure all the requested data was copied. Rewind the tapes and remove them from the drives. Fill out a tape label for the tape with the requested data. Note the project name, observation date, and name of the requestor on the label and stick it on the tape.
      8. Load the tape back in the tape drive. Then start up AIPS in an analysts owned xterm window. Mount the tape in AIPS. Run task PRTTP with adverb INTAPE set to the correct AIPS tape drive number, and DOCRT set to -1 to force the output to a printer.
      9. Fill out an AOC Shipping Form as completely as possible. If no preference is made by the requestor, send tapes FEDEX to addresses inside the U.S.; send tapes US Mail Air Parcel Post to addresses outside the U.S. FEDEX requires a street address (NOT P.O. Box numbers) to be able to deliver. Send the observing logs, PRTTP output, and RFI survey with the tape.


        FILLM requests

      1. Get a copy of the VLA log of the observation from the library's log books.
      2. Check the archive data tape out of the vault. Tape numbers are listed on the upper left side of the first page of the log. If the data is recent, the original N tape should be available. If the data is about two weeks old or older, the N tape will be available on an XH (high-density) tape. Use the N -> XH book to find out which XH tape you'll need.
      3. Start AIPS with requestor's AIPS ID on the machine he/she has checked out. If the ID is not valid, see Enabling Users below about getting the ID added to the machine's access list.
      4. MOUNT the archive tape. Be sure to use the right INTAPE.
      5. Use task FILLM to take data off tape and onto disk.
      AOC Workstation Requests

      Description: Visiting observers use public workstations in the AOC to work on their data. They request a machine when they make reservations to come to the AOC. Gayle Rhodes is in charge of managing the signup for public workstations and making sure that the observers' AIPS numbers are enabled on their machines. However, when Gayle is absent, the analysts assign workstations and enable AIPS numbers.

      FOR DOCUMENTATION UPDATE GO TO /opt/local/doc/workstations/html.

    1. Enabling Users

    2.  
      1. Get necessary information for the request such as: Name of user, Dates needed, project name, AIPS number, and whatever else is helpful.
      2. Next, ssh aipsmgr@machine. cd /home/AIPS/DA00/
      3. emacs NETSP. Add the user's AIPS number to the list of enabled users of the disks of the requested machine. Make sure you add them to the first disk of a machine or they won't be enabled.

       
    3. Disabling Users

    4.  
      1. Login to the machine to be cleared as aips.
      2. cd to /DATA/machinename_01/. Use 'REHEX (1LD)' to find out whose files are there.
      3. The SPACE file must be left there. If it's not there, create it with 'touch SPACE' command.
      4. Use rm -rf FITS to remove old files. Or remove anything else that looks like it's not suppose to be there.
      5. Repeat for each disk that the previous user used.
      6. Emacs NETSP and remove the user's AIPS number from the machine disks list.

      PN3dB (VLA tracking error test)

      Description: PN3DB is a test of the tracking system of each VLA antenna. When PN3DB is run at the VLA, the array observes a source at the center and half-power points of the antenna beam. Fluctuations in the flux at the half-power point are indicative of poor tracking.

    1. Start up AIPS.
    2. FILLM data to disk with VLAOBS = 'PN3DB'.
    3. Switch to VERSION = 'localaoc'.
    4. RUN PN3DB. This defines a procedure that will run CALIB, PN3PL (a replacement for PNPLT), and LWPLA. The CALIB is done with SOLMODE = 'A&P' and SOLINT = 0.5 minutes. The LWPLA can be in black&white or in color.
    5. INP PN3DB. This will show:
        INNAME UV data (name).
        INCLASS UV data (class).
        INSEQ UV data (seq. #). 0 => high
        INDISK Disk unit #. 0 => any
        DOTWO > 0 -> fit slope too
        PIXRANGE Range to plot: 0 => self
        scale each antenna separately
        NPLOTS Number of plots per page
        OUTFILE Report file
        DOCOLOR Do color plots (if > 0)
       
        The defaults are:
        NPLOTS <= 0 -> 5
        OUTFIL ' ' -> 'FITS:PN3DB.LOG'
       
    6. Update pn3db.log in /users/analysts/pn3db. (Rows are grouped by antenna number.)
    7. Copies of the plots and pn3db.log go to Ken Sowinski. (They used to go to Lew Serna (VLA Site), Bob Broilo (VLA Site), and Chris Carilli.

      VLA Baseline Corrections

      Description: Baseline corrections are tests to determine differences in the actual position of an antenna and where the VLA observing system thinks it is. These differences are then corrected for and this helps improve the quality of the data.

    1. Pre-observation: Ask Rick Perley for observing band.
    2. You have two choices for loading the data into AIPS:
    3. PRTAN for antenna table with NCOUNT = 0, OUTPRINT = ''. Save the last page for the book.
    4. QUACK, TVFLG, or UVFLG data as needed. See the AIPS cookbook for help with these tasks. In QUACK set APARM = 0 1/6 0 0. QUACK flags the first 10 seconds of data in every scan.
    5. CALIB with REFANT = 6 (or whatever's the standard), SOLINT = 0, and CPARM 0 0 10 10 1 (if atmosphere seems stable, it is OK to use vector averaging, CPARM(5) 0). If you are using a small number of antennas in the run, use APARM(1) = no. of ants. Before redoing CALIB for any reason, delete the SN table with EXTDEST.
    6. If there are a lot of closure errors with large values, produce a SCAN output with LISTR with OPTYPE = 'AMP'. Look for large variations. Flag the data corresponding to these time ranges, as in Step #5. Proceed to Step #6 again.
    7. Switch to VERSION = 'LOCALAOC'. Run task BASFT with OUTPR = 'home:baseMMMDD.dat'. (output must go to disk, preferably to home = /users/analysts.) The BASFT task was written by Gustaaf van Moorsel.
    8. mv BASEMMMDD.DAT baselines/
    9. cd /users/analysts/baselines/
    10. Edit the BASEMMMDD.DAT file. Replace 'FUNNYDATE' at beginning of file to 'YYYY-MMM-DD' date format of the day of observation.
    11. Run antloc

    12. antloc is a FORTRAN program written by Rick Perley.

    13. If the solution RMS for an antenna is above 15, first try another IF. If that doesn't work, generate listings of SN table gains [amp and phase, DPARM(3) 5] with LISTR to check data quality; don't worry about weak amplitudes. Any times with wildly varying phases should be flagged out, as in Step #5.
    14. antloc produces the following files:

    15. - BASFT.OPR contains suggested changes in nanoseconds (i.e. M/C corrections). The problem with this output is, for now, we cannot use the old Bx, By, Bz values in this form. The numbers are NOT the actual values from the Operators M/C file, but a combination of those numbers plus some corrections that are added onto the data during the observations. Print out a copy of this and give it to Ken Sowinski. He then sends the corrections to the VLA Operators to put in the ModComps.
      - BASFT.VLA contains the corrections in meters. Show Rick Perley this file, the PRTAN antennae location file and the end summary of the BASFT.FIT file. This file must be edited for the correct move date of the antenna, the observe date and the day and time the Operators put the corrections into the ModComp. This file is then copied into the file /home/vlbiobs/baselines/baselines.vlais<YY> which is eventually posted on the web.
      - BASFT.FIT gives a summary of the result (in nanoseconds) as well as the antenna by antenna phase offsets, RMS fits and the baseline corrections with error range. data.out is basically all the above squeezed together into a single file.
      BASFT is in /users/gvanmoor/sw
    16. Update /users/analysts/baselines/baselines.vlais<YY>.


    17. Identifying poor baseline determination sources.

      This second part of baselines only needs to be run for full array baseline observations. Small subarrays to find one antenna can be neglected.

    18. Once the regular baseline routine is all done, go back into AIPS and delete the SN table from CALIB (using verb EXTDEST). You may find it convenient to run verb CLRMSG as well.
    19. Next, run task LISTR, with adverb optype = 'scan', docrt = 132, and outprint = ''. This produces a list, at the end of which is another listing of scans with the corresponding number of visibilities. Look through this list and pick out the three sources that have the largest number of visibilities. Write them down, or remember them somehow.
    20. Rerun task LISTR, with sources = <the three previous sources you noted> optype = 'matx', bif = 1, eif = 1, and dparm = 3 1 0. This produces two groups of tables for each scan. The first is filled with (relatively) larger numbers (fluxes) and the second is filled with (relatively) smaller numbers (rms of fluxes). In the header information for the second group of scans, you will find the average flux ("Matrix average"). Record this number for each of the three sources you picked out in the previous step.
    21. Run task SETJY. This task will need to be run once for each source that you picked (you can't do all three sources at once). Set optype = '', bif = 1, eif = 2, and zerosp = <"Matrix Average from the previous step> 0 0 0. A note on zerosp: Multiply the "Matrix Average number by 10 and use that value for the first value of zerosp. Drop the scientific notation and type the number in decimal form (i.e. X.XXX or 0.XXXX).
    22. Once SETJY has been run for each source, rerun task CALIB. Set the refant to whatever is reasonable (8? 4? whatever we're using), solint = 0, cparm 0 0 5 5 1, docalib = -1, minamper = 10, minphser = 10, aparm(6) = 2.
    23. Sift through the screen output of CALIB and write down any source that has an extremely high number of closure errors. These are potentially bad sources. Make sure the closure errors are not simply caused by a renegade antenna.
    24. Now run task GETJY. Set calsour = <the three initial bright sources you picked>. Set sources = ''. At this point you can rerun LISTR with optype = 'gain' and get a listing of numbers, all of which should be close to identical.
    25. Run task CLCAL. Leave calsour set to the three initial bright sources. Set interpol = 'box' and intparm = 96.
    26. Run task UVPLT for each bad source you noted. The adverb sources must be set to one of the potentially bad sources you found. Set docalib = 1, stokes = 'rr'. To print out the plots set adverb dotv = -1. Then run task LWPLA with dparm = 0, and plver = n (n being the number of the last plot version UVPLT made). If you just want to look at the plot before printing, either run UVPLT with dotv = 1, or after running UVPLT, run TKPL with plver = n.
    27. Give the UV plots to Rick Perley, and see what happens... He keeps a record of truly awful sources, and supposedly eliminates them from the baseline observe file the operators run during baselines.

      VLA Pointing Corrections

      Description: In order to maintain the pointing accuracy of each VLA antenna, pointing observations are made with the VLA. We are now in charge of the analysis of the pointing data. This analysis leads to an update of the pointing models for each antenna.

      The VLA operators usually run pointing roughly twice a month. They run two types of pointing observations. One is refered to as an X-band 'reference' run and the other is refered to as a 'subreflector/rotation' run observed at several bands.

      The VLA operators will transfer the pointing data off of the MODCOMPS to banshee. Phillip Hicks will move the file to /home/vlbiobs/pointing/ and notify us when it is there.

    1. The VLA operators will Email an observing log to us when pointing was observed. They will also send us some maintenance reports and weather plots as well so that we can determine if the weather was poor or an antenna was broken.
    2. cd to /home/vlbiobs/pointing/. The initial pointing data will be in a file with the format <A><YYMMMDD>.PNT where A is equal to N for night, D for day, O for offset, and R for reconfiguration (example: N99MAY10.PNT). Copy the file to /home/vlbiobs/pointing/. In rare cases, lines with funny or missing characters may have to be deleted so that peek doesn't crash. Some lines refering to antenna #29 (i.e. Pie Town) may have to be deleted as well.
    3. Run peek

    4. peek is a FORTRAN program maintained by Chris Carilli. Direct questions to him about peek
      peek spits out several files. It creates a .const, .changes, .(freq)rot and .PTR files. We are interested in the .PRT and .CONST files, or the .(freq)rot files if this is a collimation observation.
    5. In the .PRT file (ex. N99MAY10.PRT) of an X-band reference pointing run, there is a section for each antenna called: POINTING EQUATION SOLUTIONS FOR ANTENNA #. This section lists the old, new, change, and error to an antenna's pointing model coefficients ( 7 azimuth and 5 elevation parameters). The change and error numbers for each parameter must be check against one another, and if the magnitude of the change value for a specific parameter is at least 3 times greater than the error value, then all of the new coefficients will be used in the final pointing file by the VLA operators. Otherwise, the old pointing coefficients are used in the final pointing file. PEEK makes these determination automatically and places them in the .const file which is used by the VLA operators. Whether the old or new numbers are used needs to be determined for each antenna. A quick check of the integrity of the data is to make sure the Postfit rms Errors are not much greater than roughly 10 arcseconds.
    6. For Collimation offset runs (also called rotation or subreflector runs) the initial data file that is needed will begin with an "O". These are multi-frequency files used to determine collimation errors with respect to each specific feed on an antenna. After running peek, the COLLIMATION OFFSETS section of each antenna listing in the output .PRT file needs to be examined. Check the change and error solutions for each band. If the magnitude of the change is greater than 3 times the error for either the elevation or azimuth offset, use the new offsets for that frequency and antenna; otherwise, use the old offsets listed. Ken Sowinski must check over and approve the offsets for the antennas at Q-band.
    7. Like the reference pointing run, a pointing file with collimation offsets for all antennas needs to be created for each frequency. These files needs to be used by the VLA operators.
    8. Email the Phillip Hicks and notify him that the pointing files .const or .(freq)rot are on /home/vlbiobs/pointing/

    vlba-antennaVLBA Jobs

    Pre-Observation

      Managing VLBA project Contact information.

      Description: We need to know the local technical contacts for VLBA projects that have one assigned, and when observing files are due.

    1. On an approximately monthly basis, Schedsoc sends an email for each upcoming approved or scheduled VLBA project.
    2. For dynamic programs, these messages should be saved as <projectcode> in the directory /home/vlbiobs/astronomy/dynamic/contacts  (a.k.a. /home/archive/e2e/archive/operations/VLBA/observe/dynamic/contacts). For scheduled observations, use the command 'md' to make a project directory in the month subdirectory of that project's date. Then put the contact note in the directory you just made. Note that 'md' also makes the subdirectories /sniffer and /jobs/orig which will be used later for correlation and sniffing.
    3. The project should be recorded on the hardcopy of the VLBA schedule with the schedule (key) file due date, the initials of the local contact, the data rate, and any foreign observing stations. It is important to note whether Y1 or Y27 will participate. If so, the note serves as a reminder to send the observe file to the VLA operators.

      Making .crd & .sch files from .key or .com files

      Description: VLBA observers send us 'keyin' or .key(.com) formatted files for VLBA observations. These files need to be converted to VLBA control files using the program SCHED.

    1. The .key or .com files can be found or should be placed in /home/vlbiobs/astronomy/<MMMYY>/<project>, where <MMMYY> is like jul07.
    2. Check that station file, setup paths and filenames are correct in the .com or .key file. The setup files (*.set), the station data (stations.dat), and the source coordinates (sources.vlba) are in /users/cwalker/sched/catalogs. (can also use $SCHED/catalogs.) Special setup files should be put in the same /home/vlbiobs/astronomy/<MMMYY>/<project> directory.
    3. Run sched < .key or .com file.
    4. Run cksched on one of the station's crd files to discover errors.
    5. Email the Local Contact Person so they can check the files on /home/vlbiobs. (The Local Contact is assigned by Barry Clark.) Contact information can be found at /users/analysts/vlba/mmmyy/. Wait until the contact checks the files and approves them. Then proceed with the paperwork. Many projects will not have a contact assigned. If not, then the analyst needs to check over the files.
    6. Fill out a VLBA Operator Questionnaire using the info in the files:
    7. If the VLA is included, fill out a VLA Operator's Questionnaire also:
    8. If the VLA is involved, obs.y as made by sched may need to be fixed. If the observation is phased array, phasing scans may need to be added to the schedule. Hopefully the PI has added these scans already. If not, ~5 min. phase calibrator scans must be added every 15 min. (A-array) to 30 min. (D-array) in 'autophasing' (VA) mode. Following scans should be in 'apply last phase' (VX) mode. The PI may or may not have left room for the 'phasing-up' scans. If they don't, tell the PI to put in gaps at least 3 min. long. For either mode of operation, at least one scan on a flux calibrator also needs to be observed.
    9. Once the Local Contact has OK'ed the files, hand the VLBA Operator Questionnaire and the project's Proposal in to Peggy Perley.
    10. If the VLA is involved, print out the sch.y, crd.y, and OBSERVE (.obs) files and send them and the VLA Operator Questionnaire to the VLA site a day or two before the observation.
    11. Enter the project into the program schedules. (See Entering projects into schedules)



      Preparing Coordinated Millimeter VLBI Array (CMVA) SCHED files.

      Description: CMVA runs are extremely non-standard. They involve the VLBA antennas which have 3 mm receivers and other millimeter stations which use the older Mark III formats. Vivek Dhawan handles most or all of the subtle tweeking that these projects need.

      The CMVA is run by Bob Phillips at Haystack Observatory. Almost everything is MKIII format and is usually correlated at Haystack. This is still rather nonstandard so see Vivek Dhawan or Joan Wrobel if you have questions.
       

    1. Find out when the next session is scheduled - from Barry Clark. Or see each months schedule.
    2. Look around at old session files to orient yourself with what is needed.
    3. Nag Bob Phillips two weeks before session to produce .drg file. Several PI's projects are combined into one or more .drg files. lasting 2-5 days.

    4.  

      Phillips should also send a summary of frequency setups, detailing which BBC's, polarizations, and tracks he wants recorded at the VLBA-controlled sites. Vivek can usually figure this out, but it sure helps to have the summary explicitly from the scheduler.
       

    5. Get .drg file; edit it to put in correct station names if necessary; get code for experiment from Peggy; e.g. c973 for CMVA '97 session 3.
    6. Locate header files, e.g. mkiii.head in vlbiobs/vlbiobs/jwrobel/mmmyy/astr/project/ and copy it to upcoming project directory.
    7. THE IMPORTANT STEP. Make appropriate setup files as needed, corresponding to the $CODES section of the .drg file. Many examples now exist, see the files in /home/vlbiobs/astronomy/apr97; /jun97; /oct97; /dec97; also see summary.set (if one exists), and comments in the setup files. Vivek will see about merging these setups with Craig Walker's standard ones when we settle on a standard set. These are all made-to order for each session/antenna. Essentially, the track assignments for the VLBA recorders are matched to the MKIII ones detailed in the $CODES section of the .drg file, with the caveats that MKIII follows a USB, LSB sequence, and we do the reverse; and that the first VLBA data track is #3. Thus (1, 15) from the $CODES translates to tracks 18, 4; etc. "Mode A" is equivalent to tpmode=1; "mode B" to tpmode=2.
    8. Run skedconv for ALL stations. (Only the VLBA ones are needed, but this makes the whole experiment clear - subarraying, etc.) Skedconv will ask you for header and setup file names, and produce a keyin file to control the running of SCHED, to actually make the schedules.
    9. Cut and paste cover info from an old session .key file (to keep SCHED happy) to the skedconv output.
    10. Edit the stations table in SCHED.key file to put in correct station CONTROL type - e.g. VLBA, MKIII, MK4. Effelsberg has 2 separate data acquisition systems, down to the recorder, controlled by SNAP for MKiii, VLBA for stcode EB_VLBA (CMVA usually is SNAP.)
    11. Finally, run SCHED, deposit on vlbiobs, and do paperwork as usual. Tapes are shipped to Haystack for correlation, unless the experiment has some special spectral-line processing that must be done at Socorro. Note: Thick tapes not accepted at AOC.


      Entering projects into OMS

      Description: When a project is ready to observe it needs to be entered into a database. The program that does this is called OMS.


      Dynamic Schedules

      Description: In order to increase efficiency and effectiveness, the VLBA is moving to a dynamically scheduled format. That is to say that projects will be scheduled at the last minute to fill gaps with the most appropriate project. This doesn't work very well at the moment and is still in an experimental stage.

    1. As dynamically scheduled .key files roll into the vlbiobs account via Email, they should be saved off in the project subdirectory under /home/vlbiobs/astronomy/dynamic/.
    2. Run sched on the file and check over the output files. Disregard the time range which will have to be determined at a future date.
    3. Email the local contact and ask him/her to examine and approve the files.
    4. When the contact approves the files, fill in the VLBA Operator's Questionnaire, leaving the UT observing time and the antennas used blank. Put the Questionnaire with the rest of the dynamically scheduled projects.
    5. When a project has been chosen to run (Usually Peggy Perley brings us a list of projects and the starting dates of each), edit the day number in the .key file of that project to the VLA modified julian date corresponding to the date of the observation. Run sched on the .key file, and check the starting date in the .sum file to make sure it agrees with the day it's supposed to start.
    6. Create a project directory under the month of observation directory on vlbiobs using the script md. Copy all of the project files from the dynamic directory over into this newly created project directory under the month of observation (mmmyy) directory.
    7. Complete the VLBA Operator's Questionnaire (Fill in the UT Observing time, the antennas to be used, and when schedules was updated).
    8. Fill out schedules for that project. Don't send the prod letter to the P.I. (See Entering projects into schedules)
    9. Make a copy of the Questionnaire and place the copy back with the other dynamic schedule questionnaires. Give the original Questionnaire to Peggy Perley or Dave Medcalf.
    10. When a dynamically scheduled project has been observe, send the prod letter to the P.I.
    11. Proceed as with a normal project.

    Pre-Correlation


      Loading monitor data into the database (mon2db and fs2db)

      Description: Monitor data is recorded in a file at each station during a VLBI project. This data has to be loaded into the VLBA_MON database. It contains information that will eventually be used to generate correlator job scripts.

    1. Current VLBA mondata is loaded automatically by Barry Clark's cron job. Old VLBA mondata is restored by Peggy Perley and we load it. We FTP the foreign station Mark IV logs to vlbiobs and load the mondata for each Mark IV station log with fs2db.
    2. Check if data is already loaded by using dbreports. Use a date range spanning the four previous days and the day after the observation's time range. If data for all stations for the entire time range is listed, data is loaded. If data appears missing for a station or a time range, load this data by itself. (mon2db will crash if it tries to load data that is already loaded.)
    3. Check if mondata is in either /jansky/mdata or /jansky/mdata2 or /dopey/MONDATA. Contact Peggy Perley if you have questions or need the data restored.
    4. Monitor data can be loaded by two different programs, depending on the type of monitor data. mon2db is used for VLBA-type mondata, while fs2db is used for Mark IV-type mondata.
      1. mon2db
      2. cd /home/vlbiobs/astronomy/<mmmyy>/<project code>/jobs/ . Logs from the mondata loading will be put in this directory.
      3. Run mon2db with ANTENNAS, UTTIMERANGE, and MONDATAPATH set to appropriate values. More than one antenna can be loaded at a time.
        fs2db
      1. This program will only work on log version 9.1 and higher. The version of the log is listed on the first line of the file.
      2. Run fs2db. SESSION should be correct. UTTIME should encompass the observation. POLAR should be left as *.
      3. If gaps in the mondata are detected and can't be filled (due to problems with mon2db, fd2db, the mondata, or the database), talk to Barry Clark.
      4. If the VLA was involved, tell Barry so he can fix the frequencies if the project is multi-freq, or use editobs if it's mono-freq.

        Making database repairs (editobs)

        Description: Whenever there are errors in the VLBA_MON database, the program editobs can be used to fix many of them. Otherwise, Barry Clark will have to assist.

      1. editobs should now be able to run from the analysts' account. It can fix the frequencies for the VLA, enter the pad number for a single dish VLA observation, or be used to fill mondata gaps by 'shadowing'.
      2. For fixes to the VLA mondatabase, ANTENNA should be 'Y' and the UTTIMERANGE should include the entire timerange of the project. DATABASE OORT:VLBA_MON, BARREL_ROLL *, LOFREQ 0.
        • To correct VLA frequencies, the entire observation must use only one frequency set. Otherwise see Barry Clark. Find a VLBA station that observes during the time the VLA does and set COPYFREQ to that station, TELESCOPE *.
          • For example:
          • copyfreq LA
          • telescope *
          • go
          • q
        • To enter the pad for a VLA single dish observation, first determine from the observation logs which antenna was used. The default entry in the database is the phased array, Y27. The standard antenna is 27, at pad N8. Set TELESCOPE to pad ID. COPYFREQ *.
          • For example:
          • copyfreq *
          • telescope YN8
          • go
          • q
        • To patch mondata gaps, ANTENNA should be the station with the problem, UTTIMERANGE should start at the beginning of the first corrupted/missing scan and end at the end of the last corrupted/missing scan. SHADOW should be a nearby station with mondata. Shadowing should be used cautiously in this current era of tape autoallocation.
          • For example, to fix LA with PT:
          • ante LA
          • shadow PT
          • go
          • q


        Adding sources to the database (OMS and fillsources)

        Description: When you need to add VLBA source coordinates to the auxiliary database use OMS or fillsources.


        There are two tools to add source coordinates to the database: OMS and fillsources. For a limited number of sources (1-3), OMS is useful. OMS can also be used to view sources already in the database. For more than a handful of sources, fillsources is better. A fillsources input example file is in /home/vlbiobs/astronomy/seds.

          fillsources
        1. Construct an input file on vlbiobs in the project's directory (i.e. /home/vlbiobs/astronomy/<mmmyy>/<project code>) that follows the format of the example file (/home/vlbiobs/astronomy/seds/fillsources.in).
          • If the PI does not request special coordinates, the source rows for the input file can be copied from the end of the project's .sum file in /vlbiobs/astronomy/mmmyy (for projects after nov97 only).
          • If the PI requests special coordinates in the prod response, those coordinates MUST be in the EXACT format as in the example! Save the prod response to a temporary file and cut/paste the coordinate rows into the input file.
        2. Run fillsources < input file. The program will return messages as it runs. Compare the number of sources it reports at completion to the number of source rows in the input file.


        Updating clocks database (mon2clock)

        Description: Clock value offsets (differences between the station maser and the local gps receiver) are recorded daily at many VLBA and foreign stations. These offsets are tabulated and used to calculate clock offsets and rates listed in the job scripts and used by the VLBA correlator.

      1. SSH to an analysts window on shire.
      2. cd to /home/shire/vlbaclocks (aliased to "clocks")
      3. cd /yyyy/vlbaclocks (aliased to "vlb").
      4. Run mon2clock. (-h flag provides help.)
      5. Plots of delay vs. time will appear on display. Click on plot to find the corresponding date. Click on INSERT to add solution to database and continue to the next station, or SKIP to just continue to the next station.
      6. mon2clock will try to break delay fits when the standard deviation (SDEV) exceeds 1.5e-07. A minimum of 2 points are needed to detect a break.
      7. A <run date>_Clocks.SQL, .MAIL, .SUMMARY and .LOG file will be produced along with Postscript files of each plot.
        • .SUMMARY contains offset and rate information.
        • .LOG file contains text of entire run of mon2clock.
        • .MAIL file contains epoch and version information for each station.
        • .SQL file includes SQL commands. These commands are not necessary if INSERT was used for all stations. This needs to be mailed to labeyta, arascon, jromney, mclausse, mstanley, and jops@jive (aliased to "clocks"). "send" will email summary file.
        • ex:  "send clocks" will email summary to all recipients listed in "clocks" 
      8. Print .MAIL, .SUM and .ps files and put them in the VLBACLOCKS book. ("prtclks" will print all of these files)
      9. Mark calendar two days after the date you ran mon2clock. The clocks are good to this date.
        Updating Foreign Clocks
      1. In /home/shire/vlbaclocks/yyyy/evnclocks (aliased to "evn"), run "getevn".
      2. getevn will collect gps files from EVN server and place them into a mmmdd sub-directory. cd into it.
      3. If there is a file for Effelsberg, EB (gps.eb), it can be deleted as this is the VLBA terminal and will be processed with monitor data. gps.ef is the Mk4 terminal and can be processed with other foreign station gps files.
      4. Run mon2clock -i gps.fs <foreign station> . "gpsclks" will loop all files found through mon2clock -i.
      5. "prtclks" will print MAIL, SUMMARY, and plot files for filing in FOREIGN CLOCKS notebook.

      Pre-Production


        Determining foreign clocks (clock searches)

        Description: Foreign station clocks (non-VLBA sites) need to be check or found before they are correlated. Foreign station clocks tend to be less stable than VLBA clocks which warrant clock searches.

      1. Information on stations, observation schedule, and observation mode can be found in the project's .brg, .drg, and .sum files. From these files find scans on a bright, compact source or two. (A list of good calibrators is in the works. Refer to the VLBA help tables [/users/analysts/help/vlba.tables] or choose a VLA A-array P-class calibrator stronger than 3 Jy at the correct band from the VLA calibrator list.)
      2. Write up one or two short jobs that include scans on the chosen calibrator. Use only the foreign stations and the 2-3 nearest VLBA stations, all channels, spect. ave. = 1, fftsize = 512, 1024, or 2048, and time ave. = 2. Use job series xx01-xx19, these job numbers are dedicated to tests and clock searches. (See "Writing VLBA Correlator Jobs" for info on making jobs.)
      3. Make a dummy job script with all stations in the project, a timerange that includes a scan with all stations, and default values for the other inputs.
      4. Copy the clocks.sed file in /home/vlbiobs/astronomy/seds into the project directory. Use the rows from the clock table in the dummy job to replace the row in the clocks.sed file. Set the delay and rate in clocks.sed for the foreign stations to zero, if they aren't already (except the delay for the phased array VLA should be -2.4e-04, and the delay for CA should be -9.5e-04). Set the time to 0h00m00s, and the date to the first date of the observation. Apply the sed file to the jobs (see "Using sed scripts" for instructions).
      5. If possible, sign up for an hour or two of correlator time during the day and have your jobs run. If you can't find time during the day, have the jobs run during the night's queue. Watch for low weights or other playback problems in the foreign station tapes. (Several foreign stations have a history of record problems.) Take these problems into account during the next steps. Have the FITS file(s) from the job(s) distributed to the terminus3 or abacus3 FITS area (/terminus3/AIPS/DA01/FITS or /abacus3/AIPS/DA01/FITS).
      6. cd into the sniffer/ directory under the main project directory. Make a clocks/ subdirectory. cd into the subdirectory and make additional subdirectories for each clock search job to be looked at.
      7. Run fringex <FITS file with full path> <reference antenna>. If the data is on a tape then run fringtp<AIPS number of tape drive> <reference antenna> ALL <file number> <file number> (example: fringtp2 PT ALL 1 1).
        The refant should be one of the VLBA stations included in the clock search job. fringex or fringtp will produce an apdfile.ps, an acbandfile.ps, a xcbandfile.ps, an acbandfile.lis, a xcbandfile.lis, a datafile.lis, and a logfile.lis. WARNING: These sniffer scripts will write over previous plot files in the current subdirectory, so be careful when re-running fringex and fringtp.
      8. Run gv apdfile.ps to view the output. Each group of plots is for one baseline (pair of antennas). The plots (from top to bottom in each group) are fringe rate, fringe delay, fringe phase, and fringe amplitude. The delay and rate plots should have low noise, that is the full range of values on the left of the rate and delay plots should be no more than 5-10 mHz and 40-50 ns, respectively. In other words, the data points plotted should not be scattered over a large range of values; they should approximate straight lines, rather than a scatter of points.
      9. If the entire timerange has a rate range of 100's of mHz and a delay range of 1000's of ns, then something happened in correlation and the data is potentially useless. First rerun fringex with a different refant, preferably closer to the unknown station, even if that means using a foreign station as a refant.. If that doesn't work, check over the job in question carefully:
        1. Were there any comments in the telescope operator's log (refered to as Mark IV logs for foreign stations) about problems for that timerange? (These are usually in the project directory. They're difficult to read but can be useful.)
        2. Were there any comments in the operator's log about poor playback or no synch-up? If so, you should try another timerange or find offsets first. (See "Finding head errors (offsets)" for info.) (The log can be found on /home/reber/vlbacorr/logs.)
        3. Are the values in the clock table for the foreign stations what they're supposed to be? (-2.4e-04 for phased VLA, -9.5e-04 for CA, zero for all others)
        4. Are the station positions correct? (This can be checked against the Eubanks station list somewhere in the office.)
        5. Does the frequency structure make sense? (No zero frequencies for all IFs, zero bandwidths, frequencies that lie outside the observable bands, etc.)
      10. If only part of the timerange shows fringes, run plotapd using that time range. The input file (the first question in the program) is datafile.lis. Name the output file something other than apdfile.ps or plotapd will overwrite the original (example: apdfile2.ps/vps).
      11. Once the plots are satisfactory, estimate the average value of the delay and rate for each foreign station. The delay should be ADDED to the value already in clocks.sed. The rate should be divided by the observing frequency for that scan, then ADDED to the value already in the clock.sed for that station. There is an added complication if you found fringes with a non-VLBA station with unknown clock as refant. You must not only add the delay/rate of the unknown station, but also the delay/rate of the foreign refant, too, to the value in clocks.sed. Also, the value of X referenced to Y is the negative of Y referenced to X. (Useful if you find a station by using it as the reference antenna.)

      12. For example: If you found MC referenced to EB (say delay = -1.2e-06 s, rate = -1.0e-14), and EB referenced to HN (say delay = +5.4e-06 s, rate = -3.2e-13), then MC referenced to HN would be delay = +4.2e-06 s and rate = -3.3e-13. Additionally, if you had made an initial guess (perhaps from GPS data) for the MC delay of -11 microseconds (= -1.1e-05 s), then the delay value in the MC row in clocks.sed should be changed to -6.8e-06 (-1.1e-05 + 4.2e-06).
      13. Last, if fringex is failing you, start AIPS and load the FITS file with task FITLD with parameter WTTHRESH = 0. If you used more than one IF channel, split one from the data using task UVCOP. Use task DTSUM with parameter APARM = 0 to get the timerange of the calibrator, the antenna numbers, and the integration time. Then use task FRING or with these settings: REFANT = a VLBA antenna, SOLINT = ~2, APARM(6) = 1, APARM(7) = 7, DPARM(1) = 1, DPARM(4) = the integration time. You can see if FRING is finding anything by watching the delay and rate from the output; if the SNR (signal to noise ratio) is high (>7), the solutions are usable. If there is still no solution try splitting another IF and trying it. Once FRING is done, use SNPLT and set OPTYPE = 'DELA' and 'RATE' to look at the solutions. Read the delay and rate values off as before and modify clocks.sed.
      14. If you are still having problems, talk to Vivek Dhawan, or whoever is in-house contact for the project.


        Finding head errors (offsets)

        Description: Occasionally, a station tape has the tracks written so far off from where they are supposed to be that the correlator playback drive can't find the right track. This is an old procedure for finding where the heads (tracks) should be.

      1. Head errors are routinely added to the database for the following stations: EB, GB, JB, MC, MH, NT, ON, and WB. You only need to find head errors if the project was observed before June 1993, or includes stations other than these.
      2. Look over the schedule files (.drg, .sum, etc.) for a long timerange that includes all the stations that need offsets found.
      3. Make a job several hours long that includes this timerange. Don't worry about the parameters or clocks, the job just needs to have many recorder rows for each station. Be sure that the VSNs are correct.
      4. Rename this job job<project code>.off and put a copy in the /home/reber/vlbacorr/offsets directory.
      5. Send mail to vlbacorr asking for offsets to be run for the stations in that job.



        Writing VLBA Correlator Job Scripts (SUB2DB, CORRELATE, and CJOBGEN)

        Description: When a VLBA project has observed, the analysts are in charge of creating the correlator job script files. These 'jobs' are the instructions needed by the correlator to playback the station tapes and correlate the data. There are a number of programs and scripts the analysts use to create these files.

      1. Notes, special parameters or coordinates, and file names should be recorded on a job check-list. Fill out the check-list as completely as possible, as it will allow you or another Analyst to follow what you have done days or weeks later. (An up-to-date version of the checklist is /users/analysts/help/jobcheck.)
      2. The parameters for correlation can be found in the .sum file in the project directory on vlbiobs. Look for parameter changes or special requests in the project directory or in the project folder. Special requests for source coordinates should be added to the database FIRST! Use fndsrc.pl to find any other sources that need to be added to the Auxiliary source database. Use srctool or fillsources.
      3. Open a reber window and login as vlbacorr. Type nlj to get a numerical listing of job series and alj for the job series listed alphabetically by project. Any job series between 2000 and 9900 not listed by nlj/alj is free to use. Assign it to your project by cd'ing into that directory and using touch <project code>.<YYMMDD>, as in touch BA001.960101. This will create an empty file with that name. Another nlj will show that your project is now using that job series.
      4. Open a analysts owned window and cd /home/vlbiobs/astronomy/<mmmyy>/<project>/jobs/orig/. All job creation work should be done inside the jobs/ directory with the orig/ subdirectory as the area where the jobs are initially generated by CJOBGEN.
      5. Create a touch file in the jobs/ directory on vlbiobs. (Example: touch <project code>.<YYMMDD>)
      6. Words of warning:
        • The VLBA Correlator cannot handle 1:4 fan out, 2-bit, polarized data as of July 1, 1996.
        • An output rate of more than 500 kB/s has not been tested. This limit is not firm, but should not be greatly exceeded.
        • Jobs should have an output file size of ~1 GB or less.
      7. In the project's directory on vlbiobs, run sub2db. This program looks through all the project's mondata and assigns stations to subarrays, if any exist. Even if you know there are no subarrays in the project, sub2db must still be run to assign all the stations to the same subarray and construct frequency setups. It produces an enormous output text, saved as <project code>Sub.txt.
        • The following parameters are important:
        • PROPOSAL must be set. Remember to leave out the segment character.
        • UTTIMERANGE must be set. Start the time range about 12 or 24 hours before the project begins and end the time range about 12 or 24 hours after the project ends.
        The rest should be left alone, unless Barry Clark tells you otherwise.
      8. Run correlate. This program stores the correlation parameters for clock searches, tests, and production.
        • The following parameters are important:
        • PROPOSAL must be set. Remember to leave off the segment character.
        • UTTIMERANGE should be the same as was used in sub2db.
        • STARTJOBID is XX01 if you are making clock searches or tests, XX20 if you are making production jobs. Here XX is the first two digits of the job number series for the project.
        • NUMBERJOBID is 19 if you are making clock searches or tests, up to 80 if you are making production jobs.
        • FFTSIZE can be 512, 1024, or 2048 if POLAR is NO and must be 256 if POLAR is YES.
        • INTEGRATIONTIME and SPECTAVG should be 2 and 1, respectively, for clock searches, or they should match the values given on the parameter sheet for the project for production jobs.
        • POLAR should be NO for clock searches, YES only if it is requested on the parameter sheet.
        • WINDOW is the only other parameter you should change. It is either UNIFORM (default) or HANNING.
        LEAVE THE REST ALONE (Unless you know what you're doing.)! Once all the parameters are set (use inp to look at the parameter list), type go put (typing just go will result in an error message). Record what row these parameters have been assigned to. You'll need the row number for the next step. (If you need to edit the row or need to reset the jobid pointer back to the beginning, use go get until it restores the correct row, edit what you need, then use go replace to put those parameters back into the same row.) The go put, go get, go replace commands are needed to help manage multiple correlation rows if the need arises.
      9. Run cjobgen. This program accesses the monitor database and constructs correlator jobs.
        • The following parameters are important:
        • PROPOSAL must be set. Again, drop the segment character off of the project code.
        • UTTIMERANGE should be set to approximately the time range of the project.
        • CORRELATION should be set to the row number from the previous step.
        • PASS should be *, unless you have added sources with more than one cqual and you want jobs for only one cqual.
        • ANTENNAS should be *, unless you want to select certain stations for a clock search or test.
        • CHANNELS should be *, unless you want to select certain channels for a clock search or test.
        • DATABASE should be left as VLBA_MON, unless you are making some sort of test.
        • JOBID should be * for production, or you can specify a particular jobid and only that job will be made.
        • SINGLETAPE should be left YES.
        • JOBLENGTH should be 1.5 (hours).
        • OUTPUTSIZE should be 660(MB).
        • GAPSIZE should be 7 (minutes).
        • PRIME should be 20, unless scans are shorter than a minute, then it should be changed to 0.
        • TABLES should be set to ALL so that calibration files are created along with the jobs. These files have the format: XXXX0001.CL, where XXXX is the job number.
        It is useful to save the comments cjobgen produces while it is running. A good place for them is an output file in the project directory.
      10. Copy the job scripts and calibration files up into the main jobs/ directory (i.e. cp j* ../)
      11. cd ../ next. All job modification is done is this directory.
      12. Create a touch file in the jobs directory with the format PROJE.YYYYMMDD.
      13. See "Using sed scripts" for info on making changes with sed scripts.
      14. Once you have made any necessary changes and checked those items at the bottom of the job construction checklist, you can copy these jobs and calibration files to reber. First, you must change to the vlbacorr account (type: su vlbacorr). Use cp <list of jobs> ../../../joblink/<job series>, as in cp job2000.fx ../../../joblink/2000. Then exit from the vlbacorr account (type: exit).
      15. If you have made production jobs with any foreign stations, a pilot needs to be run first. Pick a job that includes all the foreign stations and as many of the VLBA stations as possible and have that run first. Analyze the data from that job. (See "Sniffing data.") If you find residual delays smaller than 250 ns to the foreign stations the rest of the production can be put into the queue, otherwise you'll need to investigate why your clock searches didn't work.
      16. E-mail Steve Thompson at vlbacorr and inform him the jobs are ready to be run. The Email must include the entire project name including the segment character, the job numbers, the correlator area (usually code unless you're running a special correlator test), and any special instructions. His deadline for jobs for that night's queue is 4:00pm.
      17. Copy the job checklist and place the copy in the checklist binder. Update the analysts' queue file at /users/analysts/vlba/


        Instructions for Setting Up the Correlator Pulsar Gate

        Description: For VLBA pulsar experiments, the pulsar signal can be improved by cutting out all the data except when the pulsar is 'pulsing'. This can be done in the correlator by using the pulsar gate and an accurate model of the period of the pulsar's beam.

      1. - Use EDITOBS to set the source calcode to 'G' for the pulsars. The observer may have set the calcode = 'G' when he ran the SCHED program, but don't count on it.
      2. - Load the user supplied polyco.dat file(s) in the database 'polyco' table. Use the program 'POLYCO2DB'. The polyco.dat file may need to be edited first. Generally the pulsar name in the polyco.dat file is the B1950 name, like 1133+16. But the pulsar name used during the observation and thus in the monitor database is the J2000 name, J1136+1551. You will probably need to replace the B1950 name with the J2000 name in the polyco.dat file.
      3. - Set the pulsar gate on phases and off phases in the database 'gate' table. Use the program 'GATE2DB'. Different on/off phases are allowed for each observing band. Eventually we expect perfect pulse phase predictions from the observers (the polyco.dat) file. When this is the case, the on phase and off phase should be set to 0.975 and 0.025 respectively. This opens the gate for 0.05 of the pulse period centered on pulse phase of 0.0. The frequency parameter in GATE2DB can be set to zero for now.
      4. - Run the 'CORRELATE' program and set PULSAR_GATE = YES.
      5. - Run SUB2DB. The pulsars are recognized by the 'G' calcode and listed on the screen.
      6. - Run 'CJOBGEN' normally. A 'Gate Table' is inserted in the job script. There will be rows in the Gate Table for those sources (pulsars) whose calcode = 'G'. CJOBGEN produces a new row every 15 minutes.

      7.  
         
        Using Sed Scripts

        Description: There are various shell command scripts (SED, AWK, PERL) that can be used to modify job scripts. Modifications usually need to be done on the clocks table, offsets table, or station VSN and shelf locations.

      1. Examples of the various sed scripts are in /home/vlbiobs/astronomy/seds. Copy the appropriate file to the project jobs/ directory, or use the file as a template. The clocks.sed, vsn.sed, and offsets.sed files must be modified for use:
        • Incorrect VSNs in the jobs can be corrected with vsn.sed. VSN information can be found using track -w (menu item b. followed by menu item e.). The vsn.sed file has the format:

        • /2-letter station code/s/wrong VSN/correct VSN/g. Shelf locations can be similarly changed using shelfloc.sed or vsnshelf.sed.
        • Incorrect or missing clock delays and rates can be corrected/added with clocks.sed. Clock delay and rates can be found (See "Determining foreign clocks") or will be in a sed script that someone else has constructed (normally named clocks.sed). REMEMBER to follow the format in the example .sed EXACTLY!! The known clocks for the VLBA antennas need to be copied from a job. (Make a dummy job that includes all antennas and cut the clocks table out). The clocks.sed REPLACES the clock table in the jobs with the rows in the sed script. ALL stations in the project must be included in the clocks.sed or they will be left out!
        • Head errors (offsets) can be corrected/added with offsets.sed. Have each station's offsets found (See "Finding head errors (offsets)"). The results are reported in /home/reber/vlbacorr/offsets/<project code>. Construct a file called <project code>.off in the /<project code>.</jobs/ directory with the format like the /home/vlbiobs/astronomy/seds/offsets.sed file. There are comment lines in the file to help explain its use.
      2. Run consed <list of .sed's> to construct a run file that will apply the sed scripts to the jobs. A file ending in .in will be created. Run this file by typing its name; it will apply the sed scripts.
        WARNING: consed will ask for the beginning and ending jobs for a series of jobs. If non-existant jobs are included in this job number range, the sed script made by consed will create dummy jobs for the missing job numbers.

      Post-Correlation


        Sniffing data (FITSsniffer)

        Description: The data analysts and the scientific scrutinizers check the tapes with the final correlated data for problems after correlation. This helps in determining the health of the array, spotting correlation mistakes, and gathering helpful information for the observer. If everything looks OK, the VLBA station tapes can be degaussed and sent back to the sites.

      1. Fill out the top of a "DATA CHECKOUT" checklist from the information provided on the project tape distribution log and on the job checklist.
      2. cd /home/vlbiobs/astronomy/<mmmyy>/<project code>.
      3. Make a copy of the proposal cover-sheet for the project and place it in the project folder. The cover-sheets are usually found in the folder cabinet in the analysts' office.
      4. A sniffer_srcs.lis file needs to be made of the format listed in Item #3 on the checklist. The sources for a sniffer_srcs.lis can be found in the project's .sum file and compared to our calibrator list. You need to include at least one good calibrator in the sources to be sniffed. The sniffer programs handle data in two ways, LINE and CONT(inuum). The only difference is in the apdfile.ps (See below.)
      5. If this is production and there are multiple tapes, a seperate directory must be made for each tape, since fitex will overwrite the files from the previous tape if it is run in the same directory.
      6. To run fitex, cd into the appropriate subdirectory below the project directory, be sure the tape is loaded and type fitexn <refant> <ALL or LIST> <first file on tape to be processed> <last file on tape to process>, where n should match the AIPS tape number of the drive you're using, ALL should be used to process all sources, and LIST should be used to have the program read the sniffer_srcs.lis file in that directory. For example, to read files 3-7 on a tape in AIPS Tape Drive 2, with reference antenna HN, and using a sniffer_srcs.lis, you should type fitex2 HN LIST 3 7.
      7. If this is a trial, mkd trial, then cd trial. If the trial data is on disk, run fitdsk <full path to FITS file> <refant>. If the trial data is on tape, load the tape and run fitexn <refant> <ALL> 1 1, where n should match the AIPS tape number of the drive you're using. For example, fitex1 HN ALL 1 1, if you loaded the tape into your machine's first drive and the data is the first file on the tape.
      8. Once all tapes have been sniffed, start gv and look over the wtsfile.ps, acbandfile.ps, xcbandfile.ps, and apdfile.ps plots for problems. Note any problems or questions on the checklist. Specifically check:
        • wtsfile.ps:
          • Gaps that can't be explained by the schedule or by entries in the Operator's log.
          • Very poor weights may be improved by re-running that job with the affected tape on a different PBD. Check the correlator operator's log to see if they tried. (The electronic and operator logs can be found in /home/reber/vlbacorr/logs.)
        • acbandfile.ps:
          • Very large spikes that dwarf the amplitude of the rest of the band in one or more IF indicate RFI, if it isn't a line source.
          • Multiple, small, uniformly-spaced spikes are from the internal phase calibration tone generators (pcals).
          • Dead or low amplitude bandpasses can be from dead tracks on the tape or dead receivers at the site.
          • Odd bandpasses may be a sign of internal correlator trouble or may be a sign that the observation was near the edge of the observable band. (A normal bandpass is nearly flat in the middle with steep sides.)
        • xcbandfile.ps:
          • Each baseline should show fringes for at least one scan.
          • Very large phase slopes indicate large residual clock delays. Cross-check this with the apdfile.ps plots.
          • Odd bandpasses may be a sign of internal correlator trouble. (A normal bandpass is nearly flat in the middle with steep sides.)
        • apdfile.ps:
          • NOTE: The delay data has a different meaning depending on whether the source was processed as LINE and as CONT. In CONT mode, the delay data is really delay data, while in LINE mode, the delay data is actually the channel where the program has detected the spectral line.
          • Each baseline should show fringes for at least one scan, hopefully the same scan that showed fringes in the xcbandfile.ps plots.
      9. The sniffer scripts envoke another script called lister. This program will read the datafile.lis file and produce a file called summary. Look in this file to check if polarization is ON and to make sure the requested coordinates were used.
      10. Hand the folder with the checklist and the tape(s) to the contact person listed on the VLBA schedule. Ask them if they can release the project within a week. If they say they can't, take the folder to Joan Wrobel who will find a scrutinizer who can.
      11. Update the analysts' queue file at /users/analysts/vlba/. Update schedules by noting the one week release date.


        Projects That Can Be Release by Data Analysts (DAR)

        Description: If a project has no correctable problems and meets certain criteria, then the data analyst can scrutinize and release a project without passing the project on to a staff scientist.

      1. The conditions under which a project can be released by a data analyst are:
        • The project is a continuum observation.
        • The project has many bright, point-like sources if it is a 7mm project.
        • The project has no serious or correctable problems with the data.
      2. Projects that should be given to a staff scientist to scrutinize are all spectral line projects, RDV projects, CMVA projects, Gated Pulsar projects, SGA astrometry projects, and others.
      3. Review the System Temperature, Weather and Pcal for anomolies and record or report such anomolies in addition to problem found while sniffing.


        Dear PI Letters and Shipping Data Tapes (Project Release)

        Description: The following are procedures on how to create a final Email summarizing the correlation and how to send out the correlated data tapes.

      1. Once the scrutineer has given their OK, a "Dear PI" letter can be made with piletter, which can be run from any window owned by analysts. The program is interactive and self-explanatory.
      2. The "Data Tape Distributed To:" and "Date:" at the bottom of the Tape Release Form should be filled in. Then the folder can be given to Dave Medcalf or Robyn Harrison.
      3. If the letter is printed in piletter, two copies will be produced. One should be put in the project file, the other included with the tape and TSM plots to be shipped to the PI.
      4. Shipping is handled the same as VLA data tapes. Be sure to note that the tape(s) contain VLBA data.
      5. Once the tapes are released, make sure all correlated jobs are on vlbiobs. Then delete the jobs off of reber. Finally, gzip all files in the project directory on vlbiobs as vlbiobs.
      6. VLBA CJOBGEN CHECKLISTS of projects that have been released should be filed alphabetically in the VLBA project folders in the top drawer of the filing cabinet.


        Cleaning up reber once projects have been released

        Description: There are only one hundred unique job series numbers, so they need to be constantly recycled.

      1. Approximately every month, old job series corresponding to released projects need to be cleaned off of reber. Released projects will have an entry in /users/analysts/vlba/queue.his.
          • After logging into reber as vlbacorr, cd to the jobs directory, and do an alj to see occupied job series.
          • If a job series is occupied by a released project, cd into it, and delete all the files in that directory including the touch file.


        VLBA data redistribution

        Description: Procedure for sending out VLBA data from past observations.

      1. If someone requests old VLBA data, clear it with Joan Wrobel first then forward the request to Steve Thompson (Date of observation, date of correlation, and job numbers are very helpful to him), and wait for a correlator operator to bring you the new distribution.
      2. Check the job numbers, the project code, and the date to make sure they are the right jobs on the tape.
      3. Load the tape or tapes onto a tape drive. Run a script called cktp<AIPS tape drive number> (i.e. cktp2 for a tape in AIPS tape drive 2). This script runs the dd command and is useful for checking for tape defects. Let Bruce Rowen know of any problems with reading the tape, and get another distribution if there are real problems with the tape.
      4. Fill out an AOC Shipping Form and send off the tape.

      General Analysts Tasks


        Workstation Backups

        Description: It's a good idea to backup your workstation for safety's sake.

      1. The disks of each analyst workstation should be backed-up periodically.
      2. To backup small hard disks (< 3Gb), load a blank tape into an exabyte drive and cd to the main directory of that disk. Use: tar cvf /dev/rmt/0lbn *. The backup will take a few hours and slow down the machine a little.
      3. Store the tapes in the tape cabinet located in office 201.
      4. For large disks that will require several tape volumes, more exotic versions of tar or gtar need to be used.

        White Board Management

        Description: We keep a couple status boards in the large office to help us visualize what projects need to have jobs made or sniffed and what other tasks need to be done or are already completed. It also helps us keep tabs on who is doing what.

      1. The large main white board reflects what is being addressed or needs to be addressed such as sniffing, job making, SCHED files, and other tasks.
      2. This board is cleaned-up and organized once a week (usually Monday morning).
      3. The board should be updated frequently.

        NRAO Birthday Cake Day

        Description: Eat cake.

      1. On the second Wednesday of every month at 2:00 pm, all analysts must process to the upstairs common room and eat birthday cake and ice cream.
      2. If an analyst missed breakfast or is particularly hungry, he/she can have seconds.


      Back to the Top

      Go to Analyst Observing Notes

      Go to VLA Special Topics and Observing Modes

       Go to NRAO Homepage


      Document originally compiled by Kevin Healy, 1995, 1996.
      Last modified by Jason Wurnig on June 25, 2000.