CAL_SHER $SSW/cgro/batse/idl/cal_sher.pro
[Previous] [Next]

  Name:
       CAL_SHER


 PURPOSE: interactively calibrate the energy scale of SPEC SHER data


 CATEGORY: spectral analysis
       BATSE

 CALLING SEQUENCE:  cal_sher, det_id=det_id, $
	shers=shers, start_time=start_time, end_time=end_time, $
	width64=width64, n511=n511, evec=evec, delta_light=delta_light, 
	ispec=ispec,/auto,/noplot

 INPUTS:
       det_id - id of SPEC detector from 0-7
	shers  - sher spectra, count per bin, 256xn

 OPTIONAL INPUTS:
	auto - if set, then find width64 and n511 without user interaction
	noplot - if set, no plotting, only valid with /auto
 OUTPUTS:
       none explicit, only through commons;

 OPTIONAL OUTPUTS:
	evec        - 2x256 channel edges, based on photo-peak centroids
	delta_light - channel width in pulse-height amplitude units
		      This is generally different from the difference in the channel
		      edges which are defined by the positions of the photo-peaks.
	n511        - linear pha channel number of 511 peak
	width64     - width of channel 64 in units of 1/16
 CALLS: ***
	ALPHA_PAGE [1], ALPHA_PAGE [2], ATIME [1], ATIME [2], CALIBRATE [1], CALIBRATE [2]
	CHANNEL, CHECKVAR [1], DATPLOT, EMENU, FCOLOR [1], F_USE_WIDGET, GAUSSFIT [1]
	GAUSSFIT [2], GAUSSFIT [3], GAUSSFIT [4], GAUSSFIT [5], GET_DISCSP511, GET_SLLD
	GET_SPEC_GAIN, GET_W64, GRAPHICS_PAGE, LIMITS, RESPOND_WIDG, XDEVICE, checkvar [2]
	edge_products, fcolor [2], printx [1], printx [2], select_widg, spex_intervals [1]
	spex_intervals [2], wsetshow [1], wsetshow [2]
 CALLED BY:
	Shers_load [1]
 COMMON BLOCKS:
	none

 SIDE EFFECTS:
	none

 RESTRICTIONS:
	none

 PROCEDURE:
	none

 MODIFICATION HISTORY:
	ras, 1993
	ras, 18-aug-94
	ras, 29-mar-95, removed common cal_sher_com
	ras, 18-oct-95, added conditions to gain/line product test
	richard.schwartz, 20-feb-1998, fixed bug in interval selection using
	spex_intervals, and line fit selection.


CALIB_HIST $SSW/cgro/batse/idl/calib_hist.pro
[Previous] [Next]

  Name:
       CALIB_HIST


 PURPOSE:  compile and update the BATSE SPEC calibration info
	for each detector for every flare


 CATEGORY:    
	BATSE


 CALLING SEQUENCE:  calib_hist, filename


 CALLED BY:


 CALLS: ***
	CONCAT_DIR [1], CONCAT_DIR [2], CONCAT_DIR [3], CONV_VAX_UNIX, READ_CAL_SPEC
	TJD2YMD, USE_VAX_FLOAT, batse_read_cat, concat_dir [4]
 INPUTS:
       Filename- File to read.

 OPTIONAL INPUTS:
	none

 OUTPUTS:
       none explicit, only through commons;

 OPTIONAL OUTPUTS:
	none

 COMMON BLOCKS:
	none

 SIDE EFFECTS:
	Updates SSWDB_BATSE:cal_spec.dat

 RESTRICTIONS:
	VMS only

 PROCEDURE:
	none

 MODIFICATION HISTORY:
	ras, 15-feb-95
               RAS, 25-Jul-1997, changed PERM_DATA to SSWDB_BATSE
	Version 3, richard.schwartz@gsfc.nasa.gov, 24-jun-1998, update for IDL 5.1 VAX IEEE float.


CALIBRATE [1] $SSW/cgro/batse/idl/calibrate.pro
[Previous] [Next]
 PROJECT:
	SDAC

 NAME: 
	CALIBRATE

 PURPOSE:
     This subroutine calculates the energies corresponding to the channel
 boundaries for the BATSE Spectral Detectors.  
	
 METHOD:
 The calibration is assumed
 to consist of two parts:  a calculation of the light output from the NaI
 crystal from the channel number, and a calculation of the energy loss in
 the crystal that produces that light.  The SLED is mitigated by an addition
 to the channel number in the term linear in channel number.  The subroutine
 also calculates the effective uncompressed channel numbers.

  There are calibration fiducials for the lld's, those obtained by schwartz
  are the defaults.  To change to the Preece fiducials, set which_fiducials
  to 0 in  read_coef_com, spec_lld_old, which_fiducials

 INPUTS:
      ndet---the detector number
      width64---the variable width of the 64th channel
      spec_lld---LLD settings for all 8 detectors
      nlines---the number of lines used for calibration
      chan---vector of location of calibration lines in uncompressed channels
      en---vector of location of calibration lines in energy

 KEYWORD INPUTS:
	MAXCHAN - calibrate only up to this channel to save time.
      /discsp - edges are only those needed for discsp edges, lld/2, lld, max(evec)
      /report_calibration if set then the input arguments
	are set from the common block cal_sher_com and the outputs are 
	calculated
      /noevec - don't compute the evec for output, just go as far as xvec

   Output:
      evec---the vector of energies, 257 values normally, 3 for /discsp
      unevec - energies w/o sled correction
      xvec---the vector of effective uncompressed channel boundaries
      pre_olight - vector of light outputs/channel before sled amp correction
      olight     - vector of light outputs/channel after sled

 CALLED BY:
	CAL_SHER, DISCSP_EDGES, Modify_sled [2], Shers_load [1], countsmod_plot [1]
	countsmod_plot [2], modify_sled [1]
   Common blocks:
     common spline_com, break,c0,c1,c2,c3
      common sled_com, sb,sc,sd,scut
      common fiducial_com,af,bf,cf,xf
      common read_coef_com, spec_lld_old, which_fiducials
	;common block for passing 511 line position out to the top level
	common cal_sher_com, pass511, w64_used, spec_lld_used

 Category: CGRO/BATSE

 Calls: ***
	CHANNEL, CHECKVAR [1], DELTA_CONTROL, FAST_RATIO, FCHECK, FCRYSTAL, FCRYSTAL1
	GAIN_COR, LLD_CHAN, READ_COEF, SLED, anytim [1], anytim [2], anytim [3], anytim [4]
	anytim [5], checkvar [2], printx [1], printx [2]
 History:
   Written 10/2/91 DLB; Revised 12/6/91 laf; Last modified 4/7/92 DLB
   Translated to IDL by RAS, 92/6/5
	
   ras, 13-March-94, fixed discsp settings
   ras, 19-aug-94, default fiducials for lld changed to ras's
   ras, 19-oct-94, corrected energy calibration for spec discriminators, discsp
   ras, 29-mar-95, added cal_sher_com and communication for this common block
   ras, 29-dec-95, include sled correction in DISCSP calculation since
	the 511 line is in the pha calibration which includes the 
	sled pedestal which can be several channels wide
       also switched to Preece's lld calibrations as default
   Version 2, ras, 15-March-1996, added maxchan
   Version 3, ras, 8-Nov-1996, changed fiducial in Schwartz calibration for
	det 2.
   Version 4, ras, 11-Nov-1996, changed defaults to Schwartz fiducials 
   Version 5, ras, 27-nov-1996, calling LLD_CHAN for Skelton fiducial calibration
	and using DATE for discsp_edges because of SPEC1 change on 3-Oct-1993
   Version 6, richard.schwartz@gsfc.nasa.gov, 
	added SPEC_LLD keyword to LLD_CHAN call 1-apr-1998.
	


CALIBRATE [2] $SSW/cgro/batse/idl/modify_sled.pro
[Previous] [Next]
*****************************************************************************
 NAME: 
	CALIBRATE
 PURPOSE:
     This subroutine calculates the energies corresponding to the channel
 boundaries for the BATSE Spectral Detectors.  The calibration is assumed
 to consist of two parts:  a calculation of the light output from the NaI
 crystal from the channel number, and a calculation of the energy loss in
 the crystal that produces that light.  The SLED is mitigated by an addition
 to the channel number in the term linear in channel number.  The subroutine
; also calculates the effective uncompressed channel numbers.

  There are calibration fiducials for the lld's, those obtained by schwartz
  are the defaults.  To change to the Preece fiducials, set which_fiducials
  to 0 in  read_coef_com, spec_lld_old, which_fiducials

   Input:
      ndet---the detector number
      width64---the variable width of the 64th channel
      spec_lld---LLD settings for all 8 detectors
      nlines---the number of lines used for calibration
      chan---vector of location of calibration lines in uncompressed channels
      en---vector of location of calibration lines in energy
      /discsp - edges are only those needed for discsp edges, lld/2, lld, max(evec)
      /report_calibration if set then the input arguments
	are set from the common block cal_sher_com and the outputs are 
	calculated
      /noevec - don't compute the evec for output, just go as far as xvec
   Output:
      evec---the vector of energies, 257 values normally, 3 for /discsp
      unevec - energies w/o sled correction
      xvec---the vector of effective uncompressed channel boundaries
      pre_olight - vector of light outputs/channel before sled amp correction
      olight     - vector of light outputs/channel after sled
   Written 10/2/91 DLB; Revised 12/6/91 laf; Last modified 4/7/92 DLB
   Translated to IDL by RAS, 92/6/5
 CALLS: ***
	CHECKVAR [1], EXIST, Modify_sled [2], checkvar [2], edge_products, modify_sled [1]
 CALLED BY:
	CAL_SHER, DISCSP_EDGES, Modify_sled [2], Shers_load [1], countsmod_plot [1]
	countsmod_plot [2], modify_sled [1]
   Common blocks:
     common spline_com, break,c0,c1,c2,c3
      common sled_com, sb,sc,sd,scut
      common fiducial_com,af,bf,cf,xf
      common read_coef_com, spec_lld_old, which_fiducials
	;common block for passing 511 line position out to the top level
	common cal_sher_com, pass511, w64_used, spec_lld_used
	
   ras, 13-March-94, fixed discsp settings
   ras, 19-aug-94, default fiducials for lld changed to ras's
   ras, 19-oct-94, corrected energy calibration for spec discriminators, discsp
   ras, 29-mar-95, added cal_sher_com and communication for this common block
   ras, 29-dec-95, include sled correction in DISCSP calculation since
	the 511 line is in the pha calibration which includes the 
	sled pedestal which can be several channels wide
       also switched to Preece's lld calibrations as default
*****************************************************************************


CH_SELECT $SSW/cgro/batse/idl/ch_select.pro
[Previous] [Next]

 NAME: 
       CH_SELECT

 PURPOSE:


 CATEGORY:
       BATSE

 CALLING SEQUENCE:


 CALLS:
	none
 INPUTS:
       none explicit, only through commons;

 OPTIONAL INPUTS:
	none

 OUTPUTS:
       none explicit, only through commons;

 OPTIONAL OUTPUTS:
	none

 KEYWORDS:
	none
 CALLED BY:
	FSOC_AUX, RAWDUMPOC
 COMMON BLOCKS:
	none

 SIDE EFFECTS:
	none

 RESTRICTIONS:
	none

 PROCEDURE:
	none

 MODIFICATION HISTORY:


CHANNEL $SSW/cgro/batse/idl/channel.pro
[Previous] [Next]

 NAME: 
	CHANNEL

 PURPOSE:
	This procedure computes the BATSE linear channel numbers for the SHER PHA

 CATEGORY:
	BATSE

 CALLING SEQUENCE:
       channel, width64, xvec

 CALLS:
	none
 INPUTS:
       Width64
	
 OPTIONAL INPUTS:
	none

 OUTPUTS:
       Xvec: The linear channel numbers

 OPTIONAL OUTPUTS:
	none

 KEYWORDS:
	none
 CALLED BY:
	CALIBRATE [1], CAL_SHER, Shers_load [1], TEST_CAL
 COMMON BLOCKS:
	none

 SIDE EFFECTS:
	none

 RESTRICTIONS:
	none

 PROCEDURE:
c     This subroutines calculates the uncompressed channel boundaries
c of the SD detectors.  Note that indexing starts at 0.  Based on Bill
c Paciesas' memo of 2/11/91.
c     Input:
c        width64---a number between 0 and 16 to quantify the variable
c           width of the 64th channel
c     Output:
c        xvec---vector of uncompressed channel boundaries.  Since there
c           are 256 channels, there are 257 boundaries.
c
c Based on IDL procedure written 4/26/91; last modified 10/2/91  DLB
c
	none

 MODIFICATION HISTORY:
	Version 2, ras, 7 June 1996, added proper documentation block


CHECK_GAIN_ANGLE $SSW/cgro/batse/idl/occults/check_gain_angle.pro
[Previous] [Next]

 NAME: 
       CHECK_GAIN_ANGLE

 PURPOSE:
	This is a main program for examining the calibration and attitude
	history of the BATSE mission.

 CATEGORY:
	BATSE

 CALLING SEQUENCE:


 CALLS:
	none
 INPUTS:
       main program unit

 OPTIONAL INPUTS:
	none

 OUTPUTS:
       none explicit, only through commons;

 OPTIONAL OUTPUTS:
	none

 KEYWORDS:
	none
 COMMON BLOCKS:
	none

 SIDE EFFECTS:
	none

 RESTRICTIONS:
	none

 PROCEDURE:
	none

 MODIFICATION HISTORY:


CHECK_OVERFLOW $SSW/cgro/batse/idl/check_overflow.pro
[Previous] [Next]
 PROJECT: 
	SDAC
 NAME: 
       CHECK_OVERFLOW

 PURPOSE:
	This procedure determines whether the overflow flag is
	set in the requested time interval.

 CATEGORY:
       BATSE

 CALLING SEQUENCE:


 CALLS: ***
	READQUAL, anytim [1], anytim [2], anytim [3], anytim [4], anytim [5]
 INPUTS:
   sec_st,sec_en - (input) start,end time requested by user in r*8 seconds 
                   since 79/1/1 

 OPTIONAL INPUTS:
	none

 OUTPUTS:
   nfound - (output) number of overflow intervals found overlapping with
            requested intervall (sec_st to sec_en)
   over_sec_st,over_sec_en - (output) arrays of start,end times of overflow
                             intervals in r*8 seconds since 79/1/1

 OPTIONAL OUTPUTS:
	none

 KEYWORDS:
	none
 CALLED BY:
	CONT_READ, DISCSP_READ, FDBREAD, FS_ACC, FS_ACC_CONT, FS_ACC_DISCSP, READ_DISCLA
 COMMON BLOCKS:
	none

 SIDE EFFECTS:
	none

 RESTRICTIONS:
	none

 PROCEDURE:
 Construct a quality file name based on the requested start time. Open and
 read the file. Search the file for records with error_type 30 (Discriminator
 overflow) and retrieve the start and stop times for the overflow. Compare
 these time with the requested start and end times. Return the overflow start
 and end times that overlap with the requested start and end times.

 MODIFICATION HISTORY:
	Version 2, ras, 7 June 1996, added proper documentation block
	and made sure sec_st and sec_en are in anytim(x, /sec) format
	Version 3, richard.schwartz@gsfc.nasa.gov, revamped read.  This is 
	just reading a bytarr grouped into 80 characters per line.  Also, rejected
	overflow intervals greater than 70 minutes.
	Version 4, use readqual, ras, 16-oct-1997.


CLEAREM $SSW/cgro/batse/idl/occults/clearem.pro
[Previous] [Next]

 NAME: 
       CLEAREM

 PURPOSE:
	This procedure is used as a dummy procedure to clear memory
	for successive main program calls, i.e.
	.rnew clearem

 CATEGORY:
	BATSE, OCCULTS

 CALLING SEQUENCE:
	.rnew clearem

 CALLS:
	none
 INPUTS:
       none explicit, only through commons;

 OPTIONAL INPUTS:
	none

 OUTPUTS:
       none explicit, only through commons;

 OPTIONAL OUTPUTS:
	none

 KEYWORDS:
	none
 COMMON BLOCKS:
	none

 SIDE EFFECTS:
	none

 RESTRICTIONS:
	none

 PROCEDURE:
	none

 MODIFICATION HISTORY:
	Version 1, ras, 5-june-1996


comp_hkg_str $SSW/cgro/batse/idl/comp_hkg_str.pro
[Previous] [Next]

 NAME: comp_hkg_str


 PURPOSE: Returns the BATSE housekeeping structure subset

 CATEGORY: ephemeris


 MODIFICATION HISTORY:
	ras, 13-sep-1996


compact_hkg $SSW/cgro/batse/idl/occults/compact_hkg.pro
[Previous] [Next]

 NAME: compact_hkg


 PURPOSE: read in raw BATSE housekeeping files at MSFC,
	and extract used subset of housekeeping structure
       or use BDB files (merged DISCLA and HKG) at the SDAC 

 CATEGORY: ephemeris


 CALLING SEQUENCE: compact_hkg, infile, outfile


 CALLED BY:


 CALLS: ***
	BREAK_FILE [1], BREAK_FILE [2], BREAK_FILE [3], break_file [4]
 INPUTS:
       none explicit, only through commons;

 OPTIONAL INPUTS:
	none

 OUTPUTS:
       none explicit, only through commons;

 OPTIONAL OUTPUTS:
	none

 COMMON BLOCKS:
	none

 SIDE EFFECTS:
	none

 RESTRICTIONS:
	none

 PROCEDURE:
	none

 MODIFICATION HISTORY:
	ras, 28-jun-95


COMPRESS_QLOOK $SSW/cgro/batse/idl/compress_qlook.pro
[Previous] [Next]

 NAME: 
       COMPRESS_QLOOK

 PURPOSE:
	routine to compress the quicklook .sav files


 CATEGORY:
  	BATSE

 CALLING SEQUENCE:


 CALLS: ***
	BREAK_FILE [1], BREAK_FILE [2], BREAK_FILE [3], CHKLOG [1], CHKLOG [2]
	CONCAT_DIR [1], CONCAT_DIR [2], CONCAT_DIR [3], break_file [4], concat_dir [4]
 INPUTS:
       none explicit, only through commons;

 OPTIONAL INPUTS:
	none

 OUTPUTS:
       none explicit, only through commons;

 OPTIONAL OUTPUTS:
	none

 KEYWORDS:
	none
 COMMON BLOCKS:
	none

 SIDE EFFECTS:
	none

 RESTRICTIONS:
	This is an sdac database maintenance procedure.

 PROCEDURE:
 We were scaling everything
 to i*2's (between 1 and 20000).  Now scale the arrays (except the times)
 to bytes (between 1 and 255).  Also now scales logarithmically instead
 of linearly.  This routine reads all of the existing
 .sav files and rewrites them with the new compression scheme. 

 MODIFICATION HISTORY:
 Also changed qlarchive.pro so that new .sav files will be created this way.
 AKT Mar 8, 94
 Modified by Amy Skowronek 94/08/17 uses concat_dir with directory logicals
 to accomodate both UNIX and VMS
 Modified by Amy Skowronek 94/09/08 to save qlook files in XDR format.
 Version 4, ras, 7-june-1996, added documentation header


CONT_DEF $SSW/cgro/batse/idl/cont_def.pro
[Previous] [Next]
  Name:
       CONT_DEF
 CALLS: ***
	CHECKVAR [1], checkvar [2]
 Procedure:	
 Set default size for read buffer for BATSE CONTinuous and DISCSP data types

  Category:
	BATSE

  Call:
       Cont_def, ntimes

  Inputs: 
	ntimes- number of packets to allocate storage for.

 History:

 93/01/20 ras


CONT_EDGES $SSW/cgro/batse/idl/cont_edges.pro
[Previous] [Next]
 PROJECT: SDAC

 Name: CONT_EDGES


 PURPOSE: This function returns a 2x16 array of the energy edges for any LAD detector ID.


 CATEGORY: BATSE

 USE:      edges = cont_edges( det_id [, mer_table=mer_table] )


 INPUTS:
       det_id - id of LAD, 0-7, default 0

 KEYWORDS:
   OPTIONAL INPUTS:
       time - time of data for determining lookup table of linear channel nos. anytim format.
	mer_table = mer_table - 17 value table of linear channel numbers
                   mer_table supercedes time if both are present.
	/lookup - use edges stored in SSWDB_BATSE:batse_cont_edges    
		  otherwise use coefficients and gain equation
	Using Set_pendleton, x  
	there are 3 options where X is 
	 O means use Lestrade	edges,
	 1 use Pendleton Edges., 
	 2 use Lestrade with Preece modification. New default 23-jul-1997

 OPTIONAL OUTPUTS:
	UT_EDGES- A 1-d vector in which the times bound the changes in the
	linear channel lookup table.
	LINEAR_TABLE - The channel edges in linear channel space.
 OUTPUTS:
	2x16 array of edges in keV       

 CALLS: ***
	CHECKVAR [1], DISCLA_EDGES, INTERPOL, LAD_PHA_EDGES, LOC_FILE [1], LOC_FILE [2]
	LOC_FILE [3], RD_TEXT, SYS2UT, TJD2YMD, anytim [1], anytim [2], anytim [3], anytim [4]
	anytim [5], checkvar [2], edge_products
 CALLED BY:
	FS_SUBTITLE, MAP_DISCLA2CONT, MK_MER_CONT, OCC_AVG, read_batse_4_spex [1]
	read_batse_4_spex [2]
 PROCEDURE: Reads in a data file and selects the appropriate numbers, then
	blocks them into a 2x16 array

 MODIFICATION HISTORY: ras, 24 Sept. 1993
   ras 1/24/94 Added time keyword
   ras 10-feb-94, changed default to calibration coefficient lookup
   ras 14-mar-95, added control over default calibration through common block
   ras 17-oct-96, added lad_lookup_table.dat and read protection, det_id default
   ras 4-dec-1996 use RD_TEXT instead of RD_ASCII
   Version 6, ras 19-dec-1996 added UT_EDGES
   RAS, 7-Jul-1997, changed PERM_DATA to SSWDB_BATSE
   RAS, 23-jul-1997, used lad_pha_edges for Lestrade LAD calibration.
   Version 9, richard.schwartz, 8-feb-1998, added LLD cutof.
   CONTACT: Richard.schwartz@gsfc.nasa.gov


CONT_MSFC_STR $SSW/cgro/batse/idl/cont_msfc_str.pro
[Previous] [Next]

 NAME: 
       CONT_MSFC_STR

 PURPOSE:


 CATEGORY:
       BATSE

 CALLING SEQUENCE:


 CALLS:
	none
 INPUTS:
       none explicit, only through commons;

 OPTIONAL INPUTS:
	none

 OUTPUTS:
       none explicit, only through commons;

 OPTIONAL OUTPUTS:
	none

 KEYWORDS:
	none
 COMMON BLOCKS:
	none

 SIDE EFFECTS:
	none

 RESTRICTIONS:
	none

 PROCEDURE:
	none

 MODIFICATION HISTORY:


CONT_READ $SSW/cgro/batse/idl/cont_read.pro
[Previous] [Next]
 NAME:
	CONT_READ
 PURPOSE:
 	Procedure to read BATSE CONT files and return time, CONT, and angle
 	information.  The CONT data has been corrected for overflow and 
	divided by livetime.

 	You must supply the file name explicitly, the time you want, or the 
	flare number in order for cont_read to find the correct input file.  
	If you specify a file name or flare number, you may also specify 
	time start and end to restrict the amount of data returned.  If 
	you don't specify any times, cont_read will return all data in the 
 	cont file. 
 	UTPLOT package times are set as follows:  base time is set to start 
	of day of the current data, start and end times are set to 0 for 
	autoscaling.
 CATEGORY:
	BATSE

 CALLING SEQUENCE:
	cont_read, t, y, cosines	

 OUTPUTS:
   t - (output)   array of times at middle of accumulation interval in 
                  seconds since start of day.  
                  Base time for UTPLOT routines will be set to 0h 0m
                  on day of data. (Function GETUTBASE(0) will return base 
                  time in seconds since 79/1/1.) 
   y - (output)   (i,j,n) floating point array of cont data where
                  i=16 - channels 0-15 
                  j=8 - LADs 0 through 7
                  n - number of data intervals 
   cosines - (output) floating point array of cosine of angles between 8 LADs
                  and Sun (cosines(j) corresponds to y(*,j,*)

 OPTIONAL KEYWORD INPUTS:
   filename -  string CONT file name
   starttime - start time of data to accumulate in r*8 seconds 
               since 79/1/1,0 or as ASCII string 'YY/MM//DD,HHMM:SS'.
   endtime -   end time of data to accumulate. See starttime above for format.
   flare -     BATSE flare number to accumulate data for
   verbose -   0/1 means don't/do print accumulation times message

 OPTIONAL KEYWORD OUTPUTS:
   livetime -  (8,n) floating point array of live time in seconds for 
               each LAD for each data interval 
   error -     (keyword output) =0/1 means no error / error
 
 CALLS: ***
	CHECKVAR [1], CHECK_OVERFLOW, DN_TRANS, FIX_CONT, FS_OPEN [1], FS_OPEN [2]
	FS_READ_DD, GETUTBASE [1], GETUTBASE [2], RADEC_FILL, SETUTBASE [1], SETUTBASE [2]
	SETUTEND [1], SETUTEND [2], SETUTSTART [1], SETUTSTART [2], UTIME [1], UTIME [2]
	anytim [1], anytim [2], anytim [3], anytim [4], anytim [5], checkvar [2]
 CALLED BY:
	EVAL_SHERB, MAP_DISCLA2CONT, MK_MER_CONT
 MODIFICATION HISTORY:
 Amy Skowronek 94/08/24  (adapted from fdbread)
 ras, 27-mar-1996, removed setup_arrays.
 Version 4, fixed overflow time selection, richard.schwartz@gsfc.nasa.gov, 24-feb-1998.


CONT_STR $SSW/cgro/batse/idl/cont_str.pro
[Previous] [Next]

 NAME: 
       CONT_STR

 PURPOSE:


 CATEGORY:
       BATSE

 CALLING SEQUENCE:


 CALLS:
	none
 INPUTS:
       none explicit, only through commons;

 OPTIONAL INPUTS:
	none

 OUTPUTS:
       none explicit, only through commons;

 OPTIONAL OUTPUTS:
	none

 KEYWORDS:
	none
 COMMON BLOCKS:
	none

 SIDE EFFECTS:
	none

 RESTRICTIONS:
	none

 PROCEDURE:
	none

 MODIFICATION HISTORY:


CONVERT_FLARECAT $SSW/cgro/batse/idl/convert_flarecat.pro
[Previous] [Next]

 NAME: 
       CONVERT_FLARECAT

 PURPOSE:


 CATEGORY:
       BATSE

 CALLING SEQUENCE:


 CALLS:
	none
 INPUTS:
       none explicit, only through commons;

 OPTIONAL INPUTS:
	none

 OUTPUTS:
       none explicit, only through commons;

 OPTIONAL OUTPUTS:
	none

 KEYWORDS:
	none
 COMMON BLOCKS:
	none

 SIDE EFFECTS:
	none

 RESTRICTIONS:
	none

 PROCEDURE:
	none

 MODIFICATION HISTORY:


CRAB_OCC_STR $SSW/cgro/batse/idl/occults/crab_occ_str.pro
[Previous] [Next]

 NAME: 
       CRAB_OCC_STR

 PURPOSE:
       This is  used to define several
       structures used in BATSE OCCULTATION analysis.
	STRUCTURES:
	CRAB_OCC_DISCSP
	CRAB_OCC_CONT
	CRAB_OCC_DISCLA
	CRAB_RESULT_ALL
	CRAB_RESULT_DISCSP
 CATEGORY:
       BATSE, OCCULTS

 CALLING SEQUENCE:
	Crab_occ_str, Keyword_for_structure_desired = Returned_Structure
	e.g.
	CRAB_OCC_STR, CRAB_OCC_DISCSP = OCC_STRUCT

 CALLS: ***
	CHECKVAR [1], checkvar [2]
 INPUTS:
       none explicit, only through commons;

 OPTIONAL INPUTS:
	none

 OUTPUTS:
       none explicit, only through commons;

 OPTIONAL OUTPUTS:
	none

 KEYWORDS:
	CRAB_OCC_DISCSP
	CRAB_OCC_CONT
	CRAB_OCC_DISCLA
	OLD_CRAB_OCC_DISCLA
	CRAB_OCC_CONT
	CRAB_RESULTS_ALL
	CRAB_RESULTS_DISCSP
	INRADEC - RA and DEC J2000 of Crab
	NRUNS   - Number of occultation fit time intervals, default 3.
 CALLED BY:
	GET_OCC_ONDAY, OCC_FROM_FITS, READ_RESULTS, READ_RESULTS2, RESOLVE_NEW_OBS
 COMMON BLOCKS:
	none

 SIDE EFFECTS:
	none

 RESTRICTIONS:
	none

 PROCEDURE:
	none

 MODIFICATION HISTORY:
	Version 1, RAS 5-june-1996
	Version 2, RAS 23 Sep 1996 changed to procedure
	Version 3, RAS, 29 Oct 1996, added inradec
	Version 4, RAS, 5-dec-1996, added slld and n511 to discsp
	Version 5, RAS, 6-dec-1996, changed counts tag to array
	Version 6, RAS, 18-dec-1996, add old_crab_occ_discla


CREATE_GIF_HTML $SSW/cgro/batse/idl/create_gif_html.pro
[Previous] [Next]
  Name:
       CREATE_GIF_HTML
 
 Procedure to create a hypertext file which can be displayed by Mosaic (shows
 flare #, start/end time, and peak rate).  User can click on a flare to 
 see a gif time profile.  

 Kim Tolbert  2/94

 Modified 12/13/94 Amy Skowronek - replaced Kim Tolbert's name as
    	listed contact.
 Modified  10/24/95 AES - use ftp:// instead of file://
 Modified 1/18/96 AES - put links to years before and after, and still
 	create page even if there are no valid flares
 Mod 34/1/96 AES - changed selection of fldata to not exclude 
	dates, so further routines opened during a session won't
	be disturbed
 Mod 17/9/97 AES changed mildly to reflect y2k and changes to anytim
            also change address to gsfc one.
 Mod 99/3/18 AES removed reference to Mosaic from html code.
 CALLS:


CREATE_HTML $SSW/cgro/batse/idl/create_html.pro
[Previous] [Next]
  Name:
       CREATE_HTML
 
 Procedure to create a hypertext file which can be displayed by Mosaic (shows
 flare #, start/end time, and peak rate).  User can click on a flare to 
 see a PostScript time profile.  

 Kim Tolbert  2/94

 Modified 12/13/94 Amy Skowronek - replaced Kim Tolbert's name as
    	listed contact.
        10/2/95 AES - changed addresses to nascom domain
	 3/1/96  AES - get hxrbs password elsewhere
        9/17/97 AES - reflect y2k changes, changes to anytim, changed
                      my address
	 1/12/98 AES - added links to pages for the year before and
			the year after the one being created.
        3/18/99 AES - removed reference to Mosaic from html code
 CALLS: