[Previous]
[Next]
NAME:
web_seq
PURPOSE:
Make the TRACE sequence and frame web files
SAMPLE CALLING SEQUENCE:
web_seq, branch
web_seq, 'cck'
web_seq, 'com'
web_seq_do_timelines
CALLS: ***
ARR2STR [1], Arr2Str [2], BREAK_FILE [1], BREAK_FILE [2], BREAK_FILE [3]
BREAK_FILE2, CONCAT_DIR [1], CONCAT_DIR [2], CONCAT_DIR [3], DELVARX [1]
DELVARX [2], DELVARX [3], DELVARX [4], DO_STRUPCASE, FILE_EXIST [2], FMT_DURATION
FSTRING, GO_TABLE2CLD, OPSDB_PRINT, RD_JPEG_TABLE, SOLAR2WEDGE, STR2ARR [1]
STR2ARR [2], TOPSDB_ADD_ENTRY, TOPSDB_BAD_COL_TAB, TOPSDB_BAD_PIX_TAB
TOPSDB_COMP_LINK, TOPSDB_CONF_CHK, TOPSDB_EXPAND_SEQ, TOPSDB_FDB2SRC
TOPSDB_FIXUP22, TOPSDB_FULL_FILE, TOPSDB_GEN_IP_CLD, TOPSDB_GET_ADDR
TOPSDB_GET_ID, TOPSDB_GET_INFO, TOPSDB_GET_STRUCT, TOPSDB_GET_VER
TOPSDB_ID_ASSIGN, TOPSDB_ID_ASSIGN_S1, TOPSDB_INIT_CLD_FIL
TOPSDB_INIT_SRC_FIL, TOPSDB_LATEST_VER, TOPSDB_MK_AEC_LD, TOPSDB_MK_FRM_CLD
TOPSDB_MK_FULL_CLD, TOPSDB_MK_PNT_LD, TOPSDB_MOD_ENTRY, TOPSDB_MOVE_FILE
TOPSDB_PARSE_SYM, TOPSDB_PATCHUP_INFO, TOPSDB_PRINT, TOPSDB_RD_ID_ASSIGN
TOPSDB_RD_WRT, TOPSDB_RM_ENTRY, TOPSDB_TABLE2CLD, TOPSDB_UFRM2FRM, UNIQ [1]
UNIQ [2], UNIQ [3], WEB_SEQ_ALL_USERS, WEB_SEQ_DO1, WEB_SEQ_DO_ARRAY
WEB_SEQ_DO_FILE, WEB_SEQ_GEN_INDEX, WEB_SEQ_INDEX, WEB_SEQ_MAP_LINKS, WEB_SEQ_S2
WEB_SEQ_SUB, WEB_SEQ_TARG, anytim2doy [1], anytim2doy [2], anytim2ex [1]
anytim2ex [2], anytim2ints [1], anytim2ints [2], break_file [4], concat_dir [4]
curdir [1], curdir [2], data_type [1], data_type [2], dec2sun [1], dec2sun [2]
delvarx [5], ex2fid [1], ex2fid [2], file_append [1], file_append [2]
file_exist [1], file_exist [3], file_list [1], file_list [2], fmt_tim [1]
fmt_tim [2], ftp_copy [1], ftp_copy [2], get_host [1], get_host [2]
get_subdirs [1], get_subdirs [2], html_basics, int2secarr [1], int2secarr [2]
is_member [1], is_member [2], prstr [1], prstr [2], rd_tfile [1], rd_tfile [2]
rd_tr_seq_head, rem_elem [1], rem_elem [2], remtab [1], remtab [2], restgen [1]
restgen [2], savegen [1], savegen [2], str2html [1], str2html [2], str2html [3]
str_copy, str_replace [1], str_replace [2], strcapitalize [1], strcapitalize [2]
strlastchar [1], strlastchar [2], strmids [1], strmids [2], tbeep [1], tbeep [2]
tbeep [3], topsdb [1], topsdb [2], topsdb [3], tr_list_frames, uniqo [1], uniqo [2]
ut_time [1], ut_time [2], wc_where [1], wc_where [2], where_arr [1], where_arr [2]
zformat [1], zformat [2]
CALLED BY:
timeline
HISTORY:
Written Jan-97 by M.Morrison
14-Feb-97 (MDM) - Put the comment line in the frames
into the index listing.
17-Feb-97 (MDM) - Modified to look through all of /tsw/obs_dev for
labels (not just the user's sub-dir)
18-Feb-97 (MDM) - Modified link definition to not use a fixed output HTTP directory
24-Feb-97 (MDM) - Modified to look for "target_list" not "set_target_list"
- Changed "showframe" spawn to be /sh (SHELL="sh")
28-Feb-97 (MDM) - Modified id_assignment
5-Mar-97 (MDM) - Modified to write all HTML sources to one place
- Added split screen
- changed how substitution was being done because
of a line like:
set_frame_list(cck.FeX, cck.FeX_long, cck.FeXII,
did the subsitution of "cck.FeX" in all 3 places.
10-Mar-97 (MDM) - Modified target name/id assignment to be from the
"target_table.tab" file, instead of "target_list.tab" file
10-Mar-97 (MDM) - Put ; after ID assignment instruction
27-Mar-97 (MDM) - Removed seq_id_assign routine (put into topsdb)
- Added seq and frame listing by IDs
18-Apr-97 (MDM) - Added all sequences and frames alphabetically
7-Jul-97 (MDM) - Adjusted for too many frames/sequences (limitation of STR_REPLACE)
- Adjusted how target HTML is matched
17-Jul-97 (MDM) - Added in calls to RDFDB
- Added in processing commisioning period timeline
- Drop first comment line from frame as description if it's "estimated storage"
21-Jul-97 (MDM) - Force output in alphabetical order (for seq/frames)
- Changed how target listings were done
- Added keyword listings
15-Aug-97 (MDM) - Added links to UTIM files
29-Aug-97 (MDM) - Added links to ATIM files
29-Aug-97 (MDM) - Added /PREP option to web_seq
6-Oct-97 (MDM) - Added TIMELINE index generation
7-Oct-97 (MDM) - Added link to actual timeline file which is sent to FOT
13-Oct-97 (MDM) - Modified timeline index file
11-Nov-97 (MDM) - Removed references to BREAK_FILE2
7-Apr-98 (MDM) - Changed how to define the output directories (use WEB_SEQ_OBS/OBS_DEV and
stuff like WEB_PREPEND_DIR
8-Apr-98 (MDM) - Fixed up transition to vestige a bit more
- Fixed ID sorting (because ID file is not sorted)
- Removed "rdfdb" call
9-Apr-98 (MDM) - Made it only look at seq&frame for no user (not all sub-dirs)
6-Jan-99 (MDM) - Fixed TR_FRAME_DECODE for corrupte .ufrm file cases
- Modified calls to HTML_BASCIS to use /SIMPLE switch
14-Aug-06 (DCM) - Added /paragraph to str2html call
[Previous]
[Next]
Name: write_trace
Purpose: write trace index/data to specified type of FITS or WWW file
Input Parameters:
index - trace structures (ex: from read_trace.pro)
data - corresponding 2d/3d data array
Keyword Parameters:
outfile - if supplied, use this/these file names (including outdir/path)
outdir - if supplied, direct files to this directory (names derived)
fitstype - type of file; 0=>mxf (standard trace) 1=>2D FITS (1/image)
flat_fits - switch, if set, fitstype=1 (2D FITS, 1/image)
incwave, incsize, soho, prefix, extension - imply 2D fits
(keywords used to auto-dervive name via: trace_struct2filename)
nocomment - switch, if set, dont add comment from this routine
soho & summary (synonyms) if set, FLAT w/soho name->$
planning - if set, FLAT w/soho name -> $TRACE_PRIVATE (planning)
temp - if set, temporary file made in $HOME and copy to OUTFILE
is done in background (for bad NFS links?)
gif/tiff/jpeg - if set, write specified 'www' format
CALLED BY:
TRACE_COPY, TRACE_GBO, TRACE_PREP, tace_time2level1, trace_get1www_image
trace_make_tma, trace_make_tmr [1], trace_make_tmr [2], trace_make_tsma
trace_special_movie [3], trace_success_file
History:
6-March-1998 - S.L.Freeland
9-March-1998 - S.L.Freeland - call 'required_tags', add binary extension
12-March-1998 - S.L.Freeland - change default names 'trf' (flat)
'trb' (binary)
13-March-1998 - S.L.Freeland - completed 12-mar default name updates
[binary defaults include seconds]
add /PLANNING keyword
25-March-1998 - S.L.Freeland - file_type (pass to write_trace_bin)
26-March-1998 - S.L.Freeland - align keyword_db comments properly
(index may differ from original)
18-May-1998 - S.L.Freeland - add /TEMP (offline copy)
26-May-1998 - S.L.Freeland - enable EXTENSION for non-FLAT (binary)
( default = .mxf )
5-Jun-1998 - S.L.Freeland - add /gif,/tiff,/jpeg
8-Jun-1998 - S.L.Freeland - predefine a variable
9-Jun-1998 - S.L.Freeland - redirect WWW formats->SYNOP
8-Jul-1998 - S.L.Freeland - clarify internal outfile/outdir logic
15-Dec-1999 - S.L.Freeland - scalarized a potential logic problem
11-Mar-2002 - D.M. Zarro - added /seconds
8-jun-2005 - S.L. Freeland - eliminate header lines w/length ne 80
Calling Sequence:
write_trace, index, data ; write -> 3D fits (read_trace compat)
write_trace, index, data ,/flat ; write -> n2D flat FITS
write_trace, index, data, [,/gif,/tiff,/jpeg] ; n2D in WWW formats
Calls: ***
ARR2STR [1], Arr2Str [2], BOX_MESSAGE, BREAK_FILE [1], BREAK_FILE [2]
BREAK_FILE [3], CONCAT_DIR [1], CONCAT_DIR [2], CONCAT_DIR [3], FILE_EXIST [2]
FXHMAKE [1], FXHMAKE [2], TIME2FILE, TRACE_COLORS, WDEF [1], WDEF [2], WRITEFITS [1]
WRITEFITS [2], break_file [4], concat_dir [4], curdir [1], curdir [2]
data_chk [1], data_chk [2], file_exist [1], file_exist [3], get_infox
get_logenv [1], get_logenv [2], keyword_db, required_tags, str_replace [1]
str_replace [2], struct2fitshead, tag_index [1], tag_index [2], trace_scale
trace_struct2filename, write_trace_bin, zbuff2file [1], zbuff2file [2]
Restrictions:
/SUMMARY and /PLANNING intended imply a shared output directory
/gif,/tiff,and, /jpeg -> imply FLAT and autoscale/coloring
[Previous]
[Next]
Name: write_trace_bin
Purpose: write a TRACE binary extension file (driver for tr_wrt_fits_i1)
CALLS: ***
ARR2STR [1], Arr2Str [2], BOX_MESSAGE, DELVARX [1], DELVARX [2], DELVARX [3]
DELVARX [4], TIME2FILE, TR_WRT_FITS_I11, data_chk [1], data_chk [2], delvarx [5]
gt_tagval [1], gt_tagval [2], required_tags, tr_wrt_fits_i1 [1]
tr_wrt_fits_i1 [2]
CALLED BY:
write_trace
History:
9-March-1998 - S.L.Freeland
12-March-1998 - S.L.Freeland - add /NOROTATION in tr_wrt_fits_i1 call
use naxis1/naxis2 (mixed cube input)
[Previous]
[Next]
NAME:
wrt_fits_bin_exten
PURPOSE:
To write FITS binary extension table using the structure
passed in. The column names match the tag names of the
structure
SAMPLE CALLING SEQUENCE:
wrt_fits_bin_exten, struct, outfil
INPUTS:
struct - The structure to save to FITS file
outfil - The name of the output file
CALLS: ***
ADD_TAG [1], ADD_TAG [2], CONCAT_DIR [1], CONCAT_DIR [2], CONCAT_DIR [3]
FILE_EXIST [2], FIND_DELTA_TIME, FMT_TIMER [1], FMT_TIMER [2], TIME2FILE
TR_GET_TIME, TR_MK_CATALOG, UNSIGN, anytim2ints [1], anytim2ints [2]
concat_dir [4], data_type [1], data_type [2], file_exist [1], file_exist [3]
file_list [1], file_list [2], fmt_tim [1], fmt_tim [2], get_hk_info [1]
get_hk_info [2], gt_day [1], gt_day [2], int2secarr [1], int2secarr [2]
mxf_read_header, prstr [1], prstr [2], rd_tfile [1], rd_tfile [2], restgen [1]
restgen [2], sel_timrange [1], sel_timrange [2], setup, str_concat [1]
str_concat [2], str_replace [1], str_replace [2], tim2dset [1], tim2dset [2]
CALLED BY:
tr_wrt_fits_i1 [1], tr_wrt_fits_i1 [2]
HISTORY:
Written 18-Nov-97 by M.Morrison
[Previous]
[Next]
Name: wwwidl_watchdog
Purpose: perform a watchdog check (update or read/compare)
Input Parameter:
watch_file - file to update
; default=$SSW_SITE_LOGS/wwwidl_watchdog_<host>_0X2010CAFE
value - (update or readback check)
CALLS: ***
ARR2STR [1], Arr2Str [2], BOX_MESSAGE, CONCAT_DIR [1], CONCAT_DIR [2]
CONCAT_DIR [3], FILE_EXIST [2], concat_dir [4], file_append [1], file_append [2]
file_exist [1], file_exist [3], get_host [1], get_host [2], get_logenv [1]
get_logenv [2], rd_tfile [1], rd_tfile [2]
CALLED BY:
wwwidl_server_check
History:
7-May-1999 - S.L.Freeland - for IDL/WWW server health check