'
line += ''+string(orbit,format='(I5.5)')+' | '+ $
''+TimeGet(torbit,/scalar,format='YYYY/MN/DD')+' | '+ $
''+TimeGet(torbit,/scalar,format='DOY' )+' | '+ $
''+TimeGet(torbit,upto=usec,/round,/scalar,format='hh:mm:ss')+' | '
map_found = 0
FOR icam=1,3 DO BEGIN
tmp = 'c'+strcompress(icam,/rem)+mode+'_'+torbit_string
tmp = (where(tmp EQ *camskyname[icam-1]))[0]
CASE tmp NE -1 OF
0: line += ''+button_xmark+' | '
1: BEGIN
line += ''
;line += ''
line += ([button_vmark_sci,button_vmark_eng])[(*camskymode[icam-1])[tmp]]
;line += ''
line += ' | '
map_found++
END
ENDCASE
ENDFOR
iyrmon_id = mode+'_'+strcompress(iyr,/rem)+'_'+strlowcase(mon)
field1 = 'Full-Sky'
IF map_found EQ 0 THEN field1 = '';strjoin(replicate(' ',strlen(field1)))
field2 = 'Difference'
IF map_found EQ 0 OR NOT diff_last THEN field2 = '';strjoin(replicate(' ',strlen(field2)))
field3 = 'Custom'
IF map_found EQ 0 THEN field3 = '';strjoin(replicate(' ',strlen(field3)))
line += ''+field1+' | '+field2+' | '+field3+' | '
line += '
'
boost, content, line
iyr_last = iyr
mon_last = mon
diff_last = map_found GT 0
count += map_found
ENDFOR
destroyvar, content
; Construct index.html file
CASE update OF
0: content_lead_1 = [ $
'' , $
'' , $
'' , $
'']
FOR mon=1,12 DO BEGIN
IF update THEN BEGIN
; In update mode skip in iyr_beg until month_beg is reached
; and brek in iyr_end if month_end is reached
IF iyr EQ iyr_beg AND mon LT month_beg THEN continue
IF iyr EQ iyr_end AND mon GT month_end THEN break
ENDIF
cmon = TimeMonth(mon)
ciyr = strcompress(iyr,/rem)
line = ' '
file = filepath(root=([destination,remote_destination])[is_remote],mode+'_'+ciyr+'_'+strlowcase(cmon)+'.php')
message, /info, 'check '+hide_env(file)
IF is_remote THEN BEGIN
spawn, 'scp -q '+file+' '+destination ;+' 2> /dev/null'
file = filepath(root=destination,GetFileSpec(file,from='name'))
ENDIF
IF (file_search(file))[0] NE '' THEN BEGIN
line += ''+ciyr+' '+strmid(cmon,0,1)+strlowcase(strmid(cmon,1,2))+''
IF is_remote THEN spawn, 'rm -f '+file
ENDIF
line += ' | '
boost, content, line
ENDFOR
boost, content, '
'
ENDFOR
boost, content, ''
content = [ $
content_lead_1 , $
content , $
content_trail ]
file = filepath(root=([destination,remote_destination])[is_remote],'index.html')
message, /info, hide_env(file)
IF is_remote THEN $
file = filepath(root=destination,GetFileSpec(file,from='name'))
openw, /get_lun, iu, file
FOR i=0,n_elements(content)-1 DO printf, iu, content[i]
free_lun, iu
IF is_remote THEN $
spawn, 'scp -q '+file+' '+remote_destination+'; rm -f '+file
RETURN & END