XPOL_ANAL $SSW/radio/ovsa/idl/analysis/xpol_anal.pro
[Previous] [Next]
 NAME:
     XPOL_ANAL
 PURPOSE:
     Routine to compare antenna 1 and 2 amplitudes on 3C84 for parallel
     and crossed polarization (data taken with 62 DOSEQ).
 CATEGORY:
     OVRO APC DATA CALIBRATION
 CALLING SEQUENCE:
     xpol_anal,filename,hrec,erec[,/print]
 INPUTS:
     filename  The name of the .ARC file containing the data
     hrec      The header record of the scan containing the data
     erec      The end record of the scan containing the data
 OPTIONAL (KEYWORD) INPUT PARAMETERS:
     print		Switch that causes the plots to be sent to the printer
 ROUTINES CALLED:
     analyze, amphit, plot_xpol_amf
 OUTPUTS:
 COMMENTS:
 CALLS: ***
	AMPHIT, ANALYZE [1], ANALYZE [2], ANALYZE [3], PLOT_XPOL_AMF
 SIDE EFFECTS:
     A plot is created on the current output device or, optionally,
     the printer.
 RESTRICTIONS:
 MODIFICATION HISTORY:
     Written 10-Jan-2004 by Dale E. Gary


XPRINT [3] $SSW/radio/ethz/idl/time/timeaxis.pro
[Previous] [Next]
 NAME:
       XPRINT
 PURPOSE:
       Print text on graphics device.  After initializing use just like print.
 CATEGORY:
 CALLING SEQUENCE:
       xprint, item1, [item2, ..., item10]
 INPUTS:
       txt = text string to print.     in
 KEYWORD PARAMETERS:
       Keywords:
         COLOR=c set text color.
         ALIGNMENT=a set text alignment.
         /INIT to initialize xprint.
           xprint,/INIT,x,y
             x,y = coord. of upper-left corner of first line of text.    in
         /DATA use data coordinates (def). Only needed on /INIT.
         /DEVICE use device coordinates. Only needed on /INIT.
         /NORM use normalized coordinates. Only needed on /INIT.
         /NWIN use normalized window coordinates. Only needed
           on /INIT.  NWIN coordinates are linear 0 to 1
           inside plot window (inside axes box).
         CHARSIZE=sz  Text size to use. On /INIT only.
         CHARTHICK=thk  Text thickness to use. On /INIT only.
           Text is thickened by shifting and overplotting.
           Thk is total number of overplots wanted. To shift by
           > 1 pixel per plot do CHARTHICK=[thk,step]
           where step is in pixels (def=1).
         DY=factor.  Adjust auto line space by this factor. On /INIT only
           Try DY=1.5 for PS plots with the printer fonts (not PSINIT,/VECT).
         YSPACE=out return line spacing in Y.
         x0=x0 return graphics x-position of text in normalized coordinates.
         y0=y0 return graphics y-position of text in normalized coordinates.
 OUTPUTS:
 CALLS: ***
	GETWRD [1], GETWRD [2], JD2MDAYS, MAKEX [1], MAKEX [2], MAKEX [3], NWIN, TIMEAXIS [1]
	TIMEAXIS [2], TIMEAXIS [3], TIME_LABEL [1], TIME_LABEL [2], TIME_LABEL [3]
	TNAXES [1], TNAXES [2], TNAXES [3], VER
 CALLED BY:
	FIND_DURATION, LIST_DURATION, MK_CDS_PLAN, MK_STUDY, PLAN_XCAT_SUMM, SCANPATH
	TIMEAXIS [1], TIMEAXIS [2], TIMEAXIS [3], X2PS, XCAMP, XCAT, XCPT, XREPORT, XREPORT_EDIT
	XTEXT
 COMMON BLOCKS:
       xprint_com
 NOTES:
       Notes: Initialization sets text starting location and text size.
         All following xprint calls work just like print normally does except
         text is output on the graphics device.
 MODIFICATION HISTORY:
       R. Sterner, 9 Oct, 1989.
       H. Cohl, 19 Jun, 1991.  (x0, y0)
       R. Sterner, 25 Sep, 1991 --- fixed a bug that made line spacing
       wrong when the window Y size varied from the normal value. The
       bug showed up for psinit,/full with !p.multi=[0,1,2,0,0] where
       the line spacing appeared to be 2 times too much.  Was using
       xyouts to print a dummy letter to get its size.  Now just use
       the value !d.y_ch_size (dev coord) as a good guess.
       R. Sterner, 10 Mar, 1992 --- added CHARTHICK.
       R. Sterner, 18 Mar, 1992 --- Modified CHARTHICK to do shifted
       overplots and added shift size in pixels.
       R. Sterner, 27 Mar, 1992 --- fixed a bug added with the modified
       CHARTHICK.
       R. Sterner, 20 May, 1993 --- Allowed CHARSIZE.
       R. Sterner, 30 Jul, 1993 --- coordinate system used only to set
       initial point, not needed for each print.
       Handle log axes.

 Copyright (C) 1989, Johns Hopkins University/Applied Physics Laboratory
 This software may be used, copied, or redistributed as long as it is not
 sold and this copyright notice is reproduced on each copy made.  This
 routine is provided as is without any express or implied warranties
 whatsoever.  Other limitations apply as described in the file disclaimer.txt.


XPRINT [4] $SSW/radio/ovsa/idl/mapping/x_print.pro
[Previous] [Next]
 NAME:
       XPRINT
 PURPOSE:
       Print text on graphics device.  After initializing use just like print.
 CATEGORY:
 CALLING SEQUENCE:
       xprint, item1, [item2, ..., item10]
 INPUTS:
       txt = text string to print.     in
 KEYWORD PARAMETERS:
       Keywords:
         COLOR=c set text color.
         ALIGNMENT=a set text alignment.
         /DATA use data coordinates (def).
         /DEVICE use device coordinates.
         /NORM use normalized coordinates.
           Except for data coordinates always use the
           coordinate keyword (also on /INIT).
         /INIT to initialize xprint.
           xprint,/INIT,x,y
             x,y = coord. of upper-left corner of first line of text.    in
         SIZE=sz  Text size to use. On /INIT only.
         DY=factor.  Adjust auto line space by this factor. On /INIT only
           Try DY=1.5 for PS plots with the printer fonts (not PSINIT,/VECT).
         YSPACE=out return line spacing in Y.
         x0=x0 return graphics x-position of text
               in designated coordinate system (i.e. DEVICE, NORM, etc,).
         y0=y0 return graphics y-position of text
               in designated coordinate system (i.e. DEVICE, NORM, etc,).
 OUTPUTS:
 CALLS: ***
	X_PRINT
 CALLED BY:
	FIND_DURATION, LIST_DURATION, MK_CDS_PLAN, MK_STUDY, PLAN_XCAT_SUMM, SCANPATH
	TIMEAXIS [1], TIMEAXIS [2], TIMEAXIS [3], X2PS, XCAMP, XCAT, XCPT, XREPORT, XREPORT_EDIT
	XTEXT
 COMMON BLOCKS:
       xprint_com
 NOTES:
       Notes: Initialization sets text starting location and text size.
         All following xprint calls work just like print normally does except
         text is output on the graphics device.
 MODIFICATION HISTORY:
       R. Sterner, 9 Oct, 1989.
       H. Cohl, 19 Jun, 1991.  (x0, y0)

 Copyright (C) 1989, Johns Hopkins University/Applied Physics Laboratory
 This software may be used, copied, or redistributed as long as it is not
 sold and this copyright notice is reproduced on each copy made.  This
 routine is provided as is without any express or implied warranties
 whatsoever.  Other limitations apply as described in the file disclaimer.txt.


XPRINT [5] $SSW/radio/ovsa/idl/mapping/xprint.pro
[Previous] [Next]
 NAME:
       XPRINT
 PURPOSE:
       Print text on graphics device.  After initializing use just like print.
 CATEGORY:
 CALLING SEQUENCE:
       xprint, item1, [item2, ..., item10]
 INPUTS:
       txt = text string to print.     in
 KEYWORD PARAMETERS:
       Keywords:
         COLOR=c set text color.
         ALIGNMENT=a set text alignment.
         /DATA use data coordinates (def).
         /DEVICE use device coordinates.
         /NORM use normalized coordinates.
           Except for data coordinates always use the
           coordinate keyword (also on /INIT).
         /INIT to initialize xprint.
           xprint,/INIT,x,y
             x,y = coord. of upper-left corner of first line of text.    in
         SIZE=sz  Text size to use. On /INIT only.
         DY=factor.  Adjust auto line space by this factor. On /INIT only
           Try DY=1.5 for PS plots with the printer fonts (not PSINIT,/VECT).
         YSPACE=out return line spacing in Y.
         x0=x0 return graphics x-position of text
               in designated coordinate system (i.e. DEVICE, NORM, etc,).
         y0=y0 return graphics y-position of text
               in designated coordinate system (i.e. DEVICE, NORM, etc,).
 OUTPUTS:
 CALLS: ***
	DATATYPE [1], DATATYPE [2], DATATYPE [3], RM_FILE, SEND_PRINT, SET_X [1], SET_X [2]
	TRIM, XACK, XANSWER, XSEL_PRINTER, XTEXT
 CALLED BY:
	FIND_DURATION, LIST_DURATION, MK_CDS_PLAN, MK_STUDY, PLAN_XCAT_SUMM, SCANPATH
	TIMEAXIS [1], TIMEAXIS [2], TIMEAXIS [3], X2PS, XCAMP, XCAT, XCPT, XREPORT, XREPORT_EDIT
	XTEXT
 COMMON BLOCKS:
       xprint_com
 NOTES:
       Notes: Initialization sets text starting location and text size.
         All following xprint calls work just like print normally does except
         text is output on the graphics device.
 MODIFICATION HISTORY:
       R. Sterner, 9 Oct, 1989.
       H. Cohl, 19 Jun, 1991.  (x0, y0)

 Copyright (C) 1989, Johns Hopkins University/Applied Physics Laboratory
 This software may be used, copied, or redistributed as long as it is not
 sold and this copyright notice is reproduced on each copy made.  This
 routine is provided as is without any express or implied warranties
 whatsoever.  Other limitations apply as described in the file disclaimer.txt.


XSPLINE $SSW/radio/ovsa/idl/util/xspline.pro
[Previous] [Next]
 NAME:
     XSPLINE
 PURPOSE:
     Extension of the IDL SPLINE routine so that it gives reasonable
     results when some of the data are missing (i.e NaN values).  This
     routine is called exactly as the SPLINE routine is called, but
     the splines are done is segments over which good data exist, while
     missing data gaps are skipped.  In the case where there are fewer
     than three points in a segment, the original data are returned for
     that segment.
 CATEGORY:
     OVRO SPAN DATA-ANALYSIS
 CALLING SEQUENCE:
     y0 = xspline(x,y,x0[,sigma])
 INPUTS:
     x         the abcissa vector.  Values must be monotonically increasing
                   and no missing data are allowed in this vector.
     y         the vector of ordinate values corresponding to X.  Any
                   of the values in the vector may be equal to !values.f_nan
                   or !values.f_infinity.
     x0        the vector of abscissa values for which teh ordinate is
                   desired.  The values of X0 must be monotonically
                   increasing and cannot contain missing values.
 OPTIONAL (KEYWORD) INPUT PARAMETERS:
     sigma     the amount of tension that is applied to the curve.  This
                   is just passed through to the SPLINE routine wihtout
                   change, or if not specified is set to 1.0--same as
                   the SPLINE routine default.  See the documentation for
                   the SPLINE routine.
 ROUTINES CALLED:
     spline
 OUTPUTS:
     y0        the interpolation of ordinate values Y onto the sampling
                   given by X0.  Missing values in Y are also missing in
                   Y0, but ranges of good data are properly interpolated.
 COMMENTS:
     Note that for the OVRO data X0 is expected to be a regular grid of
     times corresponding to the irregular times in X, for which this routine
     works well.  The results are not so good when the values of X0 result
     in extrapolation of the Y data by too much into the gaps of missing data.
     Note that each segment of good data, if sampled outside its range,
     results in such an extrapolation.  What I am saying is that the arrays
     X and X0 should correspond closely for the best results.
 CALLS: ***
	SPLINE
 SIDE EFFECTS:
 RESTRICTIONS:
 MODIFICATION HISTORY:
     Written 04-Mar-1997 by Dale Gary