;+ ; NAME: ; forecast_html ; PURPOSE: ; Creates all the html files that drive the IPS forecast site ; (except title_top.html and splash.html) ; CATEGORY: ; WWW: html ; CALLING SEQUENCE: ; forecast_html, root, quick_refresh=quick_refresh, slow_refresh=slow_refresh ; INPUTS: ; dir scalar; type: string ; directory where the html files are stored ; If not specified then html files are created in ; $smei/html/forecast in subdirecteries 'slow' and 'fast'. ; OPTIONAL INPUT PARAMETERS: ; quick_refresh=quick_refresh ; scalar; type: integer; default: 300 ; refresh rate applied to single images (hourly updates) ; slow_refresh=slow_refresh ; scalar; type: integer; default: 300 ; refresh rate applied to movies, aft- and forecast plots ; OUTPUTS: ; (updated html files are stored in 'root') ; CALLS: ; InitVar, CheckDir, TimeGet, TimeSystem, who_am_i, vu_type_insitu, vu_type_skymap ; PROCEDURE: ; So far we have 10 different types of displays. ; Seven of these are directly accessed from leftmenu.html ; The other three are indirectly accessed from the _info files. ; 'label' is used to generate the necessary file names ; 'title' is used as title in each html file. ; ; 'sublabel' and 'subtitle' are 2D array with the first dim ; listing the data types (speed, density, brad and btang) and the ; 2nd dim corresponding to a display type. ; ; Each of the split files fires up a pair of html files, each of which ; display some graphics. These is either a pair of IPS velocity and g-level, ; or a pair of solar wind velocity and density maps. ; ; For all of the individual graphics an html file loading the corresponding ; png or gif is made. For most (but not all) there is an html file loading a mng ; or gif animation. ; MODIFICATION HISTORY: ; SEP-2002, Paul Hick (UCSD/CASS; pphick@ucsd.edu) ; May-2004, Susan Rappoport (UCSD/CASS; srappoport@ucsd.edu) ; Fixed problem with width of left menu (now 250 pixels wide) ; Added link to Solar System Space Weather page. ; Jul-2021, Matthew Bracamontes (UCSD/CASS; mtbracam@ucsd.edu) ; Updated links, STELab -> ISEE ;- ; Creates the file name for the html file that launches an item from ; the list in leftmenu.html. ; ; The file contains the frame definition to split a window into two ; frames one above the other. The lower will be used to display the ; explanation for the display. The upper contains the images. FUNCTION forecast_html_launch, label, extralabel, sublabel @compile_opt.pro ; On error, return to caller RETURN, label+extralabel+sublabel[0]+sublabel[1]+'.html' END ; Creates the file name for the html file containing the information ; for each item in the leftmenu lists. It is loaded by the launch ; file (see above). FUNCTION forecast_html_info, label, extralabel, sublabel @compile_opt.pro ; On error, return to caller RETURN, label+'_info'+sublabel[0]+sublabel[1]+'.html' END ; Creates the file name for the file containing the frame ; definition to split a window into a left and right frame, each ; of which display an image or movie. ; The file is loaded by the launch file (see above). FUNCTION forecast_html_split, label, extralabel, sublabel @compile_opt.pro ; On error, return to caller RETURN, label+extralabel+'_split'+sublabel[0]+sublabel[1]+'.html' END ; Creates the base file name (withouth extension) to load any ; of the individual images. ; It is used in the split files (see above). FUNCTION forecast_html_image, label, extralabel, sublabel @compile_opt.pro ; On error, return to caller RETURN, label+extralabel+sublabel END ; Creates the html code block to create the header for each of the ; lists in leftmenu.html FUNCTION forecast_html_leftmenu_header, title @compile_opt.pro ; On error, return to caller RETURN, ' '+[ $ '
' , $
' ' , $
' | ' , $
'' , $
' ' , $
' ' , $ ' | ' , $
'' , $
' ' , $
' ' , $
' | ' , $
'
' , $
' | ' , $
'