; GRIDR
;---------------------------------------------------------------
;! makes an image from single-dish data
;# Task AP SingleDish Imaging
;-----------------------------------------------------------------------
;;  Copyright (C) 1995, 1999
;;  Associated Universities, Inc. Washington DC, USA.
;;
;;  This program is free software; you can redistribute it and/or
;;  modify it under the terms of the GNU General Public License as
;;  published by the Free Software Foundation; either version 2 of
;;  the License, or (at your option) any later version.
;;
;;  This program is distributed in the hope that it will be useful,
;;  but WITHOUT ANY WARRANTY; without even the implied warranty of
;;  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;  GNU General Public License for more details.
;;
;;  You should have received a copy of the GNU General Public
;;  License along with this program; if not, write to the Free
;;  Software Foundation, Inc., 675 Massachusetts Ave, Cambridge,
;;  MA 02139, USA.
;;
;;  Correspondence concerning AIPS should be addressed as follows:
;;         Internet email: aipsmail@nrao.edu.
;;         Postal address: AIPS Project Office
;;                         National Radio Astronomy Observatory
;;                         520 Edgemont Road
;;                         Charlottesville, VA 22903-2475 USA
;-----------------------------------------------------------------------
GRIDR     LLLLLLLLLLLLUUUUUUUUUUUU CCCCCCCCCCCCCCCCCCCCCCCCCCCCC
GRIDR:  Task which makes an image from single dish data
INNAME                             Input SD data (name)
INCLASS                            Input SD data (class)
INSEQ                              Input SD data (seq. #)
INDISK           0.0        9.0    Input SD data disk drive #
CHANNEL          0.0     3000.0    Freq. channel (0 for cont.)
BIF              0.0     3000.0    If number (if any) to image
STOKES                             Stokes' parameter to image.
OUTNAME                            Output image name (name)
OUTDISK          0.0        9.0    Output image disk drive #
OUTSEQ           0.0    32000.0    Output seq. no.
IMSIZE         32.       4096.     Image size (X,Y) is pixels
CELLSIZE      1.E-12               (X,Y) size of grid in asec
SHIFT                              (X,Y) image shift in asec
UVWTFN                             UV dist. weight function
                                     blank => uniform
UVBOX           0.        128.     Additional rows and columns
                                   used in weighting. Use 0.
ZEROSP                             (1)=Min. convl. weight.
XTYPE           0.         10.     Conv. function type in x
                                     default spheroidal
YTYPE           0.         10.     Conv. function type in y
                                     default spheroidal
XPARM                              Conv. function parms for x
YPARM                              Conv. function parms for y
BADDISK                            Disk drive #'s to avoid
----------------------------------------------------------------
GRIDR
Type:  Task
Use:   This task has been replaced for most applications by SDGRD.

       Grid single dish data into an image. Input data must be
       sorted into YX (NOT XY) order and have been converted
       into projected coordinated by SELSD.
Adverbs:
  INNAME.....Input SD data file (name).  blank=>any
  INCLASS....Input SD data file (class).  blank=>any
  INSEQ......Input SD data file (seq. #).  0=>any
  INDISK.....Input SD data file disk drive #.  0=> any
  CHANNEL....Frequency channel to map (1 relative)
             Use 0 for continuum data.
  BIF........IF number to image. 0 => 1.
  STOKES.....Stokes' type of the desired image:
             'I' => I polarization,
             'Q' => Q polarization,
             'U' => U polarization,
             'V' => V polarization,
             'RCP' => right circluar polarization,
             'LCP' => left circluar polarization,
             '    ' => 'I'
  OUTNAME....Output image name (name).  blank=>INNAME
  OUTDISK....The disk drive # of output images.  0 => highest
             with space. Note:  OUTCLASS='IMAP'
  OUTSEQ.....Output sequence number. 0=> next available
  IMSIZE.....(X,Y) image size in pixels.
             Must be a power of 2 on each side from 32X32
             to 4096X2048
  CELLSIZE...(X,Y) pixel separation in asec.
  SHIFT......Probably wouldn't do what you expect: shifts the reference
             pixel by SHIFT(1)/CELL(1), -SHIFT(2)/CELL(2).  The
             reference value is set by APARM (see above).  For a normal
             Ra-Dec image, if both SHIFTs are > 0, the center of the
             image will be at a higher Ra and higher Dec than the
             reference point.
  UVWTFN.....Weighting function of (u-v) place.
             blank=>Uniform; 'NA'=>Natural
  UVBOX......(U,V) box size for smoothing.   See HELP UVBOX.
  ZEROSP.....The first value is used to set the minimum sum of
             convolving function weights. 0=>0.01
  XTYPE......Convolution function type in X-direction
             1=Pillbox, 2=exponential, 3=Sinc, 4=Exp*Sinc,
             5=Spheroidal, 6=exp*BESSJ1(x)/x.
              <= 0 or > 5  -> 5.
  YTYPE.....Convolution function type in Y-direction
  XPARM.....Array containing parameters for XTYPE.
            See HELP UVnTYPE when n=convolution type.
  YPARM.....Array containing parameters for YTYPE.
  BADDISK...Disk drive #'s to avoid for scratch files
----------------------------------------------------------------
