get1hk_info [2] $SSW/trace/idl/egse/get1hk_info.pro
[Previous] [Next]
NAME:
	get1hk_info
PURPOSE:
	To return information from the HK database given a time and
	a mnemonic.  Should have one call per packet type (MDIHK, SC1, ...).
	Use GET_HK_INFO as the front end.
INPUT:
	times	- A list of the dates/times of interest
	mnem	- A list of the memonics to return info for
 CALLS: ***
	BREAK_FILE [1], BREAK_FILE [2], BREAK_FILE [3], FMT_TAG [1], FMT_TAG [2]
	MAKE_STR [1], MAKE_STR [2], anytim2ex [1], anytim2ex [2], anytim2ints [1]
	anytim2ints [2], break_file [4], convert_hk [1], convert_hk [2], data_type [1]
	data_type [2], ex2fid [1], ex2fid [2], int2secarr [1], int2secarr [2], prstr [1]
	prstr [2], rd_hk [1], rd_hk [2], sel_filetimes [1], sel_filetimes [2]
	where_arr [1], where_arr [2]
OPTIONAL KEYWORD INPUT:
	every	- Can specify to only return every N values.  This is
		  useful when specifying a long time range
	nostring - If set, then do not make the output string type (ie:
		  do not use lookup table for "mnemonic" -- just send the
		  raw value).  This only applies to digital mnemonics.
	cleanup	- If set, then check the data for only good data (ie: remove
		  data which is from when the DEP is off).
OUTPUT:
	info 	- A structure with the following tags:
			.time	- N element array of times
			.day	- N element array of days
			.value	- NxM array of values
			.mnem	- M array of mnemonic names
			.descr	- M array of short description
RESTRICTIONS:
	* The list of mnemonics must be all from MDI or all from the S/C packet
	* Do not mix mnemonic types unless you are using the /RAW_VALUE switch
	  (since floating point and string type do not mix well)
HISTORY:
	Written 23-Jan-95 by M.Morrison taking GET_HK_INFO as starting point
	 6-Feb-95 (MDM) - Added /NOSTRING option
			- Patched up case where CONVERT_HK returns a string
	 7-Jun-95 (MDM) - Modifications to work on new flight like HK 
			  database
	29-Jun-95 (MDM) - Added /CLEANUP keyword
	27-Nov-95 (MDM) - Added /EXP_PKT option to handle reading of the
			  emergency HK packet
	 4-Dec-95 (MDM) - Added /APPEND option so that the EXP_PKT data can
			  be merged with the regular packet HK data.
                          *********** Major Rewrite ***********************
       13-Jan-98 (MDM) - Modified to use the single ASCII file for database definition
                         (rather than binary database files READ_HIST or RTDB)
	 5-Mar-98 (MDM) - Continued with 13-Jan-98 mods
	10-Dec-99 (MDM) - Fixed how files are selected (Y2K problem)


get_hist_dbase_fil $SSW/trace/idl/egse/get_hist_dbase_fil.pro
[Previous] [Next]
NAME:
	get_hist_dbase_fil
PURPOSE:
	To find the proper (most recent) HK database file (RTDB)
 CALLS: ***
	file_list [1], file_list [2]
 CALLED BY:
	tr_decode_head [1], tr_decode_head [2]
HISTORY:
	Written Oct-96 by M.Morrison
	27-Feb-97 (MDM) - Added capability to override the most
			  recent with environment variable HIST_RTDB_FILE
			  setenv,'HIST_RTDB_FILE=/tsw/egse_v5.2/dbs/rtdb_v1.11.TRACE
			- Added common block so that it doesn't do
			  a listing each time


get_hk_info [2] $SSW/trace/idl/egse/get_hk_info.pro
[Previous] [Next]
NAME:
	get_hk_info
PURPOSE:
	To return information from the HK database given a time and
	a mnemonic.  
SAMPLE CALLING SEQUENCE:
	info = get_hk_info(times, mnem, /list)
	info = get_hk_info('16-mar-94 09:00', 'mtopts5')
	info = get_hk_info(['16-mar-94 5:00', '16-mar-94 14:00'], 'mtopts5')
	info = get_hk_info(['16-dec-94', '18-dec-94'], ['qtopts1n', 'qtopts2n'])
	info = get_hk_info(['7-jun-95', '7-jun-95 23:00'], 'mksqref'+strtrim(indgen(6),2),/qdebug, /raw)
INPUT:
	times	- A list of the dates/times of interest
	mnem	- A list of the memonics to return info for
 CALLS: ***
	BREAK_FILE [1], BREAK_FILE [2], BREAK_FILE [3], CONCAT_DIR [1], CONCAT_DIR [2]
	CONCAT_DIR [3], FILE_EXIST [2], MAKE_STR [1], MAKE_STR [2], STR2ARR [1]
	STR2ARR [2], UNIQ [1], UNIQ [2], UNIQ [3], anytim2ex [1], anytim2ex [2]
	anytim2ints [1], anytim2ints [2], break_file [4], concat_dir [4], convert_hk [1]
	convert_hk [2], ex2fid [1], ex2fid [2], fid2ex [1], fid2ex [2], file_exist [1]
	file_exist [3], file_list [1], file_list [2], prstr [1], prstr [2]
	str_replace [1], str_replace [2]
 CALLED BY:
	MDI_SUMMARY_SUB1, cal_fig_mich, cam_run_sum, iperr_sea, plot_door_open
	plot_img_cadence, plot_pzt_corr, plot_shutter_perf, pr_maxmin_hk
	pr_mdihk_trans [1], pr_mdihk_trans [2], pr_uniq_hk, quick_hkplot [1]
	quick_hkplot [2], seq_frame_info, seq_run_sum [1], seq_run_sum [2]
	wrt_fits_bin_exten [2], xhkplot
OPTIONAL KEYWORD INPUT:
	list	- If set, then the "times" input are a list of times
		  to find the discrete values for.  Default is a starting
		  and ending time.
	every	- Can specify to only return every N values.  This is
		  useful when specifying a long time range.  It must be
		  less than 1000.
	nostring - If set, then do not make the output string type (ie:
		  do not use lookup table for "mnemonic" -- just send the
		  raw value).  This only applies to digital mnemonics.
	cleanup	  - If set, then check the data for only good data (ie: remove
		    data which is from when the DEP is off).
OUTPUT:
	info 	- A floating point array of dimensions
		  NxM where N is the number of different times requested
		  and M is the number of mnemoics.
RESTRICTIONS:
	* Do not mix mnemonic types unless you are using the /RAW_VALUE switch
	  (since floating point and string type do not mix well)
METHOD:
	An ASCII text file contains the information on where to find the
	various files.
HISTORY:
	Written 23-May-94 by M.Morrison
	24-May-94 (MDM) - Continued to develop
	25-May-94 (MDM) - Continued to develop
	24-Aug-94 (MDM) - Corrected for error when no valid input files
			  available for requested time
	12-Jan-95 (MDM) - Added EVERY option
			- Added access to SC1, SC2, and SC4 database files
	16-Jan-95 (MDM) - Continued to add access to SC1, SC2 and SC4
			- Changed to do 1000 records at a time
	23-Jan-95 (MDM) - Broke into two routines:  GET_HK_INFO and
			  GET1HK_INFO.  Made GET_HK_INFO derive which packet 
			  the mnemonic comes from and derive the file names.
	24-Jan-95 (MDM) - Corrected error in how MAP2PACK was being derived
	 6-Feb-95 (MDM) - Added /NOSTRING option
	 7-Jun-95 (MDM) - Added MDI_MDIHK_LOG_DIR to the list of directories
			  to check for HK database files.
	28-Jun-95 (MDM) - Patched a bug which was causing the schk database
			  common variable to get clobbered.
	29-Jun-95 (MDM) - Added /CLEANUP keyword
	27-Jul-95 (MDM) - Finished the 28-Jun-95 patch (added correction for
			  case where there is no data file)
	 1-Aug-95 (MDM) - Added /NOMORE to debug PRSTR call
       16-Nov-95 (MDM) - Modified to allow a workaround where the expected
                         extensions were .schk1,2,3,4 and they were implemented
                         as sc1,2,3,4
	21-Nov-95 (MDM) - Modified to handle the fact that the SC HK data is
			  in a different directory on the EOF system.
	27-Nov-95 (MDM) - Added /EXP_PKT option to read the emergency experiment
			  packet
	 4-Dec-95 (MDM) - Added /CHECK_EXP option to allow concatenation of
			  MDIHK packet information and EXP packet information
	 5-Dec-95 (MDM) - Added call to HK_TIME_SORT
	 9-Oct-96 (MDM) - Expanded to work with TRACE
			   *********** Major Rewrite ***********************
	13-Jan-98 (MDM)	- Modified to use the single ASCII file for database definition
			  (rather than binary database files READ_HIST or RTDB)


go_cron_hourly_chippewa $SSW/trace/idl/site/go_cron_hourly_chippewa.pro
[Previous] [Next]
NAME:
	go_cron_hourly_chippewa
PURPOSE:
	Quick jobs which should run hourly
HISTORY:
	Written 15-Apr-98 by M.Morrison
	15-Apr-98 (MDM) - Added EGSE connect message file
	21-Apr-98 (MDM) - Corrected bug and cleaned up format


go_mk_idl_doc $SSW/trace/idl/site/go_mk_idl_doc.pro
[Previous] [Next]
NAME:
	go_mk_idl_doc
PURPOSE:
	To generate the WWW IDL document pages
HISTORY:
	Written 28-May-97 by M.Morrison (generalizing mk_idl_doc)
	11-Jun-97 (MDM) - Reorganized.  Had "doc1liners" called within
			  this driver routine
	 1-Aug-97 (MDM) - Added <pre> to topssw output
	 4-Dec-97 (MDM) - Changed to /www instead of /hosts/pore1/...
	29-Apr-98 (MDM) - Removed "http://www.space.lockheed.com" portion
			  of "httpdir"
	 6-Jul-98 (MDM) - Re-added "http://www.lmsal.com" portion of
			  "httpdir" since "str2html" doesn't work right
			  otherwise and apparently the web page has been
			  broken since Apr-98 (guess nobody uses it)


go_mk_sum_head $SSW/trace/idl/site/go_mk_sum_head.pro
[Previous] [Next]
NAME:
	go_mk_sum_head
PURPOSE:
	To make summary listings of images received
HISTORY:
	Written 1997 by M.Morrison
	14-Apr-98 (MDM) - Gutted and replaced calls to GO_SUMMARY_HEAD with
			  calls to TR_TAB_HEAD to work with post-launch files
	07-Mar-06 (ZAF) - reworked perl command for index for Mac version


go_mk_trace_i0 $SSW/trace/idl/egse/go_mk_trace_i0.pro
[Previous] [Next]
NAME:
	go_mk_trace_i0
PURPOSE:
	Called from the script /tsw/bin/mk_trace_i0.csh
	to make a FITS image file from a raw telemetry file
HISTORY:
	Written 30-Oct-96 by M.Morrison


go_move_fdss $SSW/trace/idl/ops/go_move_fdss.pro
[Previous] [Next]
NAME:
	go_move_fdss
PURPOSE:
	To ingest the FDSS files into the TRACE system
HISTORY:
	Written 26-Nov-97 by M.Morrison
	 2-Dec-97 (MDM) - Modified default input/output dirs
       10-Mar-98 (FZ)  - Added logic for SMEXSS files.
       23-Mar-98 (FZ)  - Modified wildcard from '??' to '*' for SMEXSS files.
	31-Mar-98 (MDM) - Added ongoing log file (home directory)
			- Modified to use /fotdisk as the input dir
			- Changed "cp -p" to "cp" since the file ownership
			  ended up being "fot" and caused problems.
	 9-Apr-98 (MDM) - Added GRNDTRK
	15-Apr-98 (MDM) - Gutted and replaced with a call to REWRT_FDSS
	21-Apr-98 (MDM) - Corrected STATION vs SCHEDULE
	21-Apr-98 (MDM) - Further correction for station pass stuff


GO_PLOT_THERM_RS232 $SSW/trace/idl/egse/go_plot_therm_rs232.pro
[Previous] [Next]
 NAME:
	GO_PLOT_THERM_RS232.PRO

 HISTORY:
	17-Feb-97 - (BNH) - Document option 'c'
	18-Aug-97 (MDM) - MOdified for S/C TB/TV
			- Handle styles by pointing to a file


GO_PLOT_THERM_RS232A $SSW/trace/idl/egse/go_plot_therm_rs232a.pro
[Previous] [Next]
 NAME:
	GO_PLOT_THERM_RS232A.PRO

 HISTORY:
	17-Feb-97 - (BNH) - Document option 'c'


go_proc_dps $SSW/trace/idl/ops/go_proc_dps.pro
[Previous] [Next]
NAME:
	go_proc_dps
PURPOSE:
	To process the DPS incoming data
METHOD:
	a) *.SFDU are moved to the "~dps/to_be_deleted" directory
	b) QL HK data is slotted into HK files and moved to "to_be_deleted"
	c) LZ HK data is copied to HK online dirs and index created and
	   moved to "to_be_deleted"
	d) VC2 data is moved to "~dps/raw_vc2", has an inventory created, 
	   is renamed has the reformatter(s) run
HISTORY:
	Written 2-Dec-97 by M.Morrison
	 3-Dec-97 (MDM) - Added slotting of HK QL
	 3-Dec-97 (MDM) - More stuff
	 4-Dec-97 (MDM) - Added offset_time
	 8-Dec-97 (MDM) - Corrected error of LZ handling of mix of HK and VC2
	10-Feb-98 (MDM) - Removed exclusion of APID 72
			- Made the default answer to running the old reformatter "No"
	19-Feb-98 (RWN) - Added DOUBLE to time offsets in last PRINT
	12-Mar-98 (MDM) - Changed I1_DIR to I1_BASE_DIR for base_outdir
	31-Mar-98 (MDM) - Made it run non-interactively
			- Removed old reformatter question
			- Made QL HK data put a flag file in for web stuff
			- Added log file output
	14-Apr-98 (MDM) - Put in protection to not do data older than
			  3 days ago for VC2 data
	14-Apr-98 (MDM) - Changed to be last 1 day only
	15-Apr-98 (NEH) - Changed to test on difference in time instead
	16-Apr-98 (MDM) - Delete IDL log file if no new files
	23-Apr-98 (MDM) - Added call to dps_proc_mem_dump
			- Made "prob_apid" be only apid3, and handles LZ and QL
	28-Apr-98 (MDM) - Added APID 14 check for LZ data
	29-Apr-98 (MDM) - Corrected double use of "apid" variable which
			  did not have memory dump apid 14 files being
			  processed
	10-Jun-98 (MDM) - Added handling of apid 73 (dhc memory dumps)
			- Added handling of QL HK files after recipt of LZ file
	23-Jul-98 (MDM) - Removed APID 3 as "problem apid" for LZ data
	28-Jul-98 (MDM) - Removed the elimination of APID 3 and 5 as "problem apid"
			  (QL only, not LZ is a problem)
       11-sep-98 S.L.Freeland - QKL catalog and mosaic build
	 5-Jan-99 (MDM) - Send only one EMAIL per DAN file for QL after LZ file
			- Removed morrison from email recipient
       01-jan-99 (CMH) - Changed location of tm_mgr task to:
	 cmd = ['/tsw/egse_v5.2/tasks/tm_mgr'   from 
        cmd = ['/disk6/people/trace/egse/tm_mgr' as this is the current and
        valid tm_mgr task per Roger C. 1/6/99


go_ref_dps $SSW/trace/idl/egse/go_ref_dps.pro
[Previous] [Next]
NAME:
	go_ref_dps
PURPOSE:
	To allow user to select a DPS file for reformatting
HISTORY:
	Written 28-Aug-97 by M.Morrison
	29-Aug-97 (MDM) - Re-installed mods to only list G06* files


go_tr_mech_summary $SSW/trace/idl/site/go_tr_mech_summary.pro
[Previous] [Next]
NAME:
	go_tr_mech_summary
PURPOSE:
	Make the mech summary reports
HISTORY:
	Written 15-May-98 by F.Zele
       10-Jun-98 (MDM) - Modified logic so that month rollover works


go_tr_mon_health_eof $SSW/trace/idl/site/go_tr_mon_health_eof.pro
[Previous] [Next]
NAME:
	go_tr_mon_health_eof
PURPOSE:
	To generate the EOF "near-real-time" health monitoring
	plots and listings
HISTORY:
	Written 25-Mar-98 by M.Morrison
	31-Mar-98 (MDM) - Made output log file and to run only
			  when new data is seen
	 1-Apr-98 (MDM) - Added creating upcoming passes file
	 2-Apr-98 (MDM) - Modified to force updates if the
			  HK data file was modified in the last
			  12 minutes
	 7-Apr-98 (MDM) - Added "seq_sum_img" calls to make gif files
			- Made station listing only be for 24 hrs
	14-Apr-98 (MDM) - Made a few more output files to switch 
			  over to .shtml file
			- Write "log_health_old.html" file
	16-Apr-98 (MDM) - Added HK_FRMNUM_CMD_ERR
       16-Oct-98 (CMH) - Added HK_BATTERY
       22-Sep-00 (CMH) - Added HK_WHL_A_TORQ
       19-Feb-01 (CMH) - Added HK_WHL_TORQUES


go_tr_mon_health_lmsal $SSW/trace/idl/site/go_tr_mon_health_lmsal.pro
[Previous] [Next]
NAME:
	go_tr_mon_health_lmsal
PURPOSE:
	To generate the TRACE long duration health monitoring
	plots and listings
HISTORY:
	Written 25-Mar-98 by M.Morrison
	16-Apr-98 (MDM) - Added HK_FRMNUM_CMD_ERR
	21-Apr-98 (MDM) - Added HK_TEMP_SC_ONLY
       16-Oct-98 (CMH) - Added HK_BATTERY
       06-Nov-98 (CMH) - Added HK_SC_TEMPS, HK_FLAGS
	09-Mar-00 (TDT) - Run 60-day plots only every 5-6 days
       08-Oct-00 (CMH) - Added HK_WHL_A_TORQ


go_tr_seq_sum_img $SSW/trace/idl/site/go_tr_seq_sum_img.pro
[Previous] [Next]
NAME:
	go_tr_seq_sum_img
PURPOSE:
	Make the sequence summary listings and gif files
HISTORY:
	Written 7-Apr-98 by M.Morrison
	 4-Jun-98 (MDM) - Added a call to tr_mk_seq_alph
	10-Jun-98 (MDM) - Modified logic so that month rollover works
        3-Sep-98 (FZ)  - Generate GIF files only a number of days back


go_tr_summary_head $SSW/trace/idl/egse/go_tr_summary_head.pro
[Previous] [Next]
NAME:
	go_tr_summary_head
PURPOSE:
	Simple front end for making per-image listing summaries
HISTORY:
	Written 29-Aug-97 by M.Morrison
	11-Sep-97 (MDM) - Added some details for SEQ_VAL listings


gtt_CCD_cen $SSW/trace/idl/info/gtt_ccd_cen.pro
[Previous] [Next]
NAME:
       gtt_CCD_cen
PURPOSE:
       To compute solar coordinates of the CCD center for a trace image index 
SAMPLE CALLING SEQUENCE:
       answr = gtt_CCD_cen(index)
	answr = gtt_ccd_cen(be, times, dph=dph)
INPUTS:
       index = index structure derived from TRACE image header
	times = the date/time for each image (if calibration is time
		dependent)
OUTPUTS:
	array [x,y] = solar [EW, NS] in arcseconds, from disk center
 CALLS: ***
	WEDGE2SOLAR, gtt_info
HISTORY:
       17-Mar-98 (TDT) -- just wedge motors & PZT offsets
	18-Mar-98 (MDM) - Modified to use GTT_INFO to get the wedge/pzt info
	19-Mar-98 (MDM) - Added times as optional input
			- Temporarily commented out PZT2SOLAR call


gtt_info $SSW/trace/idl/info/gtt_info.pro
[Previous] [Next]
NAME:
	gtt_info
PURPOSE:
	To extract information from the TRACE index information.
	The source is either:
		1) a structure with item as an explict tag
		2) the integer 505 data product header.
		3) integer values (input for lookup table access)
SAMPLE CALLING SEQUENCE:
	out = gtt_info(index, code)
	out = gtt_info(index, 'TAGTIME')
	out = gtt_info(index, 'msfilt1')
	out = gtt_info([0,1,2,3], 'msfilt1')
	print, gtt_info([19,54,91,127], 'mfilt1', /lut)
	print, gtt_info([1,2,3,4], 'mfilt1', /lut, ic=2)

	infil = '/td11/log/raw_fits/9712sim/19980218/tri19980218.1500
	read_trace,infil,-1,index,data,/nodata,/all

	tr_rd_index, '18-Feb-98', '18-Feb-98 2:00', index        ,/struct
	out = trace_dph2struct(ph,index,dph,/load)
INPUT:
	in	- Input data (structure or integer array)
	code	- The item wanted.  See the file
			$TR_CAL_INFO/trace_keywords.tdb
		  for the decoding information
 CALLS: ***
	DELVARX [1], DELVARX [2], DELVARX [3], DELVARX [4], GTT_INFO_SOU_AREA
	anytim2ints [1], anytim2ints [2], data_chk [1], data_chk [2], data_type [1]
	data_type [2], delvarx [5], fmt_tim [1], fmt_tim [2], gt_tagval [1], gt_tagval [2]
	gtt_mnem, gtt_shutter_exp, make_into_bytarr, tbeep [1], tbeep [2], tbeep [3]
	tr_lut_conv, trace_dph2struct [1], trace_dph2struct [2]
 CALLED BY:
	gtt_CCD_cen, gtt_shutter_exp, gtt_wave_tru, read_trace, tr_qs_quality
	trace_sub2point, trace_write_genxcat
OPTIONAL KEYWORD INPUT:
	string
	lut	- Perform a lookup table conversion
	ic	- Lookup table input column for the conversion
		  (default is 0)
	oc	- Lookup table output column for the conversion
		  (default is 1)
	dph	- The binary "505" word header in byte 2-D form
	times	- The times to use when doing lookup table call
METHOD:
	1. Get the information requested
	     A. If the input is a structure
		a. See if the code exists as a tag.  If so, extract
		b. See if the dp_header is a tag, If so make the input
		   be the dp_header
	     B. If the input is an integer, see if it's the header or
		raw values being passed in (generally for lookup table
		conversion)
	2. To derive or extract the information
	     A. See if the definition of the tag is complex and requires
		the full dataproduct header
	     B. See if the tag is defined simply in terms of other
		tags
	     C. See if the keyword database can extract the information.
		That only works with the raw 505 header
	3. Optionally convert the results by going through a lookup
	   table.

	The idea is that most of GTT_INFO should work if a structure
	is passed in with the necessary tags, but with no raw 505
	data product header.
HISTORY:
	Written Jan-1998 by M.Morrison
	29-Jan-98 (MDM) - Expanded to allow various types of input
	30-Jan-98 (MDM) - Modified to call TRACE_DPH2STRUCT for the
			  database reference extraction step
			- Added "dph" keyword input to speed up
			  the extraction steps
	19-Feb-98 (MDM) - Added TIMES keyword
	24-Feb-98 (MDM) - Corrected GTT_INFO_SOU_AREA function
	26-Feb-98 (MDM) - Added several of the CCD pixel keywords
	11-Mar-98 (MDM) - Changed definition of SRI pixels based on
			  Tarbell's prediction of the amplifier orientation
			- Corrected(?) 'CRO_LLEX/Y'
	18-Mar-98 (MDM) - Removed "n1 = n_elements(in(*,0))" code which
			  was slowing things considerably (.1 sec/4000 images/call)
	24-Mar-98 (MDM) - Added "sht_mdur"
       24-Apr-98 (SLF) - do bytswap for lendian on TIME_TAG (only)
	 5-May-98 (MDM) - Corrected SRI_LLEX/Y -- it was not correcting for
			  bin/sum factors
       12-May-98 (FZ)  - Changed loop variable to long
       16-Jun-98 (SLF) - remove TIME TAG byteswap (now done in make_into_bytarr)
                         add /swap_endian in call to make_into_bytarr
	17-Jun-98 (MDM) - Corrected pointing fields for onchip summing
			  (typo for "ccd_bin" versus "tccd_bin")
       26-Nov-98 (SLF) - Corrected SRI_FOVY (was using sri_llex instead of ..lley)
	 3-Feb-00 (RWN) - Corrected SRI_LLEX & SRI_LLEY for on-chip summing of CRO_LLEX(& Y)
			  and for fractional pixels 
	28-Aug-00 (RWN) - Corrected SRI_LLEX & SRI_LLEY for amplifier B logic by moving 
			  tbin statement out of amp if loops
       28-Mar-2003 (SLF) - fractional seconds mod (per mdm) add MSEC switch


gtt_mnem $SSW/trace/idl/info/gtt_mnem.pro
[Previous] [Next]
NAME:
	gtt_mnem
PURPOSE:
	TRACE routine to extract mnemonic information from data
SAMPLE CALLING SEQUENCE:
	out = gtt_mnem(data, mnem, data_sou)
	out = gtt_mnem(be, 'iuispzta')
INPUTS:
	data	- Raw data.  Form is 2-D where first D is the
		  packet (or header) and the second D is for 
		  time (or image #).  It must be BYTE type
	mnem	- Single mnemonic to extract
OPTIONAL INPUT:
	data_sou- Source of data.  It is a string of value
			'HK': - input data is raw HK packets
			'DP': - input data is raw data product header
		  Default is "DP".
 CALLS: ***
	MASK, UNSIGN, data_chk [1], data_chk [2], data_type [1], data_type [2], dec2sun [1]
	dec2sun [2], is_member [1], is_member [2], rd_egse_hk_txt
 CALLED BY:
	gtt_info, tr_wrt_fits_i1 [1], tr_wrt_fits_i1 [2]
HISTORY:
	Written 12-Jan-98 by M.Morrison
	15-Jan-98 (MDM) - Added other machine byte swapping
			- Added byte swapping for type "U"
	29-Jan-98 (MDM) - Allowed "data" input to be a structure
			  and it makes a copy of the data product
			  header.
	 5-Mar-98 (MDM) - Corrected to still to analog conversion
			  even when /NOSTRING is set
			- Corrected analog conversion problem
	18-Mar-98 (MDM) - Made "UB" actually come out as byte type
			- Removed "n = n_elements(data(0,*))" type of calls
	21-Apr-98 (MDM) - Added data type "I" (signed integer*2)
       12-May-98 (FZ)  - Changed loop variables to long
	11-Aug-98 (MDM) - Added "SFP" data type


gtt_orbit $SSW/trace/idl/info/gtt_orbit.pro
[Previous] [Next]
NAME:
	gtt_orbit
PURPOSE:
	To read the FDSS files and output an array of answers corresponding
	to the array of input times based on code
SAMPLE CALLING SEQUENCE:
	answr = gtt_orbit(tim, code)
	answr = gtt_orbit('16-Feb-98 12:00', "is_saa")
	answr = gtt_orbit(['16-Feb-98 12:00','17-Feb-98 1:00'], 'is_hlat')
INPUTS:
	tim	- Array of date/time of the times of interest
	code	- "IS_SAA" for inquiring in DUREVT file
		- "IS_DAY" for inquiring in DUREVT file 
		- "IS_HLAT" for inquiring in DUREVT file
		- "WHAT_STA" for inquiring in VIEWPD file
		- "LAT" for inquiring in GRNDTRK file
		- "LON" for inquiring in GRNDTRK file
		- "ALT" for inquiring in GRNDTRK file
 CALLS: ***
	DATATYPE [1], DATATYPE [2], DATATYPE [3], FMT_TIMER [1], FMT_TIMER [2], anytim [1]
	anytim [2], anytim [3], anytim [4], anytim [5], anytim2ints [1], anytim2ints [2]
	fmt_tim [1], fmt_tim [2], rd_fdss, tim2match [1], tim2match [2], tim2match [3]
 CALLED BY:
	high_mag_lat, trace_cat2cosmic, trace_cosmic2hist_accum, trace_data_filter
	trace_make_vignette
HISTORY:
	Written 18-Feb-98 by F.Zele
V1.2	24-Feb-99 RWN - Added F_ATMOBS flag from durevt
V1.3   28-Oct-99 - S.L.Freeland - expanded 'IS_HLAT' to allow new fdss codes


gtt_shutter_exp $SSW/trace/idl/info/gtt_shutter_exp.pro
[Previous] [Next]
NAME:
	gtt_shutter_exp
PURPOSE:
	Compute and return shutter exposure time from index of an image.
SAMPLE CALLING SEQUENCE:
	t = gtt_shutter_exp(index)
INPUT:
	index	- The index structure for the image
OUPUT:
	t	- The exposure in seconds.  The counter on board
		  wraps around devery 256 msec so the measured 
		  duration predicts the number of wrap-arounds.
 CALLS: ***
	gtt_info
 CALLED BY:
	gtt_info
HISTORY:
	Written 20-Mar-98 by R. Shine
	23-Mar-98 (FZ)  - Translated from ana to idl
	24-Mar-98 (MDM) - Modified to work with vector input
	25-Mar-98 (MDM) - Corrected dark logic
	26-Mar-98 (FZ)  - Forced I*2 arithmetic computing dt and changed factor .25 to 250.


gtt_wave_tru $SSW/trace/idl/info/gtt_wave_tru.pro
[Previous] [Next]
NAME:
	gtt_wave_tru
PURPOSE:
	Compute and return wave length name from index of an image.
SAMPLE CALLING SEQUENCE:
	wlnam = gtt_wave_tru(index)
 CALLS: ***
	gtt_info, rd_tfile [1], rd_tfile [2], str2cols [1], str2cols [2]
HISTORY:
	Written 24-Mar-98 by F. Zele
	28-Apr-98 (MDM) - Added dph keyword pass through
       12_May-98 (FZ)  - Converted mfilt1 and mfilt2 from byte to integer
       29-Jul-99 (CMH) - Removed Spare and Current array entries as well 
                         as qs and fw positions that were in valid