[Previous]
[Next]
NAME:
w256
PURPOSE
To assure an IDL color table with the full 256 colors.
CALLING EXAMPLE
w256
RESULT
IDL will use full 256 colors for the rest of the session.
In order to achieve this the color table of a window is only
correct when the cursor is on a window. The outcome here
is like that of 'Netscape -install'.
RESTRICTIONS
This will only work if done BEFORE any other windows are
opened with a "window" or "wdsef" command. Do it first thing
upon beginning a session.
HISTORY
Written by S.Paswaters, NRL, 1997/10/21
6/ 6/01, nbr - Add header notes.
CALLED BY
MAKE_GIFS, RTMVI [1], UPDATE_MPG, rt, rtpng
[Previous]
[Next]
NAME: w512.pro
PURPOSE: create a 512*512 window
CATEGORY: General tools high level routine
CALLING SEQUENCE: extract_ima2, iin, hin, x1, x2, y1, y2, iout, hout
INPUTS: n Window number
OPTIONAL INPUT PARAMETERS: None
KEYWORD PARAMETERS: None
OUTPUTS: A image Window in the screen
OPTIONAL OUTPUT PARAMETERS: None
COMMON BLOCKS: None
SIDE EFFECTS:
RESTRICTIONS:
PROCEDURE:
MODIFICATION HISTORY: defined by ALL 6/24/93
SCCS variables for IDL use
@(#)extract_ima2.pro 1.0 25/6/93 :LAS
[Previous]
[Next]
W_LAS_EXP_NORM
WIdget interface for LAS_EXP_NORM
CALLS: ***
CHK_DIR [1], CHK_DIR [2], LAS_EXP_EVENT, PICKFILE, XMANAGER, XREGISTERED
las_exp_norm
History:
Original: 26/3/96; SJT
[Previous]
[Next]
W_MK_STDIM
Widget interface for MK_STDIM
Keywords:
group long input Group leader for the heirarchy.
CALLS: ***
STDIM_EVENT, XMANAGER, XREGISTERED, mk_stdim
History:
Original: 26/3/96; SJT
[Previous]
[Next]
W_POLY_DIFFIM
Widget interface for POLY_DIFFIM
CALLS: ***
CW_BSELECTOR2, DIFFIM_EVENT, XMANAGER, XREGISTERED, poly_diffim
History:
Original: 26/3/96; SJT
[Previous]
[Next]
W_STDIM_LIST
A widget interface for MK_STDIM_LIST
CALLS:
[Previous]
[Next]
NAME:
w_vac2air
PURPOSE:
Convert vacuum wavelength to air wavelength
CALLING SEQUENCE:
w_vac2air
INPUTS:
wv - vacuum wavelength (Angstroms)
OPTIONAL INPUTS:
none
KEYWORD PARAMETERS:
none
OUTPUTS:
The value returned is the air wavelength (in Angstroms)
corresponding to the input vacuum wavelength.
OPTIONAL OUTPUTS
none
COMMON BLOCKS:
None
SIDE EFFECTS:
None
RESTRICTIONS:
Results are valid only between 2960 and 13000 Angstroms
PROCEDURE:
This procedure is the same algorithm used by Kurucz, et. al.
"Solar Flux Atlas From 296 to 1300 nm", National Solar
Observatory Atlas No. 1, June 1984.
MODIFICATION HISTORY:
Adapted from a FORTRAN program provided by R. Kurucz via
private communication. Adapted by Paul Reiser July 22, 1997.
[Previous]
[Next]
Project : SOHO - CDS
Name : WAVE2PIX
Purpose : Calculate the CDS detector pixel given a wavelength.
Explanation : Uses dummy transformations to translate a wavelength to a
pixel value for any of the CDS's six spectral regions.
Use : IDL> pixel = wave2pix(spectrum,wavelength [,/limit])
Inputs : spectrum - the spectrum identifier (string). Only the first
and last characters are used to identify the
spectrum so inputs such as NIS1 and N1 are
equivalent. Valid entries are NIS1, NIS2, GIS1,
GIS2, GIS3, GIS4 (and their abbreviations).
wavelength - the wavelength to translate. Can be an array.
Opt. Inputs : None
Outputs : The function value returned is the corresponding pixel.
A value of -1 is returned for an error condition.
Opt. Outputs: None
Keywords : LIMIT - if present an appropriate limiting pixel is returned
for out of range wavelengths, else -1 is returned.
NOLIMIT- If input wavelength is out of range, then return a
value anyway.
SLIT - slit number to cater for slit dependence
REAL - if given the output is returned as a floating point
value
Calls : ***
Bell, DATATYPE [1], DATATYPE [2], DATATYPE [3], LOAD_WAVECAL, TRIM
CALLED BY:
AN_NIMCP, AN_NIMCP_1_2, AN_NIMCP_AVG, CDS_CORR_GRADIENT, CDS_MOSAIC
CDS_SLIT6_BURNIN, DISPLAY_CDS_BURNIN, FIND_CDS_STUDIES, FIX_LINELIST
GHOST_BUSTER, GHOST_MOVE, GHOST_PLOT_ONE, GHOST_PLOT_SAMPLE, GIS_CALIB_HEII
GT_BIMAGE, GT_MIMAGE, GT_VALID, MK_RASTER, QTILT, RD_LINE_LIST, SEL_LINE_EVENT
SHOW_SLIT6, TP_EDIT_TABLE, TP_GWIN_LOGIC, TP_UPDATE_PIX, TP_VDS_AXES
TP_VWIN_LOGIC, UPDATE_DEX
Restrictions: Only dummy transformations at present, to be updated when
calibrations are known.
Side effects: None
Category : Calibration, GDS, VDS, Wavelength
Prev. Hist. : None
Written : C D Pike, RAL, 28-May-1993
Modified : Change of constants in VDS wavelengths CDP 16-Nov-93
Include Limit keyword, CDP, 2-Feb-94
Updated wavelength ranges. CDP, 30-Jan-95
Replaced calls to NINT by ROUND. CDP, 17-Jun-95
Incorporate first in-flight results by BJIB. CDP, 27-Feb-96
Use common for communication of coefficients. CDP, 11-Mar-96
Make NIS quadratic. 23-Jul-96
Add REAL keyword. 3-Sep-96
Version 10, 13-Jan-1998, William Thompson, GSFC
Added keyword nolimit
Version 11, 19-Jan-2000, William Thompson, GSFC
Allow SPECTRUM to be an array
Version : Version 11, 19-Jan-2000
[Previous]
[Next]
PROJECT:
SOHO - SUMER
NAME:
WAVEL()
PURPOSE:
Return Wavlength at Reference Pixel
CATEGORY:
RAW processing
EXPLANATION:
Wavel takes the 4 Bytes from position 76 - 79 of
SUMER binary Image Header and converts them to
float. If n headers are given as input a FLOAT ARRAY
with n elements is returned.
SYNTAX:
Result = wavel()
CALLED BY:
COLLECT_IMAGES, NLINE_DISPLAY
EXAMPLES:
INPUTS:
header - BYTARR(92..) Image Header
OPTIONAL INPUTS:
None.
OUTPUTS:
FLOAT ARRAY(n) with Wavelength Values
OPTIONAL OUTPUTS:
None.
KEYWORDS:
None.
COMMON:
None.
RESTRICTIONS:
None.
SIDE EFFECTS:
None.
HISTORY:
Version 1, October 7, 1996, Dietmar Germerott, MAPE Lindau. Written
CONTACT:
Dietmar Germerott, MAPE Lindau (germerott@linax1.mpae.gwdg.de)
[Previous]
[Next]
Project : SOHO - CDS
Name : WAVESIZE()
Purpose : Return no. of dispersion pixels in a Spectral Window
Explanation : Straightforward.
Use : N_DISPERSION_PIXELS = WAVESIZE(QLDS,WINDOW)
Inputs : QLDS: A "CDS QL data structure"
WINDOW: The number or name of a Spectral Window in the
QLDS.
Opt. Inputs : None.
Outputs : Return value.
Opt. Outputs: None.
Keywords : NOCHECK:Set to avoid call to QLMGR.
Calls : ***
QLMGR, QL_DIMENSIONS, WINDOWNO
CALLED BY:
DSPEXP, DSPWAV
Common : None.
Restrictions: QLDS == CDS QL data structure.
Side effects: None.
Category : CDS, QuickLook
Prev. Hist. : None.
Written : Stein Vidar Hagfors Haugan, October 1993
Modified : SVHH, 21 November - Documentation added.
SVHH, 7-March-1995 - Added call to QL_DIMENSIONS() to
cope with new data formats.
Version : 1.1, 7-March-1995
[Previous]
[Next]
Project : SOHO - LASCO/EIT
Name : WC2P
Purpose :
Category : Widgets
Explanation :
Syntax : wc2p
Examples :
Inputs :
Opt. Inputs :
Outputs :
Opt. Outputs:
Keywords :
CALLS: ***
CHANDLE, CURVEFIT, CW_FIELD, DIST, T_CARTES, T_POLAR, WC2P_EVENT, XMANAGER, XREGISTERED
scan4limb
Common :
Restrictions:
Side effects: None.
History : 26-sep-1995,Borut Podlipnik, MPAe,Written
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
Name: wc_where
Purpose: return subscripts of input array where a pattern match is
found - allows use of multiple wild card characters (*)
Input Paramters:
inarray - string array to search
inpattern - string (scaler) to match - may include wild cards (*)
Output:
function returns subscripts of inarray where match found (-1 if none)
mcount - number of matches found
Calling Examples:
ss=wc_where(files_arr,'*9201*',mcount)
ss=wc_where(files_arr,'sfr*1230*')
ss=wc_where(routine_arr,'*time*.pro',mcount)
CALLS: ***
STR2ARR [1], STR2ARR [2], STR_LASTPOS [1], str_lastpos [2], strrempat [1]
strrempat [2], wc_whereq [1], wc_whereq [2]
CALLED BY:
FLARE_F_NAME, FLARE_XRAY_MODEL, GE_WINDOW [1], HESSI_MODEL_COUNTS
NEW_FIG4_INPUTS, PLOT_GD, PLOT_MAP, SPECTRA2FITS, SPEX_DATA_GENX [1]
SPEX_DATA_GENX [2], STRUCTURE MANAGER CLASS, add_kw2hdr, cdrom_files [2]
check_log [1], check_log [2], ctraj2orbit, disp_sci5k, doc_head [1], doc_head [2]
doc_head [3], eit_files, file_list [1], file_list [2], find_fits_ext
fl_suntoday [1], fl_suntoday [2], fl_suntoday [3], get_history, get_hk_mnem
get_ksc_holiday, get_logenv [1], get_logenv [2], gt_tagval [1], gt_tagval [2]
help_prefix, html_get_files, lastgbo, mk_pix [1], mk_pix [2], mk_spd, mon_sci5k
msok_copy_jpg, msok_poi_copy [1], msok_poi_copy [2], new_disp_sci5k [1]
new_disp_sci5k [2], nobeyama_update, oneline_event [1], oneline_event [2]
password_info, path_sw [1], path_sw [2], path_ucon, pathfix, plotman, printx [1]
printx [2], rd_orbit_event, rd_tr_seq_head, rd_week_file [1], rd_week_file [2]
rd_week_file [3], rd_week_file [4], redo_disploi, redo_mon_sci5k, reg_check
reltime [1], reltime [2], save_idl_routines, search [1], search [2], show_pix [1]
show_pix [2], show_pix_event [1], show_pix_event [2], show_pix_event [3]
ssw_install [1], ssw_install [2], ssw_packages, ssw_path, ssw_strfind
ssw_swmap_info, sswloc, str2html [1], str2html [2], str2html [3], str_tagval [1]
str_tagval [2], strwhere, sun_today [1], sun_today [2], sun_today [3], sxt2file
sxt_etemp, tbb_info [1], tbb_info [2], timeline, topsdb [1], topsdb [2], tr_lut_conv
ucon_path, uvf_interval, wc_where_arr, web_seq, weekid [2], xread_hist
xset_chain [1], xset_chain [2], xso_butevents [1], xso_butevents [2], xsw2tree
xsw2tree_event, xswlist [2], ydb_exist [2]
History:
slf, 8-Jan-1993
slf,13-Jan-1993 - patched last segment logic
slf,15-Jan-1993 - added case_ignore keyword
slf,12-apr-1993 - dont clobber pattern via case_ignore
slf,17-feb-1994 - fix bug in last segment logic
slf,30-jun-1994 - call wc_whereq if pattern has embedded "?" character
[Previous]
[Next]
Name: wc_whereq
Purpose: find strarry elements matching pattern w/imbeded question marks
CALLED BY:
wc_where [1], wc_where [2]
History:
30-jun-1995 (SLF)
[Previous]
[Next]
Project : SOHO - LASCO/EIT
Name : WCALCL
Purpose :
Category : Widgets
Explanation :
Syntax : wcalcl
Examples :
Inputs :
Opt. Inputs :
Outputs :
Opt. Outputs :
Keywords :
CALLS: ***
DMEMORY, WCALCL_EVENT, WLOAD, WMESSAGE [1], WMESSAGE [2], XMANAGER, XPDMENU
XREGISTERED, XVALIDL, ghandle, imcalc, load_message
Common :
Restrictions : None.
Side effects : None.
History : 12-jun-1994,Borut Podlipnik, MPAe, Written
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
Project : SOHO - LASCO/EIT
Name : WCALCNEW
Purpose :
Category : Widgets
Explanation :
Syntax : wcalcnew
Examples :
Inputs :
Opt. Inputs :
Outputs :
Opt. Outputs:
Keywords :
CALLS: ***
CW_BGROUP, CW_PDMENU, HEADFITS [1], HEADFITS [2], HEADFITS [3], HEAD_INFO, RSTRPOS
WCALCNEW_EVENT, WHEADINFO, WMESSAGE [1], WMESSAGE [2], WRT_ASC, XMANAGER
XREGISTERED, XVAREDIT, load_message
Common :
Restrictions: None.
Side effects: None.
History : 12-jun-1994,Borut Podlipnik, MPAe,Written
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
Project : SOHO - LASCO/EIT
Name : WCURRENT
Purpose :
Category : Widgets
Explanation :
Syntax : wcurrent
Examples :
Inputs :
Opt. Inputs :
Outputs :
Opt. Outputs :
Keywords :
CALLS: ***
HDRSINFO1, WCURRENT_EVENT, WMESSAGE [1], WMESSAGE [2], XMANAGER, XREGISTERED
XVALIDL, ghandle, tvscl_image
Common :
Restrictions : None.
Side effects : None.
History : 12-jun-1994,Borut Podlipnik, MPAe, Written
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
Project : SOHO - LASCO/EIT
Name : WCURSOR
Purpose : Widgets program for reading current cursor position from ;window.
Category : Widgets
Explanation :
Syntax : wcursor,image,x,y,counts,win_id=win_id
Examples :
Inputs : image
Opt. Inputs :
x variable for cursor position
y variable for cursor position
counts variable
Outputs :
current x and y position if set as optional input parameter
counts value at x,y if set as optional input parameter.
Opt. Outputs :
current x position
current y position
counts = image(x,y)
Keywords : win_id, if not set then current window will be read and set.
Common :
Restrictions : No check for not valid windows yet !
Side effects : None.
History :1-dec-1994, Borut Podlipnik, MPAe, Written
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
NAME:
WDEF
PURPOSE:
Makes a window quick and easy.
Allocate free window# if not specified to avoid window collisions
CALLING SEQUENCE:
wdef [,ws,xs,ys,retain=retain]
wdef, ws [,/uleft,/uright,/lleft,lright] ; specify quadrant postion
; ws is allocated and
; OUTPUT if not defined
wdef,dummy,xs,ys,/zbuffer ; zbuffer, not x-windows
wdef,dummy,image=image ; size window to fit image
INPUTS:
ws = window number, default=0 (ws is output if not defined on input)
(if defined, ws must be in range (0-31)
xs = xsize, defaults to 512
ys = ysize, defaults to xs
OUTPUTS:
ws - returns window number allocated if not defined on input
KEYWORD PARAMETERS:
uright - if set, position window in upper right
uleft - if set, position window in upper left
lright - if set, position window in lower right
lleft - if set, position window in lower left
zbuffer - if set, set device to z buffer first
xwindow - if set, set device to x first
already - If set, see if the active window is the proper size
and if so, do not call "window" again
image - if set, determine xsize and ysize from image dimensions
CALLED BY:
AUTO_ALIGN_IMAGES, CH_BOUNDARY [2], DIFF_SCALE, DRLB Version 30
ECLIPSE_PLOTTER, FAXABLE_SFD, FIRST_LIGHT [1], FIRST_LIGHT [2], HXT_4CHPLOT
LATEST_SFDS_GIF, MK_SOHO_MAP_EARTH, NAME [3], NAR2COORD, NORH_GRID [1]
NORH_GRID [2], ORB_EXTRAP, PLOT_CLON, PLOT_HELIO [1], PLOT_HELIO [2]
PLOT_RESULTS [2], POLAR_GRID, QUICKATT [1], QUICKATT [2], QUICKDARK [2]
QUICKDRIFT [1], QUICKDRIFT [2], QUICKSTRAY [2], READ_TRACE_FOV, Ruler
SXT_EXPOSURE_MAP, SXT_GRID [1], SXT_GRID [2], SXT_GRID [3], SXT_QLOOK
SYNOP_3_ROTS, TERM_QUICK, TERM_REVIEW, TERM_REVIEW_GIF, TV_SYNOP, Z2GIF, align_label
azi_calc, azimuth_avg, boundary, chk_pointing, cube_edit, daily_forecast [2]
data2files, disp1focus [2], disp1focus_flt, disp_focus, disp_sci5k, eit_fulldisk
eit_getobs, eit_proton_summary, eitoversxt, event_movie [1], event_movie [2]
exp_scale min_exp max_exp [1], first_bcs, fit_bsc_plot, fl_goesplot [1]
fl_goesplot [2], fl_goesplot [3], fl_summary [1], fl_summary [2], fl_summary [3]
fl_suntoday [1], fl_suntoday [2], fl_suntoday [3], font_size [1], font_size [2]
fudge_scale, gbo_obs_coord, get_linearity sig e_min e_max, get_utevent [1]
get_utevent [2], go_teem [1], go_teem [2], go_teem_nn, go_teem_plots, go_teem_t
goes_plot [1], goes_plot [2], goes_plot [3], goes_plot [4], goes_plot [5]
help_coal, help_offsets, help_roll, histscale [1], histscale [2], image2movie
lasteit, lastsfd [1], lastsfd [2], lastspd, lcur_image, linecolors [1]
linecolors [2], lsplot, ltc, lwa_plot_arc, map_bsc, mdidust, merc_lwa, merc_pix
mk_sun_mosaic, mkthumb, mplot_nar, mtv pro, new_win, plot2offset [1]
plot2offset [2], plot_ace, plot_ar_pfi, plot_arc [1], plot_arc [2], plot_arc [3]
plot_door_open, plot_goesp, plot_gsn, plot_nar [1], plot_nar [2], plot_sxg
quick_plottrav, radial_avg, read_ltc file, res_freq, rest_low8_cube [1]
rest_low8_cube [2], rest_low8_ffi, sacpeak_image, scat_avg, sector_avg
show_contacts, show_pix [1], show_pix [2], show_pix_event [1]
show_pix_event [2], show_pix_event [3], soon_cadence, soon_catstat
sooncat_cadence, ssc_scan2, ssw_build_trace, ssw_find_transit
ssw_findstuff2html, ssw_fov_context, ssw_limit_colors, ssw_unspike_cube
sun_today [1], sun_today [2], sun_today [3], sxt_composite [1]
sxt_composite [2], sxt_composite [3], sxt_defroi, sxt_dstreek
sxt_mk3 mk3 index data [1], sxt_mk3 mk3 index data [2], sxt_summary, sxt_xsaa
term_score2, trace_cosmic2hist_accum, trace_euv_resp [1], trace_movie_context
trace_unspike_time, tv2 [1], tv2 [2], tv2_msu, video_test, video_title, wconroi
wdefroi [1], wdefroi [2], write_trace, xanal_emi, xcheckip, xdisp_fits, xdisp_sci5k
xdisp_trace [1], xdisp_trace2, xdisp_trace3, xgen_widget, xhkplot, xsxt_prep_event
yopos [1], yopos [2]
MODIFICATION HISTORY:
First ever program written by LWA with Jim Lemen's help.
Made public April 1992
23-Sep-92 (MDM) - Modified to not use RETAIN=2 for NCD X-terminals
16-feb-93 (slf) - allocate from free window pools to avoid window
collisions from multiple routines. Add retain
keywrd. Added quadrant position keywords
7-apr-93 (slf) - add pixmap keyword, check range of ws if defined
24-May-93 (MDM) - Patch so that it would work with SUN-View
3-sep-93 (slf) - inhibit device if batch mode
4-sep-93 (slf) - Added Z-buffer support
8-sep-93 (slf) - add title keyword
5-Apr-94 (MDM) - added /already switch
14-Jul-94 (SLF) - added IMAGE keyword (size to image), quiet zbuff
6-Dec-94 (SLF) - documentation
[Previous]
[Next]
Name: wdefroi
Purpose: event driver for wdefroi.
CALLS: ***
DEFROI [1], DEFROI [2], UTPLOT [1], UTPLOT [2], UTPLOT [3], UTPLOT [4], UTPLOT [5]
UTPLOT [6], WCONROI2, WDEF [1], WDEF [2], WDEFROI_EVENT, XLOADCT [1], XLOADCT [2]
XLOADCT [3], wdefbox [1], wdefbox [2]
CALLED BY:
TRACE_CUBE_POINTING, TRACE_MDI_ALIGN, azi_calc, azimuth_avg, go_teem [1]
go_teem [2], go_teem_t, radial_avg, scat_avg, sector_avg, setpts_roi
History: written July-93, gal
last mods 11-Aug-93
change reset from tv to tvscl, 24-Oct. 93
changed select tv to tvscl, 25-Oct. 93
updated call to wconroi2, 26-Oct-93, gal
updated call to wconroi2, for wherefill switch, 31-May-94,
gal.
[Previous]
[Next]
Project : SOHO - LASCO
Name : WDMEMORY
Purpose :
Category :
Explanation :
Syntax :
Examples :
Inputs : None
Opt. Inputs : None
Outputs : None
Opt. Outputs: None
Keywords : None
CALLS: ***
WDMEMORY_EVENT, XMANAGER, XREGISTERED
Common :
Restrictions:
Side effects: Not known
History : Version 1, 02-Sep-1995, B Podlipnik. Written
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
Project : SOHO - LASCO
Name : WDMEMORY
Purpose :
Category :
Explanation :
Syntax :
Examples :
Inputs : None
Opt. Inputs : None
Outputs : None
Opt. Outputs: None
Keywords : None
Common :
Restrictions:
Side effects: Not known
History : Version 1, 02-Sep-1995, B Podlipnik. Written
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
NAME:
week2ex
PURPOSE:
Given a year and a week #, return the date of the first
day in that week.
CALLING SEQUENCE:
result = week2ex(year,week)
INPUT:
year scalar or vector
week scalar or vector
OUTPUT:
tarr - time in notation [hh,mm,ss,msec,dd,mm,yy]
CALLS: ***
anytim2ex [1], anytim2ex [2], anytim2ints [1], anytim2ints [2], ex2week [1]
ex2week [2]
CALLED BY:
DSN_FINAL, MK_ORB_WEEK, anytim2weekid [1], anytim2weekid [2], anytim2weekinfo
fmt_rasm, mk_evn [1], mk_evn [2], mk_fem_aoslos [1], mk_fem_aoslos [2], mk_gx
mk_sdmi, mk_week_file [1], mk_week_file [2], rd_gxd [1], rd_gxd [2], rd_gxd [3]
term_times, weekid2ex [1], weekid2ex [2], weekid2ex [3]
HISTORY:
Written 1-Mar-92 by M.Morrison
Modified 14-may-92, J. Lemen, Extended to allow vector input
7-Jun-92 (MDM) - Removed call to make_str - added call to anytim2ints
[Previous]
[Next]
NAME:
weekid2ex
PURPOSE:
Convert Week number to external time
CALLING SEQUENCE:
Time_ex = weekid2ex('94_04a') ; Time range of week 4 of 1994
Time_ex = weekid2ex(4) ; Week 4 of current year
Time_ex = weekid2ex(4,year=93) ; Week 4 of 1993
Time_ex = weekid2ex('94_04a', t1, t2 ) ; t1/t2 = first/last day of week
Time_ex = weekid2ex('94_04a', t1, t2, ndays )
INPUT:
week_id = Yohkoh Week ID (string) - may be a vector
= or week number (integer)
OPTIONAL OUTPUTS:
t1, t2 = First/Last day of specified week(s) (string-type)
ndays = Number of days in the week
OPTIONAL KEYWORD INPUTS:
year = Year number in case week_id is an integer
OPTIONAL KEYWORD OUTPUTS:
week_id_fmt = String version of week ID
CALLS: ***
anytim2ex [1], anytim2ex [2], anytim2ints [1], anytim2ints [2]
anytim2weekid [1], anytim2weekid [2], week2ex [1], week2ex [2]
CALLED BY:
mk_sdm, pr_week2tim [1], pr_week2tim [2]
PROCEDURE:
Calls anytime2ex, ex2week, week2ex
Short weeks (first and last week of the year) are flagged with a "*".
MODIFICATION HISTORY:
22-jan-94, J. R. Lemen, Written
[Previous]
[Next]
Project : SOHO - CDS
Name : WEOF
Purpose : Emulates the VMS WEOF routine on UNIX machines.
Explanation : Emulates the VMS WEOF routine on UNIX machines.
*** Unix only ***
Use : WEOF, UNIT
Inputs : UNIT = Tape unit number. Tape drives are selected via the UNIX
environment variables "MT1", "MT2", etc. The desired
tape drive is thus specified by numbers, as in VMS.
Must be from 0 to 9.
Opt. Inputs : None.
Outputs : None.
Opt. Outputs: None.
Keywords : None.
Calls : ***
CHECK_TAPE_DRV [1], CHECK_TAPE_DRV [2]
CALLED BY:
FITSTAPE, TCOPY, vmscopytape
Common : None.
Restrictions: The environment variable "MTn", where n corresponds to the
variable UNIT, must be defined. E.g.,
setenv MT0 /dev/nrst0
Requires IDL v3.1 or later.
Side effects: The device file is opened.
Category : Utilities, I/O, Tape.
Prev. Hist. : VERSION 1, R. W. Thompson 11/30/89
William Thompson, Apr 1991, rewrote to better emulate VMS
version.
Written : R. W. Thompson, GSFC/IUE, 30 November 1989.
Modified : Version 1, William Thompson, GSFC, 21 December 1993.
Rewrote to use IOCTL.
Version : Version 1, 21 December 1993.
[Previous]
[Next]
Program : WFLIMB.PRO
Name :
Purpose :
Category :
Explanation :
Syntax :
CALLED BY:
scan4limb
Examples :
Inputs : None
Opt. Inputs : None
Outputs : None
Opt. Outputs: None
Keywords : None
CALLS: ***
CIR_3PNT, DIST, GAMMA_CT, SXPAR [1], SXPAR [2], SXPAR [3], WFLIMB_EVENT, XMANAGER, ZOOM
zoom_it
Common :
Restrictions:
Side effects: Not known
History : Version 1, 02-Sep-1995, B Podlipnik. Written
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
Project : SOHO - CDS
Name : WHAT_CDHS_STUDY
Purpose : Lists last few CDHS study IDs
Explanation : Searched CDHS data base and collects latest few
series IDs loaded and translates to ground study
names.
Use : IDL> what_cdhs_study
Inputs : None
Opt. Inputs : None
Outputs : None
Opt. Outputs: None
Keywords : HARDCOPY - sends list to printer
Calls : ***
DBCLOSE [1], DBCLOSE [2], DBCLOSE [3], DBOPEN [1], DBOPEN [2], DBOPEN [3]
DB_INFO [1], DB_INFO [2], DB_INFO [3], DEC2HEX, GET_CDHS_SERIES, GET_STUDY
PRINT_STR, TRIM
Common : None
Restrictions: None
Side effects: None
Category : OPS, commanding
Prev. Hist. : None
Written : C D Pike, RAL,
Modified :
Version : Version 1, 15-May-98
[Previous]
[Next]
Project : SOHO - CDS
Name : WHAT_USES
Purpose : Informs of entries in planning databases
Explanation : Given one of a number of selection criteria, this routine
reports on which studies or rasters perform an observation
with a parameter matching the search value. Then use the
show_xxx routines for more detailed information.
Use : IDL> what_uses [+ keywords]
eg
what_uses,ras=10 --> list of studies using raster 10
what_uses,ll='Synoptic Line Selection' --> returns
raster ID using
that line list
Inputs : None
Opt. Inputs : None
Outputs : Info is printed to screen
Opt. Outputs: None
Keywords : RASTER - specify a raster ID to retrieve which studies use
that raster.
VARIATION - used in conjunction with raster.
MLOC - specify to retrieve which rasters use that number
of mirror locations
SLOC - specify to retrieve which rasters use that number
of slit locations
EXPTIME - specify to retrieve which rasters use this
exposure time
ACRONYM - specify which study has this 'acronym'
DW_ID - specify which rasters/varns use this datawin ID
LL_ID - specify which rasters/varns use this line list ID
LLDESC - several formats
--> '?' will return numbered list of line list
descriptions
--> '#nn' will return rasters using line list desc
number nn in the above list.
--> plain string will try to match that as a line list
description
Calls : ***
DATATYPE [1], DATATYPE [2], DATATYPE [3], DBCLOSE [1], DBCLOSE [2], DBCLOSE [3]
DBEXT [1], DBEXT [2], DBEXT [3], DBEXT [4], DBFIND [1], DBFIND [2], DBFIND [3]
DBOPEN [1], DBOPEN [2], DBOPEN [3], FMT_VECT, LIST_LINELIST, PRINT_STR, TRIM
Common : None
Restrictions: None
Side effects: None
Category : Databases, planning
Prev. Hist. : None
Written : C D Pike, RAL, 1-Dec-95
Modified : Add raster variation. CDP, 19-Dec-95
Give study variation on 'acronym'. CDP, 16-Jan-96
Add search for DW and LL IDs. CDP, 20-Feb-96
Add more help when acronym is ambiguous. CDP, 28-Feb-96
Version : Version 5, 28-Feb-96
[Previous]
[Next]
PROJET:
SOHO - LASCO
NAME:
WHERE2D
PURPOSE:
Performs the same job as the "where" function but for a 2D array
CALLED BY:
FUZZY_IMAGE, GET_MISS_BLOCKS
PROCEDURE:
Performs the same job as the "where" function, for a 2-dimentional
array, but returns explicits a list of 2-D (x and y) subscripts,
instead of 1-D subscripts for "where"
Afterward, a 2-D subscripts array can be subscripted using the
resulting subscript array w2d from where2d, with a sequence such as :
arr( w2d(0,*), w2d(1,*) ) (instead of arr(w) with the where function)
CATEGORY:
Detection
CALLING SEQUENCE:
index2d = where2d(array [, count] )
INPUTS:
array An array (or more generally an array expression)
where the function will determine the nonzero elements
OUTPUTS:
The result is the list of 2-D subscripts of the nonzero elements, i.e.:
_ if there are nonzero elements : a 2 x n array
the first and second columns contains respectively the x and y
subscripts of the non-zero elements of the array
_ if there are NO nonzero elements, the result is the scalar -1
Optional OUTPUTS:
count the number of nonzero elements found by where2d
(=number of rows of the output list, or 0 if empty)
MODIFICATION HISTORY:
v1.0 written by J.More, September 1996
[Previous]
[Next]
NAME:
where_arr
PURPOSE:
Return the subscripts where a given set of values equal the values
in the input array. It is basically an expansion of IDL where in
which the condition to match can be an array.
CALLING SEQUENCE:
ss = where(a, b)
ss = where(a, b, count)
ss = where(a, b, count, /notequal) - invert sense
INPUT:
full_arr- The complete array which is to be searched
sub_arr - The subset array of the values to search "full_arr" of
KEYWORD PARAMETERS:
notequal - if set, return indices where values are NOTEQUAL
OUTPUT:
returns the subscripts where "sub_arr" occurrs in "full_arr". If
there are no matches, return a -1.
OPTIONAL OUTPUT:
count - The number of matches
CALLS: ***
rem_elem [1], rem_elem [2]
CALLED BY:
BSC_FIELD, CLEAN_GOES, EIT_CATRD [1], FLARE_XRAY_MODEL, GE_WINDOW [1], GFITS_R
HESSI CALIBRATED EVENTLIST CLASS DEFINITION [3], HESSI_ID2INDEX
HSI_EVENTLIST_SELECT_BY_TIME [1], HSI_EVENTLIST_TO_SPECTROGRAM [2]
HSI_FILEDB_COMBINE, HSI_LIVETIME_SIM, HSI_SPECTROGRAMCHAN_OVERLAP_FIX
HSI_SPECTROGRAM_DECIM_CORRECT, HSI_SPECTROGRAM_DECIM_TABLE
HSI_SPECTRUM__DEFINE, HSI_SRM__DEFINE, HSI_TIME_RESET, KILL_INDEX [1]
KILL_INDEX [2], MERGE_BATSE, PRINT_GEV, PRINT_NAR, PULSE_SPREAD, RM_FEATURE, SEL_AR
SPECTROGRAM CLASS DEFINITION, SPECTRUM CLASS DEFINITION, SPEX_FIT__DEFINE
SPEX_GEN__DEFINE, SXT_QLOOK, ch_ss, check_oldprocess [1], check_oldprocess [2]
check_oldprocess [3], check_oldprocess [4], check_ql_after_lz, db_gbo
get1hk_info [1], get1hk_info [2], get_fits_extno, get_info [1], get_info [2]
hsi_format_flare, hsi_get_flare_flags, hsi_mult_flare_list_inp
hsi_pak2decimation_settings, hsi_qlook_image, hsi_qlook_spectrum
hsi_sctime_type, hsi_spectrogramACCBIN [2], hsi_spectrogram__define [1]
hsi_spectrogram__define [2], hsi_spectrogram__define [3]
hsi_spectrogram__get_obs [1], hsi_spectrogram__livetime [1], hsi_ui_qlimage
ihy_db, mk_gx, mk_pnt, mk_trace_i1, mk_week_file [1], mk_week_file [2], mk_ydbtab
mreadfits, nts_copy [1], nts_copy [2], plotman, pr_visible, quick_hkplot [1]
quick_hkplot [2], rd_hist_dbase [1], rd_hist_dbase [2], rd_rdb [1], rd_rdb [2]
rd_selsisi_dir, rd_ydbtap, read_trace, split_colortab, ssw_addmm_gen
ssw_upgrade [1], ssw_upgrade [2], ssw_upgrade_backup, sswdb_upgrade, str_subset
struct_subset, temp_atten_correct, therm_plot, timeline, topsdb [1], topsdb [2]
tr_decode_head [1], tr_decode_head [2], tr_lut_conv, track_proc [1]
track_proc [2], ucon_path, wc_where_arr, web_seq, xcheckip, xdisp_fits, xlinflx
xset_chain [1], xset_chain [2], ydb_install [1], ydb_install [2]
HISTORY:
Written 30-Apr-91 by M.Morrison
1-Jul-94 (SLF) add NOTEQUAL keyword
[Previous]
[Next]
Name: where_change
Purpose: return subscripts of vector where (d<vector>/dx > magnitude
Input Parameters:
vector - vector to check
magnitude - size of change to flag
Keyword Parameters:
step - if set, only flag single step changes > magnitude
(default includes gradual changes)
CALLS: ***
deriv_arr [1], deriv_arr [2], tbeep [1], tbeep [2], tbeep [3]
History:
15-mar-1995 (SLF) - simplify pointing seperation code
[Previous]
[Next]
Project : SOHO - CDS
Name : WHERE_NEGZERO()
Purpose : Finds positions of IEEE -0.0 values.
Category : Class4, OS
Explanation : Finds the positions of all values within an array that
correspond to the IEEE value -0.0, as determined from the bit
pattern. The VMS operating system has trouble coping with
these values. If using any other operating system, then no
action is performed.
Syntax : Result = WHERE_NEGZERO( ARRAY [, COUNT ] )
CALLED BY:
FXBREAD [1], FXBREAD [2], FXBREAD [3]
Examples :
Inputs : ARRAY = Array to test against the IEEE -0.0 value. Must be
of either floating point or double-precision.
Opt. Inputs : None.
Outputs : The result of the function is the indices of all values of
ARRAY corresponding to the IEEE -0.0 value, similar to the IDL
WHERE function.
Opt. Outputs: COUNT = Number of values found corresponding to IEEE -0.0.
Keywords : QUIET = If set, then warning messages are not printed out.
Calls : ***
OS_FAMILY
Common : None.
Restrictions: ARRAY must be of type float or double-precision.
Side effects: If no -0.0 values are found, or if ARRAY is not of type float,
or double precision, or if the operating system is something
other than VMS, then -1 is returned, and COUNT is set to 0.
Prev. Hist. : None.
History : Version 1, 31-Jan-1997, William Thompson, GSFC
Contact : WTHOMPSON
[Previous]
[Next]
Name: where_pattern
Purpose: find byte pattern in byte array
(ex: find repeated pattern in unformatted files)
Input Parameters:
inarray - byte or string array to search
inpattern - byte or string array to match
Output Parameters:
function returns indicies of match (-1 if no match)
sscnt - number of matches
Keyword Parameters:
print - if set, print WHERE statement used in execute
CALLED BY:
extract_val, ftp_list_since, ip_que_dmpver, mk_orbit [1], mk_orbit [2]
rd_pkt_head [1], rd_pkt_head [2], url_decode
History:
5-Nov-1994 (SLF) - to search for byte pattern in unformatted files
23-Jan-1995 (SLF) - allow non-printing characters (linefeed) in inpattern
CALLS: ***
ARR2STR [1], Arr2Str [2], STR2ARR [1], STR2ARR [2], prstr [1], prstr [2], tbeep [1]
tbeep [2], tbeep [3]
Restrictions:
Size of pattern limited by execute statement length limits
(Length <= 13 in IDL V3.5)
[Previous]
[Next]
Name: where_table
Purpose: identify tables within a text array
CALLS: ***
remtab [1], remtab [2]
CALLED BY:
str2html [1], str2html [2], str2html [3]
History:
29-mar-1995 (slf) - for text formatting
[Previous]
[Next]
Project : SOHO - CDS
Name : WHERE_TAG()
Purpose : Select subscripts of elements in structure array.
Explanation : Searches the input structure for the nominated tag name
and returns the index of those tags whose value is within
the range set or whose value matches that requested.
Use : IDL> w = where_tag(str, TAG_NAME="tag_name", RANGE=[-1,2] )
IDL> w = where_tag(str, TAG_NAME="tag_name", VAL=0 )
IDL> w = where_tag(str, TAG_NAME="tag_name", VAL=[1,2,3,4] )
Inputs : Str - structure array to search.
Opt. Inputs : None
Outputs : Function returns indices found
Nfound = # of occurences found.
Opt. Outputs: None
Keywords : TAG_NAME = string specifying Tag Name
TAG_NUMBER = otherwise give the Tag Number,
RANGE = [min,max] range to search for in Struct,
VALUES = one or array of numbers to match for in Str.
ISELECT = specifies indices to select only part of
structure array, (use it to recycle subscripts
from previous searches).
/NOPRINT = suppress informational messages about nothing
found.
Calls : None
Restrictions: None
Side effects: None
Category : Utilities, Structures
Prev. Hist. :
Written : Written 1990 Frank Varosi STX @ NASA/GSFC
Modified : CDS version C D Pike, RAL, 8-Jun-93
Fixed it to stop printing "Tag <xxx> not found" even when
/noprint given. CDP, 30-Sep-94
Version : Version 2, 30-Sep-94
[Previous]
[Next]
Name: where_title
Purpose: identify titles/headers in text array
Calling Sequence:
ss=where_title(text)
CALLS:
CALLED BY
str2html [1], str2html [2], str2html [3]
[Previous]
[Next]
NAME:
WHERENAN
PURPOSE:
Find the positions of all values within an array that correspond to the
IEEE NaN (not-a-number) special values.
CALLING SEQUENCE:
Result = WHERENAN( ARRAY [, COUNT ] )
INPUT PARAMETERS:
ARRAY = Array to test against the IEEE NaN special values. Must be
of either floating point, double-precision, or complex type.
OUTPUTS:
The result of the function is the indices of all values of ARRAY
corresponding to the IEEE NaN specification, similar to the IDL WHERE
function.
OPTIONAL OUTPUT PARAMETERS:
COUNT = Number of values found corresponding to IEEE NaN.
CALLED BY:
FXBREAD [1], FXBREAD [2], FXBREAD [3], FXBREADM, FXREAD [1], FXREAD [2]
READFITS [1], READFITS [2], READFITS [3], READFITSL
SIDE EFFECTS:
If no NaN values are found, or if ARRAY is not of type float, double
precision, or complex, then -1 is returned, and COUNT is set to 0.
RESTRICTIONS:
ARRAY must be of type float, double-precision, or complex.
PROCEDURE:
The bit patterns of the numbers being tested are compared against the
IEEE NaN standard.
MODIFICATION HISTORY:
William Thompson, Feb. 1992.
William Thompson, Oct. 1992, fixed bug regarding order of bytes on VAX
machines.
[Previous]
[Next]
Project : SOHO - CDS
Name :
WHERENAN()
Purpose :
Finds positions of IEEE NaN values.
Explanation :
Finds the positions of all values within an array that correspond to
the IEEE NaN (not-a-number) special values. The bit patterns of the
numbers being tested are compared against the IEEE NaN standard.
Use :
Result = WHERENAN( ARRAY [, COUNT ] )
Inputs :
ARRAY = Array to test against the IEEE NaN special values. Must be
of either floating point, double-precision, or complex type.
Opt. Inputs :
None.
Outputs :
The result of the function is the indices of all values of ARRAY
corresponding to the IEEE NaN specification, similar to the IDL WHERE
function.
Opt. Outputs:
COUNT = Number of values found corresponding to IEEE NaN.
Keywords :
None.
Calls :
None.
CALLED BY:
FXBREAD [1], FXBREAD [2], FXBREAD [3], FXBREADM, FXREAD [1], FXREAD [2]
READFITS [1], READFITS [2], READFITS [3], READFITSL
Common :
None.
Restrictions:
ARRAY must be of type float, double-precision, or complex.
Side effects:
If no NaN values are found, or if ARRAY is not of type float, double
precision, or complex, then -1 is returned, and COUNT is set to 0.
Category :
Utilities, Operating System.
Prev. Hist. :
William Thompson, Feb. 1992.
William Thompson, Oct. 1992, fixed bug regarding order of bytes on VAX
machines.
Written :
William Thompson, GSFC, February 1992.
Modified :
Version 1, William Thompson, GSFC, 12 April 1993.
Incorporated into CDS library.
Version :
Version 1, 12 April 1993.
[Previous]
[Next]
Project : SOHO - CDS
Name : WHICH_GIS_BAND()
Purpose : Determine which GIS band contains given wavelength.
Explanation : Given the wavelength limits of the GIS bands, determine
which band a particular wavelength falls in.
Use : IDL> n = which_gis_band( wavelength )
Inputs : wavelength - the wavelength to locate in a band
Opt. Inputs : None
Outputs : Function returns a band 1 - 4 or a value of -1 on error.
Opt. Outputs: None
Keywords : None
Calls : ***
Bell, PIX2WAVE
CALLED BY:
DISPLAY_GIS_WIN, GIS_IN_WINDOW, RD_LINE_LIST, SEL_LINE_EVENT, TP_EDIT_TABLE
TP_GWIN_LOGIC, TP_UPDATE_LINES, TP_UPDATE_PIX, UPDATE_DEX
Restrictions: None
Side effects: None
Category : Calibration, GIS.
Prev. Hist. : None
Written : C D Pike, RAL, 10-Jun-1993
Modified : Use pix2wave instead of hardcoded limits. CDP, 4-Apr-95
Version : Version 2, 4-Apr-95
[Previous]
[Next]
Project : SOHO - CDS
Name : WHICH_INST
Purpose : return which instrument DB (CDS or SUMER) is being used
Explanation :
Use : INST=WHICH_INST()
Inputs : None.
Opt. Inputs : None.
Outputs : INST='C' or 'S' depending on which DB is active
Opt. Outputs: None.
Keywords : None.
Calls : None.
CALLED BY:
CHECK_KAP, DEF_INST_PLAN, DEF_STUDY, FIND_KAP_FILE, GET_PLAN_ITIME, LIST_RESOURCE
LIST_TO_DETAIL, MK_PLAN, MK_PLAN_ADD, MK_PLAN_CLONE, MK_PLAN_CUSTOM, MK_PLAN_DUR
MK_PLAN_EXIST, MK_PLAN_LOAD, MK_PLAN_PLOT, MK_PLAN_POINT, MK_PLAN_PRIV
MK_PLAN_READ, MK_PLAN_RECAL, MK_PLAN_UNLOAD, MK_PLAN_WRITE, RD_PLAN, READ_KAP
UPDATE_CAMPAIGN, XCAMP, XCLONE_PLAN, XIAP, XPROGRAM_ADD
Common : None.
Restrictions: None.
Side effects: None.
Category : Planning, Database.
Prev. Hist. : None.
Written : Dominic Zarro (ARC), 1 May 1995
[Previous]
[Next]
PROJECT:
SOHO - CDS/SUMER
NAME:
WHICH_LINE()
PURPOSE:
Return line identification for a given wavelength
CATEGORY:
Utility
SYNTAX:
Result = which_line(wavelength)
INPUTS:
WAVELENGTH - Wavelength, in Angstrom
OPTIONAL INPUTS:
None.
OUTPUTS:
RESULT - Structure containing tags of WAVELENGTH and NAME
OPTIONAL OUTPUTS:
None.
KEYWORDS:
ALTERNATIVE - Structure containing tags of WAVELENGTH and NAME,
alternative line
CALLS: ***
READ_ELVLC, READ_WGFA2, STRPAD, ZION2FILENAME, convertname
CALLED BY:
XSPECT
COMMON:
my_line_stc
RESTRICTIONS:
None.
SIDE EFFECTS:
None.
HISTORY:
Version 1, May 16, 1997, Liyun Wang, NASA/GSFC. Written
CONTACT:
Liyun Wang, NASA/GSFC (Liyun.Wang.1@gsfc.nasa.gov)
[Previous]
[Next]
Project : SOHO - CDS
Name : WHICH_NIS_BAND()
Purpose : Determine which NIS band contains given wavelength.
Explanation : Given the wavelength limits of the NIS bands, determine
which band a particular wavelength falls in.
Use : IDL> n = which_nis_band( wavelength )
Inputs : wavelength - the wavelength to locate in a band
Opt. Inputs : None
Outputs : Function returns a band 1 - 2 or a value of -1 on error.
Opt. Outputs: None
Keywords : None
Calls : ***
Bell, PIX2WAVE
CALLED BY:
RD_LINE_LIST, SEL_LINE_EVENT, TP_EDIT_TABLE, TP_UPDATE_PIX
Restrictions: None
Side effects: None
Category : Calibration, NIS.
Prev. Hist. : None
Written : C D Pike, RAL, 21-Sep-94
Modified : Use pix2wave instead of hardcoded limits. CDP, 4-Apr-95
Version : Version 2, 4-Apr-95
[Previous]
[Next]
Name: which_view
Purpose: Return multi_draw window number corresponding to given
map number - in the case of SXT, this is derived from the
sequence number.
[Previous]
[Next]
Program : WHIST.PRO
Name :
Purpose :
Category :
Explanation :
Syntax :
Examples :
Inputs : None
Opt. Inputs : None
Outputs : None
Opt. Outputs: None
Keywords : None
CALLS: ***
WHIST_EVENT, WLOADH, XMANAGER, XPDMENU, XREGISTERED, XVAREDIT, hist_xy
Common :
Restrictions:
Side effects: Not known
History : Version 1, 02-Sep-1995, B Podlipnik. Written
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
Project : SOHO - LASCO/EIT
Name : WIC
Purpose : widgets display countours
Category : Widget
Explanation : REBIN image and then TVSCL to output device.
Syntax : wic
Examples :
Inputs : from wloadh
Opt. Inputs :
Outputs :
Opt. Outputs:
Keywords :
CALLS: ***
CW_BSELECTOR2, CW_PDMENU, GAMMA_CT, IMG_CONT, LOADCT, WIC_EVENT, WLOAD, WMESSAGE [1]
WMESSAGE [2], XFONT, XMANAGER, XVAREDT, wprint, wsave2
Common : lasco.com
Restrictions: None.
Side effects: None.
History : 21-jan-1993,Borut Podlipnik, MPAe, Written
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
Name:widget_sens
Purpose:select sensitivity of widgets via structure tag numbers
Inputs:
instance - instance_widget containing widget ids
tagnumbers - vector of instance tag numbers to effect
sensitive - vector of widget sensitivities
History, slf (1/91)
[Previous]
[Next]
Project : SOHO - LASCO/EIT
Name : WIMG_INFO1
Purpose :
Category : Widgets
Explanation :
Syntax : wimg_info1
CALLED BY:
WLOADC
Examples :
Inputs :
Opt. Inputs :
Outputs :
Opt. Outputs:
Keywords :
CALLS: ***
CW_BGROUP, CW_PDMENU, DMEMORY, GAMMA_CT, LOADCT, WIMG_INFO1_EVENT, WRITEFITS [1]
WRITEFITS [2], WRT_ASC, WYES_NO, XDISPLAYFILE [1], XDISPLAYFILE [2], XMANAGER
XREGISTERED, XVAREDIT, ghandle, load_message
Common :
Restrictions: None.
Side effects: None.
History : 12-jun-1994,Borut Podlipnik, MPAe,Written
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
Project : SOHO - LASCO/EIT
Name : WIMG_INFO2
Purpose :
Category : Widgets
Explanation :
Syntax : wimg_info2
Examples :
Inputs :
Opt. Inputs :
Outputs :
Opt. Outputs:
Keywords :
CALLS: ***
CW_BGROUP, WIMG_INFO2_EVENT, XDISPLAYFILE [1], XDISPLAYFILE [2], XMANAGER
XREGISTERED, load_message
Common :
Restrictions: None.
Side effects: None.
History : 12-jun-1994,Borut Podlipnik, MPAe,Written
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
Project : SOHO - LASCO/EIT
Name : WIMG_INFO3
Purpose :
Category : Widgets
Explanation :
Syntax : wimg_info3
CALLED BY:
WLISTER, WLOAD
Examples :
Inputs :
Opt. Inputs :
Outputs :
Opt. Outputs:
Keywords :
CALLS: ***
CHK_DIR [1], CHK_DIR [2], CW_BGROUP, CW_PDMENU, DMEMORY, SAVE_GIF, SAVE_IMAGES
SAVE_MOVIE, WIMG_INFO3_EVENT, WMESSAGE [1], WMESSAGE [2], WRT_ASC, WYES_NO, XMANAGER
XREGISTERED, XVALIDL, XVAREDIT, XVAREDT, ghandle, load_message, mpeg_wid, rd_asc
tvscl_image
Common :
Restrictions: None.
Side effects: None.
History : 12-jun-1994,Borut Podlipnik, MPAe,Written
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
Project : SOHO - LASCO/EIT
Name : WIMG_INFO4
Purpose :
Category : Widgets
Explanation :
Syntax : wimg_info4
Examples :
Inputs :
Opt. Inputs :
Outputs :
Opt. Outputs:
Keywords :
CALLS: ***
CHK_DIR [1], CHK_DIR [2], CW_BGROUP, CW_PDMENU, DMEMORY, SAVE_IMAGES
WIMG_INFO4_EVENT, WMESSAGE [1], WMESSAGE [2], WRITEFITS [1], WRITEFITS [2]
WRT_ASC, WYES_NO, XDISPLAYFILE [1], XDISPLAYFILE [2], XMANAGER, XREGISTERED
XVAREDIT, ghandle, load_message
Common :
Restrictions: None.
Side effects: None.
History : 12-jun-1994,Borut Podlipnik, MPAe,Written
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
Project : SOHO - CDS
Name : WIN
Purpose : Switch to Microsoft Windows mode.
Explanation : SETPLOT is called to save and set the system variables.
Use : WIN
Inputs : None.
Opt. Inputs : None.
Outputs : A message is printed to the screen.
Opt. Outputs: None.
Keywords : None.
Calls : ***
SETPLOT [1], SETPLOT [2]
CALLED BY:
angles, azicalc, pr_teem
Common : None. But calls SETPLOT, which uses common block PLOTFILE.
Restrictions: It is best if the routines TEK, REGIS, etc. (i.e. those
routines that use SETPLOT) are used to change the plotting
device.
In general, the SERTS graphics devices routines use the special
system variables !BCOLOR and !ASPECT. These system variables
are defined in the procedure DEVICELIB. It is suggested that
the command DEVICELIB be placed in the user's IDL_STARTUP file.
Side effects: If not the first time this routine is called, then system
variables that affect plotting are reset to previous values.
Category : Utilities, Devices.
Prev. Hist. : None.
Written : William Thompson, GSFC, 15 June 1993.
Modified : Version 1, William Thompson, GSFC, 15 June 1993.
Version : Version 1, 15 June 1993.
[Previous]
[Next]
NAME:
WIN2PS
PURPOSE:
This routine reads the current window and colortable and saves it to
a postscript file in the current directory named win2ps.ps.
CATEGORY:
Utilities. Output.
CALLING SEQUENCE:
WIN2PS
INPUTS:
None.
OUTPUTS:
None.
CALLS: ***
BREAK_FILE [1], BREAK_FILE [2], BREAK_FILE [3], CHECK_PERMISSION, DATATYPE [1]
DATATYPE [2], DATATYPE [3], break_file [4]
CALLED BY:
RTMOVIE, RTMVIPLAY [1], RTMVIPLAY [2], RTMVIPLAYPNG, WRUNMOVIE [2]
SIDE EFFECTS:
Creates a file in the current directory (or /tmp if no write permission)
named win2ps.ps.
MODIFICATION HISTORY:
Written by: S.E. Paswaters October, 1996
Modified: 96/12/12 SEP Scaled image to 256 colors for postscript
00/10/18 RAH Added option to not rescale image, default was to rescale
SCCS variables for IDL use
%W% %H% :NRL Solar Physics
[Previous]
[Next]
Project : SOHO - CDS
Name : WINDOWNO()
Purpose : Return the number of a window within a QL data structure.
Explanation : If the (text) name of a detector data window present in the
QLDS is supplied, the corresponding number (from 1..up)
of the window is returned.
If the number of a window is supplied, the return
value will be the same number, as an integer.
If the name of a detector data window is not found,
or if the supplied number is not between 1 and the
number of windows present, zero will be returned.
Use : window = WINDOWNO(QLDS,WINDOW_ID)
Inputs : QLDS: CDS QuickLook data structure
WINDOW_ID:
Either a text with the name of a detector
data window (corresponding to TTYPEx), or
the number of a window.
Opt. Inputs :
Outputs : Returns the number of the window, or 0 if not a
valid window ID.
Opt. Outputs: None.
Keywords : NOCHECK :
Set to skip QLMGR checking
Use to speed up processing inside QL software
Calls : ***
DATATYPE [1], DATATYPE [2], DATATYPE [3], QLMGR
CALLED BY:
DETDATA, DETDESC, DSPEXP, EXPSLICE, WAVESIZE, WMAX
Common : None.
Restrictions: WINDOW_ID must be scalar.
Side effects: Initiation of QLMGR if not running.
Category : Data_Handling, CDS, QuickLook
Prev. Hist. : Extracted from DETDATA
Written : Stein Vidar Hagfors Haugan, 8 October, 1993
Modified : SVHH, 17 October 1993 -
Added NOCHECK keyword
Version : 1.1
[Previous]
[Next]
Project : SOHO - LASCO/EIT
Name : WINFO_ACTIV
Purpose :
Category : Widgets
Explanation :
Syntax : winfo_activ
Examples :
Inputs :
Opt. Inputs :
Outputs :
Opt. Outputs:
Keywords :
CALLS: ***
CHK_DIR [1], CHK_DIR [2], CW_BGROUP, CW_PDMENU, DMEMORY, GAMMA_CT, LOADCT
WINFO_ACTIV_EVENT, WMESSAGE [1], WMESSAGE [2], WRITEFITS [1], WRITEFITS [2]
WRT_ASC, WYES_NO, XDISPLAYFILE [1], XDISPLAYFILE [2], XMANAGER, XREGISTERED
XVAREDIT, ghandle, load_message
Common :
Restrictions: None.
Side effects: None.
History : 12-jun-1994,Borut Podlipnik, MPAe,Written
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
Project : SOHO - LASCO/EIT
Name : WLINES
Purpose : plot scan lines
Category : Widgets
Explanation :
Syntax : wlines
Examples :
Inputs :
Opt. Inputs :
Outputs :
Opt. Outputs:
Keywords :
CALLS: ***
BOX_CURSOR, CW_BSELECTOR2, CW_PDMENU, PLOT_SCAN, WLINES_EVENT, WLOAD, WMESSAGE [1]
WMESSAGE [2], XFONT, XMANAGER, XREGISTERED, wprint
Common : lasco.com, wload.com, wplot.com
Restrictions: None.
Side effects: None.
History : 21-feb-1996,Borut Podlipnik, MPAe,Written
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
Project : SOHO - LASCO
Name : WLISTER
Purpose : Get a list of selected images.
Category : Widget
Explanation : This widget function will return a string array
with filenames and absolute path of selected images.
Use : IDL>list=wlister()
Examples : IDL>list=wlister()
Inputs : None
Opt. Inputs : None
Outputs : A string array.
Opt. Outputs: None
Keywords : None
CALLS: ***
CHK_DIR [1], CHK_DIR [2], CW_PDMENU, DATATYPE [1], DATATYPE [2], DATATYPE [3]
HDRSINFO, HEADFITS [1], HEADFITS [2], HEADFITS [3], HEAD_INFO, LOAD_LASCO, PATH_FILE
PF_SEP, PICKFILE, PICKFILES, RSTRPOS, SET_DELIMITER, UNDEFINE, WDEFAULT, WDEFLOC
WHDRINFO, WIMG_INFO3, WLISTER_EVENT, XDISPLAYFILE [1], XDISPLAYFILE [2], XMANAGER
XREGISTERED, YYMMDD, load_message, rd_asc
Common : chandle.com, wload.com
Restrictions: Requires specification of enviroment variables
defined in file: instrument.def
level_05 and level_1 must be in same directory
Side effects: Not known
History : ; Version 2.5, 29-Sep-1997, bp
15 Dec 1998 N Rich Changed default source to LZ_IMG
10 Feb 1999 A. Vourlidas, removed MODAL keyword from
XMANAGER call to comply with IDL5.2
03 Jan 2000 D. Wang Y2K date fix
07 Jan 2000 DAB Another Y2K date fix
02 Mar 2001,NBR Do not search LZ directory for available dates; add
informational messages
19 Feb 2002, DAB - Quickpath Directory droplist fixed
28 Jan 2003, NBR - Change findfile path in module FIND; add /VERBOSE
1 Dec 2005, NBR - Add 2006-2009 to year array
19 Oct 2006, NBR - Change IP2 to handle level_1
25 Oct 2006, Karl B -- minor bug fix on line #1189
Contact : BP, borut@lasco1.mpae.gwdg.de
Nathan Rich, nathan.rich@nrl.navy.mil
10/25/06 @(#)wlister.pro 1.7 LASCO NRL IDL LIBRARY
[Previous]
[Next]
Project : SOHO - LASCO
Name : WLOAD
Purpose : Load image(s) in FITS format.
Category : SU:IMAGE_TOOL ?
Explanation : This widget loader tool allows searching images
in your archiv and at the end load it.
Syntax : IDL>wload
CALLED BY:
WCALCL, WIC, WLINES, WPLOT, WPLOT1, WSUNPROFILE
Examples : IDL>wload
Inputs : None
Opt. Inputs : None
Outputs : None
Opt. Outputs: None
Keywords : None
CALLS: ***
CHK_DIR [1], CHK_DIR [2], CW_PDMENU, DATATYPE [1], DATATYPE [2], DATATYPE [3]
HDRSINFO, HEADFITS [1], HEADFITS [2], HEADFITS [3], HEAD_INFO, LOAD_LASCO, PATH_FILE
PF_SEP, PICKFILE, PICKFILES, RSTRPOS, SET_DELIMITER, UNDEFINE, WDEFAULT, WDEFLOC
WHDRINFO, WHDRINFO1, WIMG_INFO3, WLOAD_EVENT, XDISPLAYFILE [1], XDISPLAYFILE [2]
XMANAGER, XREGISTERED, YYMMDD, load_message, rd_asc
Common : dirs_files, lasco.com, wload.com
Restrictions: Requires specification of enviroment variables
defined in file: instrument.def
Side effects: Not known
History : Version 2.0, 28-Sep-1996, B Podlipnik. Written
Version 2.1, 10-Oct-1996, bp
change: replace CW_BSELECTOR with WIDGET_DROPLIST
Version 2.2, 10-Oct-1996, bp
add: SET_DROPLIST_SELECT to widget ID w_d_e, w_d_b
Version 2.3, 29-Oct-1996, bp
change: bug fixed in loading from catalog
Jan-07-2000 bp removed MODAL keyword
Y2K date fixed
Jan 11, 2005 -- Updates (from J.Tappin) to add 2005 to date list
-- bug fix -- remove /utc keyword from systime() call
- Karl B, NRL
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
Project : SOHO - LASCO
Name : WLOADC
Purpose : Load image(s) in FITS format.
Category : SU:IMAGE_TOOL ?
Explanation : This widget loader tool allows searching images
in your archiv and at the end load it.
Syntax : IDL>wloadc
Examples : IDL>wloadc
Inputs : None
Opt. Inputs : None
Outputs : None
Opt. Outputs: None
Keywords : None
CALLS: ***
CHANDLE, CHK_DIR [1], CHK_DIR [2], CW_BGROUP, CW_PDMENU, PICKFILE, READFITS [1]
READFITS [2], READFITS [3], RSTRPOS, STR2ARR [1], STR2ARR [2], UNDEFINE, WIMG_INFO1
WLOADC_EVENT, WOBSDATE, WRITEFITS [1], WRITEFITS [2], WSIZE, XDISPLAYFILE [1]
XDISPLAYFILE [2], XMANAGER, XREGISTERED, XVAREDIT, ghandle, ld_inst_def
load_message, rd_asc, setup, wsave
Common : dirs_files, lasco.com, wload.com
Restrictions: Requires specification of enviroment variables
defined in file: instrument.def
Side effects: Not known
History : Version 1, 02-Sep-1995, B Podlipnik. Written
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
Project : SOHO - LASCO/EIT
Name : WLOADINFO
Purpose :
Category : Widgets
Explanation :
Syntax : wloadinfo
Examples :
Inputs :
Opt. Inputs :
Outputs :
Opt. Outputs:
Keywords :
CALLS: ***
CW_BGROUP, CW_PDMENU, DMEMORY, WLOADINFO_EVENT, WRT_ASC, WYES_NO, XMANAGER
XREGISTERED, XVAREDIT, load_message
Common :
Restrictions: None.
Side effects: None.
History : 12-jun-1994,Borut Podlipnik, MPAe,Written
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
Project : SOHO - LASCO/EIT
Name : WLOADINFO1
Purpose :
Category : Widgets
Explanation :
Syntax : wloadinfo1
Examples :
Inputs :
Opt. Inputs :
Outputs :
Opt. Outputs:
Keywords :
CALLS: ***
CHK_DIR [1], CHK_DIR [2], CW_BGROUP, CW_PDMENU, DATATYPE [1], DATATYPE [2]
DATATYPE [3], HEADFITS [1], HEADFITS [2], HEADFITS [3], HEAD_INFO, RSTRPOS
WHEADINFO, WLOADINFO1_EVENT, WMESSAGE [1], WMESSAGE [2], WRT_ASC, XMANAGER
XREGISTERED, XVAREDIT, load_message
Common :
Restrictions: None.
Side effects: None.
History : 12-jun-1994,Borut Podlipnik, MPAe,Written
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
Project : SOHO - CDS
Name : WMAX()
Purpose : Return the max value of the data in a Spectral Window.
Explanation : Straightforward.
Use : MAX_COUNT = WMAX(QLDS,WINDOW)
Inputs : QLDS: A "CDS QL data structure"
WINDOW: String or number specifying a spectral window
in the QLDS
Opt. Inputs : None.
Outputs : Return value.
Opt. Outputs: None.
Keywords : NOCHECK:Set to skip call to QLMGR
Calls : ***
QLMGR, TRIM, WINDOWNO
CALLED BY:
DSPEXP
Common : None.
Restrictions: None.
Side effects: None.
Category : CDS, QuickLook
Prev. Hist. : None.
Written : Stein Vidar Hagfors Haugan, October 1993
Modified : SVHH, 20 November 1993 - Documentation added.
Version : 1.0
[Previous]
[Next]
NAME:
wmenu_sel
PURPOSE:
To allow a user to select a series of array elements
using the WMENU option. Options exist to select many
elements.
CALLING SEQUENCE:
subs = wmenu_sel(array)
subs = wmenu_sel(files, /one)
INPUT:
array - a string array of any length
OPTIONAL INPUT KEYWORDS:
one - if set, return after one element is selected
OUTPUT:
Returns the indicies of the array elements selected
CALLS: ***
input [1], input [2], prstr [1], prstr [2], wmenu_sel_set [1], wmenu_sel_set [2]
CALLED BY:
DATAGET3_GRS, DATAGET3_HXS, GRS_SPEFF, MK_HXTDATA, PICK_CAN_PRELIM, PLOT_GRSPCH
PLOT_GRSPCL, PLOT_GRSPHH, PLOT_GRSPHL, PLOT_HXSPC, PLOT_HXSPH, RD_TAR, RdTap [1]
RdTap [2], RdTap [3], SXSPC, TEST_OUTG, TEST_OUTH, XLOADCT [2], XLOADCT [3]
cancel_dsn_pick, color2rgb, daily_forecast [2], dataget_grs, dbase2disk
do_demo [1], do_demo [2], ffi_prep, file_menu [1], file_menu [2], flares2disk
ftp_copy2sites, get_daily [1], get_daily [2], get_selsis, go_lasdisk golaserdisk
go_lasdisk2 golaserdisk, go_nvs4, go_nvs5, go_rdtap [1], go_rdtap [2], grs_plot
hxt_hs_bgd, hxt_hs_task, jitter_gif_xyimg, merc_lwa, merc_pix, mk_mo_disk
mk_mo_disk2, mk_pix [1], mk_pix [2], mo2wks, mo_prep, newfiles [1], newfiles [2]
newfiles [3], newsfd, pc_tplot_grs, pc_tplot_rbm, ph_eff_grs1, ph_eff_grs2
ph_pow_grs1, ph_pow_grs2, prep_gendat, rd_modb, rd_ydbtap, rmosaic [1], rmosaic [2]
rmosaic [3], sel_img, set_printer [1], set_printer [2], set_printer [5]
show_contacts, show_pixf, sw2tree [1], sw2tree [2], video_menu, window_select
wmenu_sel_set [1], wmenu_sel_set [2], xset_chain [1], xset_chain [2]
xso_butevents [1], xso_butevents [2], ydb_install [1], ydb_install [2]
HISTORY:
Written Dec '91 by M.Morrison
18-Mar-92 (MDM) - Added option to select all elements on
the current page.
- Also added the keyword option "one"
- Also adjusted page size to look at the length
of the string array
18-Mar-92 (MDM) - Added case statement to get screen size
4-Aug-92 (MDM) - Added common block storage of number of lines and
columns that are used for a given display.
8-Apr-93 (MDM) - Added code to recognize when the display device
is the NCD x-terminal.
23-apr-93 (JRL) - Moved the code that sets nchar and nlin to wmenu_sel_set
13-may-93 (SLF) - force scaler return if only one element
25-Apr-94 (MDM) - Modified to print options to the screen if the device is
not an X terminal.
[Previous]
[Next]
NAME:
wmenu_sel_set
PURPOSE:
To allow a user to manually set the number of characters and lines
are used in the WMENU_SEL routine
CALLING SEQUENCE:
wmenu_set_set,/reset ; Reset to values given below
wmenu_sel_set,nchar,nlin ; Set to nchar and nlin
wmenu_sel_set,nchar,nlin,/get ; Get current values
INPUT:
nchar - Number of characters
nlin - Number of line
CALLS: ***
input [1], input [2], wmenu_sel [1], wmenu_sel [2]
CALLED BY:
cancel_dsn_pick, mdi_idl_startup, wmenu_sel [1], wmenu_sel [2]
EXAMPLES:
nchar nlin
ULTRIX Workstations: 210 61
SUN Workstations 190 54
VMS Workstations (?) 170 50
X-Terminals (small ver) 132 46
X-Terminals (large ver) 150 43
X-Terminals (large ver) 124 43 (large font)
INDY 100 54
HISTORY:
Written by M.Morrison 4-Aug-92
8-Apr-93 (MDM) - Updated header information
21-apr-93 (JRL) - Added reset and get options
28-Jun-94 (MDM) - Added interactive setting option
11-Jan-95 (MDM) - Changed Xterminal nchar from 132 to 110
23-Jan-95 (MDM) - Added option to enter values manually
8-Feb-95 (MDM) - Added INDY option
- Added some instructions/comments
[Previous]
[Next]
Project : SOHO - LASCO/EIT
Name : WMESSAGE
Purpose :
Category : Widgets
Explanation :
Syntax :
CALLED BY:
PICKFILES, WCALCL, WCALCNEW, WCURRENT, WIC, WIMG_INFO3, WIMG_INFO4, WINFO_ACTIV, WLINES
WLOADINFO1, WPLOT, WPLOT1, WSUNPROFILE, WTIME_HEIGHT
Examples :
Inputs :
Opt. Inputs :
Outputs :
Opt. Outputs:
Keywords : TITLE (a string containing the title to be used for the widget)
LABEL (a string containing a message in WIDGET_LABEL)
TEXT (a string to display in WIDGET_TEXT)
CALLS: ***
HEADFITS [1], HEADFITS [2], HEADFITS [3], RSTRPOS, STR2UTC [1], STR2UTC [2]
STR2UTC [3], UTC2TAI, WHEADINFO, XREGISTERED, chk_h4s
Common :
Restrictions: None.
Side effects: None.
History : 15-nov-1995,Borut Podlipnik, MPAe,Written
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
Project : SOHO - LASCO/EIT
Name : WMESSAGE
Purpose :
Category : Widgets
Explanation :
Syntax :
CALLED BY:
PICKFILES, WCALCL, WCALCNEW, WCURRENT, WIC, WIMG_INFO3, WIMG_INFO4, WINFO_ACTIV, WLINES
WLOADINFO1, WPLOT, WPLOT1, WSUNPROFILE, WTIME_HEIGHT
Examples :
Inputs :
Opt. Inputs :
Outputs :
Opt. Outputs:
Keywords : TITLE (a string containing the title to be used for the widget)
LABEL (a string containing a message in WIDGET_LABEL)
TEXT (a string to display in WIDGET_TEXT)
CALLS: ***
XREGISTERED
Common :
Restrictions: None.
Side effects: None.
History : 15-nov-1995,Borut Podlipnik, MPAe,Written
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
Name: wmkkey
Purpose: make widget for key search input
CALLS:
CALLED BY
mk_key
[Previous]
[Next]
Name: wmkkey_event
Purpose: handle wmkkey events - generate search string
CALLS: ***
CLRKEYS, getcurstr [1], getcurstr [2]
History: slf, 1/3/91
[Previous]
[Next]
Project : SOHO - LASCO
Name : WOBSDATE*
Purpose :
Category : SU:IMAGE_TOOL ?
Explanation : This widget FITS search tool allows searching images
on specific observation date. Image header will be
scaned for keyword observation date.
Syntax : IDL>wobsdate, instruments, path, filter
CALLED BY:
WLOADC
Examples : IDL>wloada, " LASCO C1 ", "/data/lasco/c1", "*.fits"
Inputs : string array of instruments,
string array of directories,
string array of searcing filter.
Opt. Inputs : None
Outputs : string array of files,
string array of directories.
Opt. Outputs: None
Keywords : None
CALLS: ***
CW_BSELECTOR2, SELECTD, WOBSDATE_EVENT, XMANAGER, XREGISTERED
Common : dirs_files, date_block
Restrictions: None
Side effects: Not known
History : Version 1, 02-Sep-1995, B Podlipnik. Written
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
NAME:
word_conv
PURPOSE:
Converts data written on a DEC machine to SUN format by swapping
bytes appropriately for the type of the input data. Optionally
convert REALs between IEEE and VAX format.
SAMPLE CALLING SEQUENCE:
word_conv, a
INPUTS:
a = input variable which is to have its bytes swapped
OPTIONAL KEYWORD INPUT PARAMETERS:
ieee2vax - If set, then convert the REALs from IEEE to VAX format
vax2ieee - If set, then convert the REALs from VAX to IEEE format
OUTPUTS:
a = reformatted variable is passed back in the original variable
CALLS: ***
ieee2vax [1], ieee2vax [2], vax2ieee [1], vax2ieee [2]
COMMON BLOCKS:
None
SIDE EFFECTS:
None
RESTRICTIONS:
None
PROCEDURE:
Determines the type of the variable and swaps the bytes depending
on the type. If the variable is a structure, the tags are
recursively searched so that the bytes are swapped throughout
the structure.
MODIFICATION HISTORY:
T. Metcalf 5/20/91 Version 1.0
T. Metcalf Aug 1991: Added complex floating point Version 1.1
T. Metcalf Nov 1991: Converted vax2sun to dec2sun
13-Apr-93 (MDM) Took DEC2SUN and modified it into WORD_CONV
[Previous]
[Next]
Project : SOHO - LASCO/EIT
Name : WPLOT
Purpose : plot
Category : Widgets
Explanation :
Syntax : wplot
Examples :
Inputs :
Opt. Inputs :
Outputs :
Opt. Outputs:
Keywords :
CALLS: ***
BOX_CURSOR, CW_BSELECTOR2, CW_PDMENU, WLOAD, WMESSAGE [1], WMESSAGE [2], WPLOT_EVENT
XMANAGER, ghandle, plot_xy, wprint, wsave2
Common : lasco.com, wload.com, wplot.com
Restrictions: None.
Side effects: None.
History : 15-jan-1993,Borut Podlipnik, MPAe,Written
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
Project : SOHO - LASCO/EIT
Name : WPLOT1
Purpose : plot
Category : Widgets
Explanation :
Syntax : wplot1
Examples :
Inputs :
Opt. Inputs :
Outputs :
Opt. Outputs:
Keywords :
CALLS: ***
BOX_CURSOR, CW_BSELECTOR2, CW_PDMENU, WLOAD, WMESSAGE [1], WMESSAGE [2]
WPLOT1_EVENT, XMANAGER, ghandle, plot_xy, wprint, wsave2
Common : lasco.com, wload.com, wplot.com
Restrictions: None.
Side effects: None.
History : 15-jan-1993,Borut Podlipnik, MPAe,Written
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
NAME:
WPLOT_NONOP
PURPOSE:
This procedure generates plots of the non-operational temperature sensors.
CATEGORY:
LASCO PACKETS
CALLING SEQUENCE:
WPLOT_NONOP
INPUTS:
None
KEYWORD PARAMETERS:
DACS: If set then use the .recs files generated by DACS. The default
is to use the .REL files generated by ECS. If the environment
variable, TMPCKTS, is set then tHe files should be located in
that directory. If it isn't set then the files are located in
the current directory.
AUTO: If set then generate an automatic plot for the latest data.
The value of the AUTO parameter determines the number of times
the plot cycle is repeated. The default is to use the program
interactively.
FDAY: If set then specifies the start time of the plot in fractional
days from the current time in the automatic mode. The default
is to start 1 day, 86400 seconds, earlier than the current time.
NWAIT: If set then specifies the number of seconds to wait between
automatic cycles. The default is to wait 3600 seconds.
CALLS: ***
ANYTIM2CAL, CDSPICKFILE, CNVRT_TEMPS, DATATYPE [1], DATATYPE [2], DATATYPE [3]
DO_PLOT_NONOP, GET_PCKT_NAMES, GET_UTC, JULDAY, LOADCT, OBT2TAI, OUTPLOT [1]
OUTPLOT [2], OUTPLOT [3], READ_TM_PACKET, STR2UTC [1], STR2UTC [2], STR2UTC [3]
TAI2UTC, UTC2TAI, UTPLOT [1], UTPLOT [2], UTPLOT [3], UTPLOT [4], UTPLOT [5]
UTPLOT [6], WPLOT_AUTO, WPLOT_NONOP_EVENT, WPLOT_READ_PACKETS, WRITE_GIF, XMANAGER
COMMON BLOCKS:
WPLOT_NONOP_COMMON
SIDE EFFECTS:
RESTRICTIONS:
PROCEDURE:
EXAMPLE:
WPLOT_NONOP
Allows interactive plotting using .REL files from ECS
WPLOT_NONOP,/dacs
Allows interactive plotting using .recs files from DACS
WPLOT_NONOP,/dacs,/auto
Generates a single automatic plot for the latest 24 hours.
WPLOT_NONOP,/dacs,auto=24,fday=2,wait=7200.
Generates automatic plots every 2 hours covering the latest 2 days.
MODIFICATION HISTORY:
Written by: Scott Paswaters, Dec 1995
Modifications:
971216 aee Fixed year/month change in GET_PCKT_NAMES.
980811 rah Fixed offsets (added 6 bytes in line 96 to nonop.offs)
980916 rah A number of changes to make it work for DACS/REL files
There were many files per hour of REL files.
TM_READ_PACKET returns the same 12 byte header, for both .recs and .REL
files. The 12 bytes are 6 for packet ID, length, etc and 6 for OBT.
We want to start the packet offsets with the first byte of time at
0. Therefore the dacs_offset value should be 6, to skip over the
packet ID, etc.
980917 rah Added the automatic plot capability.
980923 rah Added plot of -10 or -50
990126 aee Fixed for Y2K problem.
@(#)wplot_nonop.pro 1.11 12/23/98 :LASCO IDL LIBRARY
[Previous]
[Next]
NAME:
WPLOT_SUBHTR
PURPOSE:
This procedure generates plots of the non-operational temperature sensors.
CATEGORY:
LASCO PACKETS
CALLING SEQUENCE:
WPLOT_SUBHTR
INPUTS:
None
KEYWORD PARAMETERS:
DACS: If set then use the .recs files generated by DACS. The default
is to use the .REL files generated by ECS. If the environment
variable, TMPCKTS, is set then tHe files should be located in
that directory. If it isn't set then the files are located in
the current directory.
AUTO: If set then generate an automatic plot for the latest data.
The value of the AUTO parameter determines the number of times
the plot cycle is repeated. The default is to use the program
interactively.
FDAY: If set then specifies the start time of the plot in fractional
days from the current time in the automatic mode. The default
is to start 1 day, 86400 seconds, earlier than the current time.
NWAIT: If set then specifies the number of seconds to wait between
automatic cycles. The default is to wait 3600 seconds.
COMMON BLOCKS:
WPLOT_SUBHTR_COMMON
SIDE EFFECTS:
RESTRICTIONS:
PROCEDURE:
EXAMPLE:
WPLOT_SUBHTR
Allows interactive plotting using .REL files from ECS
WPLOT_SUBHTR,/dacs
Allows interactive plotting using .recs files from DACS
WPLOT_SUBHTR,/dacs,/auto
Generates a single automatic plot for the latest 24 hours.
WPLOT_SUBHTR,/dacs,auto=24,fday=2,wait=7200.
Generates automatic plots every 2 hours covering the latest 2 days.
MODIFICATION HISTORY:
Written by: Scott Paswaters, Dec 1995
Modifications:
971216 aee Fixed year/month change in GET_PCKT_NAMES.
980811 rah Fixed offsets (added 6 bytes in line 96 to nonop.offs)
980916 rah A number of changes to make it work for DACS/REL files
There were many files per hour of REL files.
TM_READ_PACKET returns the same 12 byte header, for both .recs and .REL
files. The 12 bytes are 6 for packet ID, length, etc and 6 for OBT.
We want to start the packet offsets with the first byte of time at
0. Therefore the dacs_offset value should be 6, to skip over the
packet ID, etc.
980917 rah Added the automatic plot capability.
990126 aee Fixed for Y2K problem.
@(#)gethkpackets.pro 1.1 01/26/99 :LASCO IDL LIBRARY
[Previous]
[Next]
NAME:
WPLOT_SUBHTR
PURPOSE:
This procedure generates plots of the non-operational temperature sensors.
CATEGORY:
LASCO PACKETS
CALLING SEQUENCE:
WPLOT_SUBHTR
INPUTS:
None
KEYWORD PARAMETERS:
DACS: If set then use the .recs files generated by DACS. The default
is to use the .REL files generated by ECS. If the environment
variable, TMPCKTS, is set then tHe files should be located in
that directory. If it isn't set then the files are located in
the current directory.
AUTO: If set then generate an automatic plot for the latest data.
The value of the AUTO parameter determines the number of times
the plot cycle is repeated. The default is to use the program
interactively.
FDAY: If set then specifies the start time of the plot in fractional
days from the current time in the automatic mode. The default
is to start 1 day, 86400 seconds, earlier than the current time.
NWAIT: If set then specifies the number of seconds to wait between
automatic cycles. The default is to wait 3600 seconds.
CALLS: ***
ANYTIM2CAL, CDSPICKFILE, CNVRT_TEMPS, DATATYPE [1], DATATYPE [2], DATATYPE [3]
DO_PLOT_SUBHTR, GET_PCKT_NAMES, GET_UTC, JULDAY, LOADCT, OBT2TAI, OUTPLOT [1]
OUTPLOT [2], OUTPLOT [3], READ_TM_PACKET, STR2UTC [1], STR2UTC [2], STR2UTC [3]
TAI2UTC, UTC2TAI, UTPLOT [1], UTPLOT [2], UTPLOT [3], UTPLOT [4], UTPLOT [5]
UTPLOT [6], WPLOT_AUTO, WPLOT_READ_PACKETS, WPLOT_SUBHTR_EVENT, WRITE_GIF
XMANAGER
COMMON BLOCKS:
WPLOT_SUBHTR_COMMON
SIDE EFFECTS:
RESTRICTIONS:
PROCEDURE:
EXAMPLE:
WPLOT_SUBHTR
Allows interactive plotting using .REL files from ECS
WPLOT_SUBHTR,/dacs
Allows interactive plotting using .recs files from DACS
WPLOT_SUBHTR,/dacs,/auto
Generates a single automatic plot for the latest 24 hours.
WPLOT_SUBHTR,/dacs,auto=24,fday=2,wait=7200.
Generates automatic plots every 2 hours covering the latest 2 days.
MODIFICATION HISTORY:
Written by: Scott Paswaters, Dec 1995
Modifications:
971216 aee Fixed year/month change in GET_PCKT_NAMES.
980811 rah Fixed offsets (added 6 bytes in line 96 to nonop.offs)
980916 rah A number of changes to make it work for DACS/REL files
There were many files per hour of REL files.
TM_READ_PACKET returns the same 12 byte header, for both .recs and .REL
files. The 12 bytes are 6 for packet ID, length, etc and 6 for OBT.
We want to start the packet offsets with the first byte of time at
0. Therefore the dacs_offset value should be 6, to skip over the
packet ID, etc.
980917 rah Added the automatic plot capability.
990126 aee Fixed for Y2K problem.
@(#)wplot_subhtr.pro 1.1 01/26/99 :LASCO IDL LIBRARY
[Previous]
[Next]
Project : SOHO - LASCO
Name :
Purpose :
Category :
Explanation :
Syntax :
CALLED BY:
WIC, WLINES, WPLOT, WPLOT1, WSUNPROFILE, WTIME_HEIGHT
Examples :
Inputs : None
Opt. Inputs : None
Outputs : None
Opt. Outputs: None
Keywords : None
CALLS: ***
CHK_DIR [1], CHK_DIR [2], CW_BSELECTOR2, PICKFILE, WPRINT_EVENT, XMANAGER
XREGISTERED, rd_asc
Common :
Restrictions:
Side effects: Not known
History : Version 1, 02-Sep-1995, B Podlipnik. Written
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
Project : SOHO - LASCO/EIT
Name : WR_BEAM
Purpose : Ploting radial beams
Explanation :
Use : wr_beam
Inputs :
Opt. Inputs :
Outputs :
Opt. Outputs :
Keywords :
Calls : ***
CW_BSELECTOR2, CW_PDMENU, EXSUNC, WLOADA, WR_BEAM_EVENT, XMANAGER, XREGISTERED
Common : lasco.com, wload.com, wplot.com
Restrictions : None.
Side effects : None.
Category : Widgets
Prev. Hist. : None.
Written : Borut Podlipnik, MPAe, 01-oct-1995
Modified :
Version :
[Previous]
[Next]
Project : SOHO - LASCO/EIT
Name : WR_BEAM1
Purpose : Ploting radial beams
Explanation :
Use : wr_beam1
Inputs :
Opt. Inputs :
Outputs :
Opt. Outputs :
Keywords :
Calls : ***
CW_BSELECTOR2, CW_PDMENU, EXSUNC, WLOADA, WR_BEAM1_EVENT, XMANAGER, XREGISTERED
Common : lasco.com, wload.com, wplot.com
Restrictions : None.
Side effects : None.
Category : Widgets
Prev. Hist. : None.
Written : Borut Podlipnik, MPAe, 01-oct-1995
Modified :
Version :
[Previous]
[Next]
Project : SOHO - LASCO
Name : WREBIN
Purpose :
Category :
Explanation :
Syntax :
Examples :
Inputs : None
Opt. Inputs : None
Outputs : None
Opt. Outputs: None
Keywords : None
CALLS: ***
CW_BGROUP, WREBIN_EVENT, WRITEFITS [1], WRITEFITS [2], WRITE_GIF, WSAVE_PS [1]
WSAVE_PS [2], XMANAGER, XREGISTERED
Common :
Restrictions:
Side effects: Not known
History : Version 1, 13-Nov-1995, B Podlipnik. Written
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
Name: write_access
Purpose: check directory for write access
Input Parameters:
directory - directory to check (default is current directory)
Calling Sequnce:
writable=dir_write_access(directory)
Calling Example:
if write_access('directory') then begin ....
CALLS: ***
CONCAT_DIR [1], CONCAT_DIR [2], CONCAT_DIR [3], FILE_EXIST [2], concat_dir [4]
curdir [1], curdir [2], file_append [1], file_append [2], file_exist [1]
file_exist [3], get_user [1], get_user [2]
CALLED BY:
data_compress [1], data_compress [2], data_compress [3], go_yo_prod_batch
mk_ssc_batch [1], mk_ssc_batch [2], trace_make_vignette
Restrictions:
scaler directories for now
8-Mar-1995 (SLF)
[Previous]
[Next]
PROJECT:
SOHO - CDS/SUMER
NAME:
WRITE_ANOMALY
PURPOSE:
Write output of perl program "anomaly_report" to database
CATEGORY:
SOC operation.
SYNTAX:
write_anomaly [, io_file=io_file]
INPUTS:
None.
OPTIONAL INPUTS:
None.
OUTPUTS:
None.
OPTIONAL OUTPUTS:
None.
KEYWORDS:
IO_FILE - Name of file for input and output
DIRECTORY - Directory where FILE is written
CALLS: ***
ADD_ANOMALY, ANYTIM2UTC [1], ANYTIM2UTC [2], CHKLOG [1], CHKLOG [2], CHK_DIR [1]
CHK_DIR [2], CONCAT_DIR [1], CONCAT_DIR [2], CONCAT_DIR [3], MATCH_STRUCT, MKLOG
RD_ASCII [1], RD_ASCII [2], UTC2TAI, concat_dir [4]
COMMON:
None.
RESTRICTIONS:
None.
SIDE EFFECTS:
An environment variable, ANOMALY_ERROR, is set if any error
occurs so that an appropriate action can be taken
HISTORY:
Version 1, January 19, 1996, Liyun Wang, GSFC/ARC. Written
Version 2, January 23, 1997, Liyun Wang, NASA/GSFC
Added DIRECTORY keyword
CONTACT:
Liyun Wang, GSFC/ARC (Liyun.Wang.1@gsfc.nasa.gov)
[Previous]
[Next]
PROJECT:
SOHO - CDS/SUMER
NAME:
WRITE_ASCII()
PURPOSE:
Write a given string array as an ASCII file
CATEGORY:
Utility
SYNTAX:
Result = write_ascii(file, array)
INPUTS:
FILE - String scalar, name of the file to be written
ARRAY - String array to be writtten out
OPTIONAL INPUTS:
None.
OUTPUTS:
None.
OPTIONAL OUTPUTS:
None.
KEYWORDS:
ERROR - String scalar containing error message; if no error occurs,
the null string is returned
CALLED BY:
ADD_UDP_HEAD, ST_SUMER
COMMON:
None.
RESTRICTIONS:
None.
SIDE EFFECTS:
None.
HISTORY:
Version 1, September 23, 1996, Liyun Wang, NASA/GSFC. Written
CONTACT:
Liyun Wang, NASA/GSFC (Liyun.Wang.1@gsfc.nasa.gov)
[Previous]
[Next]
PROJET:
SOHO - LASCO
NAME:
WRITE_BLOCK
PURPOSE:
sets the block at column i and row j
CALLED BY:
FUZZY_IMAGE
PROCEDURE:
sets the block (array of pixels) at column i and row j to a given
array of values, or to a given constant value
CATEGORY:
Missing Blocks
CALLING SEQUENCE:
write_block, image, i, j, block
INPUTS:
image the image where to write the block
(image is both an input and a output)
i, j the column i and the row j of the block to change
(i and j ranges from 0 to 31)
block the block (dim : size x size) to overwrite; it can be :
_ a integer array
_ a scalar value, which leads to a constant array
KEYWORD PARAMETERS:
SIDE the side of the square blocks (default is 32 pixels)
OUTPUTS:
The block (i,j) on image is overwritted
(image is both an input and a output)
MODIFICATION HISTORY:
written by J.More, September 1996
[Previous]
[Next]
Project : SOHO - CDS
Name : WRITE_CALFITS
Purpose : Writes data to a FITS calibration file.
Explanation : Writes an exposure to the FITS calibration file defined by
OPEN_CALFITS. If this is the first exposure, then the file is
created and open for write. Subsequent calls to WRITE_CALFITS,
one for each exposure, write additional data to the file, and
CLOSE_CALFITS closes the file.
Use : WRITE_CALFITS, EXP_NUMBER, DETECTOR, EXPHDR, EXP_ARRAY
Inputs : DETECTOR = Either 'NIS' or 'GIS'.
EXPHDR = Exposure header structure of the form given by
EXPHDRDEF as defined in the procedure SCI_ANA.
EXP_ARRAY = Data array containing the data extraction windows
of the exposure, with the dimensions
(LENGTHX, LENGTHY, N_WINDOWS) ;NIS
(LENGTH, N_WINDOWS) ;GIS
Opt. Inputs : None.
Outputs : None.
Opt. Outputs: None.
Keywords : None.
Calls : ***
CONCAT_DIR [1], CONCAT_DIR [2], CONCAT_DIR [3], DEC2BIN, FORM_FILENAME [1]
FORM_FILENAME [2], FXADDPAR [1], FXADDPAR [2], FXBCREATE [1], FXBCREATE [2]
FXBWRITE [1], FXBWRITE [2], FXWRITE [1], FXWRITE [2], OBT2TAI, OPS_DECODE
SENSOR_DECODE, SLITPOS_DECODE, TAI2UTC, UNSIGN, concat_dir [4]
Common : CALFITS_COMMON contains data common to the routines
OPEN_CALFITS, WRITE_CALFITS, and CLOSE_CALFITS. The definition
of this common block is in the file "calfits.cmn".
Restrictions: The structure of the output file must already be defined by the
routine OPEN_CALFITS.
Binning is not currently handled correctly.
Side effects: None.
Category : Data_handling, I/O, FITS, CDS, Calibration.
Prev. Hist. : None.
Written : William Thompson, GSFC, 19 November 1993.
Modified : Version 0.1, William Thompson, GSFC, 19 November 1993.
Version 0.2, William Thompson, GSFC, 22 November 1993.
Temporarily modified to work with current version of
SCI_ANA.
Version 0.3, William Thompson, GSFC, 14 December 1993.
Modified according to comments from Martin Carter as to
the meaning and types of the different parameters.
Version 0.4, William Thompson, GSFC, 14 December 1993.
Incorporated MCU telemetry formats of slit, OPS, and
sun sensor.
Removed test code for old telemetry format.
Version 0.5, CDP, 17-Jun-95. Replaced calls to NINT by ROUND
Version : Version 0.5, 17-Jun-95.
[Previous]
[Next]
Project : SOHO - CDS
Name : WRITE_CAP
Purpose : Write out the CAP from the science plan.
Category : Planning
Explanation : Writes out the Combined instrument Activity Plan (CAP) file
using the keyword format from the Interface Control Document,
based on the information in the science plan database. The CAP
file differs from the IAP file in that all the instruments but
only SCI_PROG entries are included.
Syntax : Result = WRITE_CAP( OP_DAY )
Examples : IF WRITE_CAP('1995/03/30') THEN ...
Inputs : OP_DAY = Operational day in any CDS UTC format. Only the UTC
date will be used--any time-of-day information will
be ignored.
Opt. Inputs : None.
Outputs : The CAP is written to a file in the directory given by the
environment variable SOHO_CAP. The filename has the format
"ECSyyyymmddvvv.CAP", where the number is chosen to make the
filename unique.
The result of the function is 1 for successful and 0 for
unsuccessful.
Opt. Outputs: None.
Keywords : OBSERVER = Name to place in the OBSERVER field in the output
file. If not passed, then "ECS Staff" is used.
COMMENT = Optional string array containing comments to put in
the file header.
ERRMSG = If defined and passed, then any error messages will
be returned to the user in this parameter rather
than depending on the MESSAGE routine in IDL. In
order to use this feature, ERRMSG must be defined
first, e.g.
ERRMSG = ''
Result = WRITE_CAP(OP_DAY, ERRMSG=ERRMSG)
IF ERRMSG NE '' THEN ...
FILE = Name of output CAP file.
Calls : ***
ANYTIM2UTC [1], ANYTIM2UTC [2], BREAK_FILE [1], BREAK_FILE [2], BREAK_FILE [3]
CONCAT_DIR [1], CONCAT_DIR [2], CONCAT_DIR [3], DATATYPE [1], DATATYPE [2]
DATATYPE [3], GET_INSTRUMENT, GET_SOHO_MAP, GET_UTC, LIST_PLAN, LOC_FILE [1]
LOC_FILE [2], LOC_FILE [3], TAI2UTC, TRIM, UTC2TAI, break_file [4], concat_dir [4]
Common : None.
Restrictions: Env. var. ZDBASE must point to directory containing the dbase.
Side effects: Even if this routine is successful, it will return a non-null
value for ERRMSG.
Prev. Hist. : None
History : Version 1, 1-Aug-1995, William Thompson, GSFC
Version 2, 25-Aug-1995, William Thompson, GSFC
Brought into conformance with what ECS tool expects
Version 3, William Thompson, GSFC, 18 October 1995
Added XCEN, YCEN to SCIPLAN entries.
Version 4, Dominic Zarro, GSFC, 24 April 1996
Converted SCIPLAN slots for CELIAS, SWAN, and ERNE
for use by JOP, SOC, and CMP
Contact : WTHOMPSON
[Previous]
[Next]
Project : SOHO - CDS
Name : WRITE_CIF()
Purpose : Write a Catalog Output File for the SOHO Catalog
Category : Class3, Operations, Catalog
Explanation : Writes a file containing the CDS contribution to the SOHO-wide
catalog system.
Syntax : Result = WRITE_CIF()
CALLED BY:
MK_SUMMARY
Examples :
Inputs : None.
Opt. Inputs : None.
Outputs : A file is written to the directory CDS_CIF_W
Opt. Outputs: None.
Keywords : START_DATE = The start date to use. If not passed, then
yesterday is used.
END_DATE = The end date to use. The default depends on
whether /SUMMARY is used. The main purpose of the
END_DATE keyword is to be able to limit the size
of the output files when processing large time
ranges. For example, one could choose to process
the data a month at a time.
OBSERVER = Name of observer to place in file header. If not
passed, then the name of the current account is
used instead.
COMMENT = A string array of comments to place in the header.
ERRMSG = If defined and passed, then any error messages
will
be returned to the user in this parameter rather
than depending on the MESSAGE routine in IDL. In
order to use this feature, ERRMSG must be defined
first, e.g.
ERRMSG = ''
Result = WRITE_CIF(ERRMSG=ERRMSG, ...)
IF ERRMSG NE '' THEN ...
FILE = Returns the name of the output IAP file.
SUMMARY = If set, then a summary file is written out. This
differs from the regular CIF file in three
important ways:
1. Only the MAIN entries are written out.
2. The file is written to a different
directory ($CDS_SUMMARY_DATA_W) with a
different naming convention.
3. The search is done on observation date
rather than modification date.
Calls : ***
ANYTIM2UTC [1], ANYTIM2UTC [2], BREAK_FILE [1], BREAK_FILE [2], BREAK_FILE [3]
CONCAT_DIR [1], CONCAT_DIR [2], CONCAT_DIR [3], GET_DATAWIN, GET_EXPER, GET_RASTER
GET_STUDY, GET_UTC, LIST_EXPER, LIST_EXP_COMM, LIST_MAIN, LOAD_WAVECAL, PIX2WAVE
TAI2UTC, TRIM, break_file [4], concat_dir [4]
Common : None.
Restrictions: The environment variable CDS_CIF_W must be defined.
Side effects: None.
Prev. Hist. : None.
History : Version 1, 03-Apr-1996, William Thompson, GSFC
Version 2, 09-Apr-1996, William Thompson, GSFC
Removed unused keyword. Document all keywords.
Version 3, 20-May-1996, William Thompson, GSFC
Added /SUMMARY keyword.
Version 4, 21-May-1996, William Thompson, GSFC
End file with two blank lines
Version 4, 10-Mar-1997, William Thompson, GSFC
Fixed bug with background windows being included in
data window lists.
Version 5, 12-Mar-1997, William Thompson, GSFC
Fixed bug where CMP_NO was not being written out.
Added keyword END_DATE.
Version 6, 08-Apr-1997, William Thompson, GSFC
Added PUBLIC keyword for certain data.
Version 7, 02-Jun-1997, William Thompson, GSFC
Scan both current and old CIF directories.
Version 8, 12-Sep-1997, William Thompson, GSFC
Fix bug introduced in version 7.
Contact : WTHOMPSON
[Previous]
[Next]
NAME:
WRITE_CLOSED
PURPOSE:
This procedure writes the name of the latest *.img file located in
$LEB_IMG into closed_img_file2. This file is used by REDUCE_MAIN.
CATEGORY:
LASCO DATA REDUCTION
CALLING SEQUENCE:
WRITE_CLOSED
OPTIONAL INPUTS:
Nfiles: If this parameter is present, the file name of the nfile-th
file will be written. Otherwise the default is to write the
name of the latest .img file
OUTPUTS:
This procedure creates the file $LEB_IMG/closed_img_file2
CALLED BY:
reformat [1], reformat [2], reformat [3]
EXAMPLE:
Write the file name of the latest file in $LEB_IMG:
WRITE_CLOSED
Write the file name of the 2nd file in $LEB_IMG:
WRITE_CLOSED,2
MODIFICATION HISTORY:
Written by: RA Howard, NRL, 23 Dec 1995
Version 2 RAH 10 Apr 1996 Added parameter to write nfile/th name
@(#)write_closed.pro 1.2 21 Apr 1996 LASCO IDL LIBRARY
[Previous]
[Next]
NAME:
WRITE_DISK_MOVIE
PURPOSE:
This procedure adds an image to a file in the disk movie format.
CATEGORY:
LASCO MOVIE
CALLING SEQUENCE:
WRITE_DISK_MOVIE, Fname, Img, Hdr
INPUTS:
Fname: File name of the movie disk file, with full path
Img: 2D image to be added to the file
Hdr: FITS header
KEYWORD PARAMETERS:
NEW: If set this keyword indicates that a new file is to be created.
The default is to write to an existing file
MAXNUM: If set, this keyword specifies the maximum number of files to
be loaded into the file. The default value is 128
/REPLACE: Flag to replace an image rather than append
REPLACE_INDEX:Set to index of frame to replace in .mvi file
CALLED BY:
RTMOVIE, RTMVIPLAY [1], RTMVIPLAY [2], RTMVIPLAYPNG, WRUNMOVIE [2], WRUNMOVIE4
WRUNMOVIEM, WRUNMOVIEM_RT
PROCEDURE:
The disk movie format is:
file header: # images in the file
# columns in each image
# rows in each image
# maximum number of images in file
# bytes in image header
# version number
for version 1: # bytes in file header
for version 1: # sunxcen * 10
for version 1: # sunycen * 10
for version 1: # arc sec per pixel * 100
for version 1: # red color vector BYTARR(256)
for version 1: # green color vector BYTARR(256)
for version 1: # blue color vector BYTARR(256)
img hdr #1: date of image, string (15)
time of image, string (15)
file name, string (15)
filter wheel, string (10)
polarizer wheel, string (10)
detector, string (10)
img hdr #2
...
img #1
img #2
...
CALLS: ***
FXPAR [1], FXPAR [2], GAMMA_CT, LOADCT, WRITE_DISK_MOVIE_TEST
EXAMPLE:
Create a new movie file with img being the first image in the file:
DISK_MOVIE_FILE, '~/mymovie.mvi', img , hdr, /new, maxnum=20
Add to an existing movie file:
DISK_MOVIE_FILE, '~/mymovie.mvi', img , hdr
MODIFICATION HISTORY:
Written by: RA Howard, NRL, 16 Mar 1996
Modified : SEP 05 Feb 1997 - Mods for mvi version 1 format.
SEP 08 Sep 1997 - Added REPLACE option.
@(#)write_disk_movie.pro 1.1 10/12/96 LASCO IDL LIBRARY
[Previous]
[Next]
NAME:
WRITE_DISK_MOVIE
PURPOSE:
This procedure adds an image to a file in the disk movie (MVI) format.
CATEGORY:
LASCO/SECCHI MOVIE
CALLING SEQUENCE:
WRITE_DISK_MOVIE, Fname, Img, Hdr
INPUTS:
Fname: File name of the movie disk (MVI) file, with full path
Img: 2D image array to be added to the file
Hdr: FITS header for image
KEYWORD PARAMETERS:
/NEW: If set this keyword indicates that a new file is to be created.
The default is to write to an existing file
MAXNUM: If set, this keyword specifies the maximum number of files to
be loaded into the file. The default value is 128
/REPLACE: Flag to replace an image rather than append
REPLACE_INDEX: Set to index of frame to replace in .mvi file
/RTHETA flag indicating r-theta movie
RTCOORDS [radius@bottom, radius@top, theta@left, theta@right]
coords for making RTHETA movies
/RECTIFIED Image was rotated 180 deg so North is up
TRUECOLOR Set to indicate that the images are truecolor
CALLED BY:
RTMOVIE, RTMVIPLAY [1], RTMVIPLAY [2], RTMVIPLAYPNG, WRUNMOVIE [2], WRUNMOVIE4
WRUNMOVIEM, WRUNMOVIEM_RT
PROCEDURE:
The disk movie format is:
file header (each value is 2-byte integer):
# images in the file
# columns in each image
# rows in each image
# maximum number of images in file
# bytes in image header
# version number
for version 1: # bytes in file header
for version 1: # sunxcen * 10
for version 3: # R-theta flag
for version 3: # radius at bottom of image (Rsun)
for version 3: # radius at top of image (Rsun)
for version 3: # theta at left of image (deg, 0@N, CCW+)
for version 3: # theta at right of image (deg, 0@N, CCW+)
for version 4: # rectified flag (degrees images rotated by)
for version 5: # indicates true color
for version 1: # red color vector BYTARR(256)
for version 1: # green color vector BYTARR(256)
for version 1: # blue color vector BYTARR(256)
img hdr #1: date of image, string (15)
time of image, string (15)
file name, string (15)
filter wheel, string (10)
polarizer wheel, string (10)
detector, string (10)
img hdr #2
...
img #1
img #2
...
CALLS: ***
DATATYPE [1], DATATYPE [2], DATATYPE [3], FXPAR [1], FXPAR [2]
EXAMPLE:
Create a new movie file with img being the first image in the file:
DISK_MOVIE_FILE, '~/mymovie.mvi', img , hdr, /new, maxnum=20
Add to an existing movie file:
DISK_MOVIE_FILE, '~/mymovie.mvi', img , hdr
@(#)write_disk_movie.pro 1.7, 09/23/04 : NRL LASCO LIBRARY
MODIFICATION HISTORY:
Written by: RA Howard, NRL, 16 Mar 1996
Modified : SEP 05 Feb 1997 - Mods for mvi version 1 format.
SEP 08 Sep 1997 - Added REPLACE option.
010711 the jake Added Version 3 to handle RTHETA Movies
thejake 011109 - After testing, additions do not seem to have done any harm so adding
WRUNMOVIEM3, MVIPLAY3, WRITE_DISK_MOVIE3, and READ_MVI3 to library.
Once an MVI is written with the version 3 software, it will need to
be read with it as well.
nbr,03.09.10 - Incorporate write_disk_movie3.pro; add RECTIFY to mvi v4 header
rah, 16 Sep 2004 - Add truecolor keyword
aee, 29 Sep 2006 - Added check for SECCHI (vs LASCO/EIT).
[Previous]
[Next]
NAME:
WRITE_DISK_MOVIE
PURPOSE:
This procedure adds an image to a file in the disk movie format.
CATEGORY:
LASCO MOVIE
CALLING SEQUENCE:
WRITE_DISK_MOVIE, Fname, Img, Hdr
INPUTS:
Fname: File name of the movie disk file, with full path
Img: 2D image to be added to the file
Hdr: FITS header
KEYWORD PARAMETERS:
NEW: If set this keyword indicates that a new file is to be created.
The default is to write to an existing file
MAXNUM: If set, this keyword specifies the maximum number of files to
be loaded into the file. The default value is 128
/REPLACE: Flag to replace an image rather than append
REPLACE_INDEX:Set to index of frame to replace in .mvi file
RTHETA flag for making rtheta movies
RTCOORDS [radius0, radius1, theta0, theta1] coords for making RTHETA movies
CALLED BY:
RTMOVIE, RTMVIPLAY [1], RTMVIPLAY [2], RTMVIPLAYPNG, WRUNMOVIE [2], WRUNMOVIE4
WRUNMOVIEM, WRUNMOVIEM_RT
PROCEDURE:
The disk movie format is:
file header: # images in the file
# columns in each image
# rows in each image
# maximum number of images in file
# bytes in image header
# version number
for version 1: # bytes in file header
for version 1: # sunxcen * 10
for version 1: # sunycen * 10
for version 1: # arc sec per pixel * 100
for version 1: # red color vector BYTARR(256)
for version 1: # green color vector BYTARR(256)
for version 1: # blue color vector BYTARR(256)
img hdr #1: date of image, string (15)
time of image, string (15)
file name, string (15)
filter wheel, string (10)
polarizer wheel, string (10)
detector, string (10)
img hdr #2
...
img #1
img #2
...
CALLS: ***
FXPAR [1], FXPAR [2], WRITE_DISK_MOVIE3
EXAMPLE:
Create a new movie file with img being the first image in the file:
DISK_MOVIE_FILE, '~/mymovie.mvi', img , hdr, /new, maxnum=20
Add to an existing movie file:
DISK_MOVIE_FILE, '~/mymovie.mvi', img , hdr
MODIFICATION HISTORY:
Written by: RA Howard, NRL, 16 Mar 1996
Modified : SEP 05 Feb 1997 - Mods for mvi version 1 format.
SEP 08 Sep 1997 - Added REPLACE option.
010711 the jake Added Version 3 to handle RTHETA Movies
thejake 011109 - After testing, additions do not seem to have done any harm so adding
WRUNMOVIEM3, MVIPLAY3, WRITE_DISK_MOVIE3, and READ_MVI3 to library.
Once an MVI is written with the version 3 software, it will need to
be read with it as well.
07/09/03 @(#)write_disk_movie3.pro 1.2 : LASCO IDL LIBRARY
[Previous]
[Next]
NAME:
WRITE_EXP_FACTOR
PURPOSE:
This procedure writes out a exposure factor record
CATEGORY:
LASCO EXPFAC
CALLING SEQUENCE:
WRITE_EXP_FACTOR,Tel,Fname,Fac,Bias,Date,Filt,Polr,Wavelen,Nz,Sigma
INPUTS:
Tel: String denoting the telescope, c1,c2, c3
Fname: String giving the filename of the image for which the factor
was computed
Fac: Exposure correction factor
Bias: Offset bias
Date: The date of observation as MJD or CDS time structure
Filt: Filter wheel position (string)
Polr: Polarizer wheel position (string)
Wavelen:If C1 then the FP wavelength, else 0
Nz: The number of non-zero regions
Sigma: Standard deviation of the computation of the expsoure factor
OUTPUTS:
Nothing is returned to the calling program. A record is written to
the appropriate exposure time file.
CALLS: ***
UTC2YYMMDD
CALLED BY:
COMPUTE_MONEXP_FACTORS, CORR_ALLSUBS
PROCEDURE:
This routine is a subroutine to the expsoure factor determination and
is not intended to be used separately.
Write information to the exposure factor file in the following format
filename tsnnnnn.fts (a12)
factor number (f10.6)
bias number (f10.1)
date YYMMDD (a6)
time SSSS.mmm (f10.2)
Filter 0-4 (a12)
Polarizer 0-4 (a12)
Wavelength NNNN.NNNN (a9)
Nz NNNN (i4)
sigma NNNN.NNNN (f10.2)
MODIFICATION HISTORY:
Written by: RA Howard, Sep 1997
3 Feb 98 RAH, Make sure subdirectory exists
@(#)write_exp_factor.pro 1.7 11/16/99 LASCO IDL LIBRARY
[Previous]
[Next]
NAME: write_hdr.pro
PURPOSE: write image header to disk file
CATEGORY: General tools low level routine
CALLING SEQUENCE: write_hdr,ima_name,hdr
INPUTS: ima_name = string of header filename
hdr = header to write to disk
OPTIONAL INPUT PARAMETERS: None
KEYWORD PARAMETERS: None
OUTPUTS: Writes to disk
OPTIONAL OUTPUT PARAMETERS: None
COMMON BLOCKS: None
SIDE EFFECTS: Creates a new disk file
RESTRICTIONS: Assumes a file extension of .hdr
PROCEDURE:
MODIFICATION HISTORY: RAH 10/1/89
RAH 8/20/91 to use = as keyword delimiter
SCCS variables for IDL use
@(#)write_header.pro 1.2 4/10/93 :NRL Solar Physics
[Previous]
[Next]
PROJECT:
SOHO - SUMER
NAME:
WRITE_HKBYDATE
PURPOSE:
CATEGORY:
EXPLANATION:
SYNTAX:
write_hkbydate,
CALLED BY:
RAW2BIN
EXAMPLES:
INPUTS:
OPTIONAL INPUTS:
None.
OUTPUTS:
None.
OPTIONAL OUTPUTS:
None.
KEYWORDS:
None.
CALLS: ***
CONCAT_DIR [1], CONCAT_DIR [2], CONCAT_DIR [3], OBT2TAI, TAI2UTC, UNIQ [1], UNIQ [2]
UNIQ [3], UTC2STR, concat_dir [4]
COMMON:
None.
RESTRICTIONS:
None.
SIDE EFFECTS:
None.
HISTORY:
Version 1, November 15, 1998, Dietmar Germerott, MPAE Lindau. Written
CONTACT:
Dietmar Germerott, MPAE Lindau (germerott@linmpi.mpg.de)
[Previous]
[Next]
NAME:
WRITE_HT
PURPOSE:
This procedure writes out the height-time
file. It is used by the movie program and is not intended to be
used in a standalone fashion.
CATEGORY:
MOVIE
CALLING SEQUENCE:
WRITE_HT,Callt,Htfile,Hdr,R,Pa,Feat,X,Y
INPUTS:
Callt: Parameter indicating whether header or observation
information is being written
0 = header, 1 = observation
Htfile: String containing the file name to be written to
Hdr: Structure containing the image header information
R: Radius of observation in units of solar radii (float)
Pa: Position angle of observation in degrees (float)
X: Column of observation (pixels)
Y: Row of observation (pixels)
CALLS: ***
BREAK_FILE [1], BREAK_FILE [2], BREAK_FILE [3], CHECK_PERMISSION, GETENV_SLASH
READ_HT, STR2UTC [1], STR2UTC [2], STR2UTC [3], UTC2TAI, break_file [4]
CALLED BY:
WRUNMOVIEM, WRUNMOVIEM3, WRUNMOVIEM_RT
SIDE EFFECTS:
Appends information to height-time file if existing or opens a new
one if none exists.
MODIFICATION HISTORY:
Written by: Scott Hawley, NRL summer student, July 1996
V2 5/3/97 RAHoward,NRL Combined all writes to ht-file
V3 9/30/97 RAHoward,NRL Defined Version 2 for HT file
7/25/01, N.Rich - Add CHECK_PERMISSION for htfile and check first line
of htfile for validity
10/02/06 Ed Esfandiari - Modified to handle SECCHI headers.
@(#)write_ht.pro 1.9 07/25/01 :NRL Solar Physics
[Previous]
[Next]
Project : SOHO - CDS
Name : WRITE_IAP
Purpose : Write out the IAP from the science plan.
Explanation : Writes out the Instrument Activity Plan file using the keyword
format from the Interface Control Document, based on the
information in the science plan database.
Use : Result = WRITE_IAP( OP_DAY )
IF WRITE_IAP('1995/03/30') THEN ...
Inputs : OP_DAY = Operational day in any CDS UTC format. Only the UTC
date will be used--any time-of-day information will
be ignored.
Opt. Inputs : None.
Outputs : The IAP is written to a file in the directory given by the
environment variable CDS_IAP_W. The filename has the format
"CDSyyyymmddvvv.IAP", where the number is chosen to make the
filename unique.
The result of the function is 1 for successful and 0 for
unsuccessful.
Opt. Outputs: None.
Keywords : OBSERVER = Name to place in the OBSERVER field in the output
file. If not passed, then "CDS Staff" is used.
COMMENT = Optional string array containing comments to put in
the file header.
ERRMSG = If defined and passed, then any error messages will
be returned to the user in this parameter rather
than depending on the MESSAGE routine in IDL. In
order to use this feature, ERRMSG must be defined
first, e.g.
ERRMSG = ''
Result = WRITE_IAP(OP_DAY, ERRMSG=ERRMSG)
IF ERRMSG NE '' THEN ...
FILE = output IAP file
Calls : ***
ANYTIM2UTC [1], ANYTIM2UTC [2], BREAK_FILE [1], BREAK_FILE [2], BREAK_FILE [3]
CONCAT_DIR [1], CONCAT_DIR [2], CONCAT_DIR [3], CONCAT_IAP, CONCAT_PNT
DATATYPE [1], DATATYPE [2], DATATYPE [3], GET_CDS_FOV, GET_CDS_POINT
GET_CDS_STUDY, GET_CDS_XY, GET_DETAIL, GET_UTC, LIST_DETAIL, LIST_FLAG, LIST_PLAN
LOC_FILE [1], LOC_FILE [2], LOC_FILE [3], PRINT_PNT, REM_SEQ, TAI2UTC, TRIM, UTC2TAI
break_file [4], concat_dir [4], get_host [1], get_host [2]
CALLED BY:
XCPT
Common : None.
Restrictions: Env. var. ZDBASE must point to directory containing the dbase.
Side effects: Even if this routine is successful, it will return a non-null
value for ERRMSG.
Category : Planning, Science
Prev. Hist. : None
Written : William Thompson, 15 November 1994
Modified : Version 1, William Thompson, GSFC, 5 April 1995
Version 2, Dominic Zarro, GSFC, 1 May 1995
- Added FILE keyword
Version 3, William Thompson, GSFC, 2 May 1995
Modified ORIG_ID to work in csh, made an email address.
Version 4, William Thompson, GSFC, 3 May 1995
Added pointing keywords to output
Version 5, William Thompson, GSFC, 9 May 1995
Added INST_IIE_RECEIVER item to output.
Version 6, William Thompson, GSFC, 26 May 1995
Fixed bug with writing INST_IEE_RECEIVER items
Version 7, William Thompson, GSFC, 1-Aug-1995
Changed output filenaming convention
Version 8, William Thompson, GSFC, 11 October 1995
Added INST_IIE_MASTER item to output
Refined INST_IIE_RECEIVER item.
Added XCEN, YCEN to SCIPLAN entries.
Version 9, William Thompson, GSFC, 18 October 1995
Changed environment variable to CDS_IAP_W
Version 10, Zarro, GSFC, 7 December 1995
Added check for non-existent FLAG entries
Version 11, Zarro, GSFC, 20 November 1996
Made CMP_NO=0 a valid number
Version 12, Zarro, GSFC, 20 January 1997
Converted to using GET_CDS_STUDY in place of GET_STUDY
Version 13, Zarro, GSFC, 8 July 1997
Added /NOTRUNCATE keyword
Version 14, Zarro, GSFC, 28 July 1997
Changed to remove double underscores
Version 15, Zarro, GSFC, 31 Aug 1997
Added /NOCONCAT keyword to inhibit
concatanating raster pointings
Version 16, 28-May-1998, William Thompson, GSFC
Prepend X to science plan mnemonic if first character
would be an integer.
Version : Version 16, 28-May-1998
[Previous]
[Next]
NAME: WRITE_IMA
PURPOSE: write image and header to disk file
CATEGORY: BASIC_INTERFACE
CALLING SEQUENCE: WRITE_IMAGE,ima_name,image,hdr
INPUTS: ima_name = string of header filename
image = array containing the image
hdr = header to write to disk
OPTIONAL INPUT PARAMETERS: None
KEYWORD PARAMETERS: None
OUTPUTS: Writes to disk
OPTIONAL OUTPUT PARAMETERS: None
COMMON BLOCKS: None
SIDE EFFECTS: Creates a new disk file
RESTRICTIONS: Assumes file extensions of .img and .hdr
PROCEDURE:
MODIFICATION HISTORY: RAH 7/2/90
M.BOUT 93/11/16 runs for the new structures
arrays and headers and saves them in two files
NOTE: the procedure VISU_IMA is convenient for the displaying of the saved
files. It's not the case of VISU_CAL.
@(#)write_ima.pro 1.2 4/10/93 :NRL Solar Physics
common ccd_header,header,nt,tags ; Modif. A.LL. 93/05/28
[Previous]
[Next]
NAME: WRITE_LAST_IMG
PURPOSE: Create GIF image of the last real time image
processed so that xv can then read and display
it.
CATEGORY: REDUCTION
CALLING SEQUENCE: WRITE_LAST_IMG,Img,Hdr
INPUTS: Img = Input Image array
Hdr = FITS header
OPTIONAL INPUTS: None
KEYWORD PARAMETERS: None
OUTPUTS: None
OPTIONAL OUTPUTS: None
CALLS: ***
DIFBKGND, FXADDPAR [1], FXADDPAR [2], FXPAR [1], FXPAR [2], GAMMA_CT, GETENV_SLASH
LOADCT, REDUCE_STD_SIZE, TVERASE, WRITE_GIF, WRITE_LAST_C1
CALLED BY:
REDUCE_LEVEL_05
COMMON BLOCKS: None
SIDE EFFECTS: None
RESTRICTIONS: This must be done with IDL haveing an X window
display.
PROCEDURE: Scales the image to not larger than 512 x 512,
and creates a GIF image with annotation along
the side
EXAMPLE:
MODIFICATION HISTORY: Written, RA Howard, NRL
VERSION 1 rah 9 Nov 1995
VERSION 2 rah 16 Nov 1995 Conversions added
VERSION 3 rah 29 Nov 1995 Modified layout
VERSION 4 rah 11 Dec 1995 Modified Detector conversion
VERSION 5 rah 12 Jan 1996 Changed assumption to be !order = 0
Added R1 and R2 in place of P1, P2
VERSION 6 rah 19 Apr 1996 Modified scaling of EIT image
Corrected display of PIXSUM to include LEB
VERSION 7 rah 23 May 1996 Corrected handling of images outside of chip
VERSION 8 rah 22 Jul 1996 Corrected handling of cals > 1024 lines
VERSION 9 rah 8 Oct 1996 Added subtraction of background model
VERSION 10 sep 18 Jun 1997 Changed call for new OFFSET_BIAS()
@(#)write_last_img.pro 1.12 10/06/97 LASCO IDL LIBRARY
[Previous]
[Next]
NAME: WRITE_LAST_IMG
PURPOSE: Create GIF image of the last real time image
processed so that xv can then read and display
it.
CATEGORY: REDUCTION
CALLING SEQUENCE: WRITE_LAST_IMG,Img,Hdr
INPUTS: Img = Input Image array
Hdr = FITS header
OPTIONAL INPUTS: None
KEYWORD PARAMETERS: None
OUTPUTS: None
OPTIONAL OUTPUTS: None
CALLS: ***
DIFBKGND, FXADDPAR [1], FXADDPAR [2], FXPAR [1], FXPAR [2], GETENV_SLASH, HIST_EQUAL
LASCO_FITSHDR2STRUCT, OFFSET_BIAS, READFITS [1], READFITS [2], READFITS [3]
REDUCE_STD_SIZE, TVERASE, WRITE_GIF
CALLED BY:
REDUCE_LEVEL_05
COMMON BLOCKS: None
SIDE EFFECTS: None
RESTRICTIONS: This must be done with IDL haveing an X window
display.
PROCEDURE: Scales the image to not larger than 512 x 512,
and creates a GIF image with annotation along
the side
EXAMPLE:
MODIFICATION HISTORY: Written, RA Howard, NRL
VERSION 1 rah 9 Nov 1995
VERSION 2 rah 16 Nov 1995 Conversions added
VERSION 3 rah 29 Nov 1995 Modified layout
VERSION 4 rah 11 Dec 1995 Modified Detector conversion
VERSION 5 rah 12 Jan 1996 Changed assumption to be !order = 0
Added R1 and R2 in place of P1, P2
VERSION 6 rah 19 Apr 1996 Modified scaling of EIT image
Corrected display of PIXSUM to include LEB
VERSION 7 rah 23 May 1996 Corrected handling of images outside of chip
VERSION 8 rah 22 Jul 1996 Corrected handling of cals > 1024 lines
VERSION 9 rah 8 Oct 1996 Added subtraction of background model
VERSION 10 sep 18 Jun 1997 Changed call for new OFFSET_BIAS()
VERSION 11 nbr 28 Oct 1998 Use current year for background image
VERSION 12 rah 3 Mar 1999 Added test for C2/3 Cont RO and Dark
VERSION 13 nbr 23 Mar 1999 Change header to structure before calling REDUCE_STD_SIZE
VERSION 14 nbr 29 Sep 1999 Change min/max for C2 and C3
V 15 nbr Feb 2000 Use ANY_YEAR, new min/max for C2
nbr, 31 Jan 2001 - Do not use ANY_YEAR for C2
nbr, 21 Oct 2001 - Move placement of Logo
nbr, 31 Jan 2002 - no change
@(#)write_last_img.pro 1.24 08/11/03 :LASCO IDL LIBRARY
[Previous]
[Next]
NAME: WRITE_SUMMARIES
PURPOSE: Create FITS and GIF image of the summary image
CATEGORY: REDUCTION
CALLING SEQUENCE: WRITE_SUMMARIES,Img,Hdr
INPUTS: Img = Input Image array
Hdr = FITS header
OPTIONAL INPUTS:
Img2 = Input image array for C1 ase image
Hdr2 = FITS header for Img2 array
OUTPUTS: FITS and GIF files are written
CALLS: ***
CONGRID [1], CONGRID [2], CONGRID [3], DIFBKGND, FXADDPAR [1], FXADDPAR [2]
FXPAR [1], FXPAR [2], GET_TIME_DELAY, OFFSET_BIAS, STR2UTC [1], STR2UTC [2]
STR2UTC [3], TVERASE, UTC2STR, WRITEFITS [1], WRITEFITS [2], WRITE_GIF, XLOADCT [1]
XLOADCT [2], XLOADCT [3]
RESTRICTIONS: This must be done with IDL having an X window
display.
PROCEDURE: Scales the image to not larger than 512 x 512,
and creates a FITS image with LASCO logo in
image Derived from WRITE_LAST_IMG
EXAMPLE:
MODIFICATION HISTORY: Written, RA Howard, NRL
VERSION 1 rah 12 Apr 1996
VERSION 2 rah 15 Apr 1996
VERSION 3 rah 29 Jun 1996
VERSION 4 rah 29 Oct 1996, Img2 array added to subtract C1 base
VERSION 5 rah 21 Jul 1997, changed scaling on C2/C3 to ratio model
@(#)write_summaries.pro 1.7 11/20/97 :NRL Solar Physics
[Previous]
[Next]
NAME: WRITE_SUMMARIES
PURPOSE: Create FITS and GIF image of the summary image
CATEGORY: REDUCTION
CALLING SEQUENCE: WRITE_SUMMARIES,Img,Hdr
INPUTS: Img = Input Image array
Hdr = FITS header
OPTIONAL INPUTS: None
OUTPUTS: FITS and GIF files are written
CALLS: ***
CONGRID [1], CONGRID [2], CONGRID [3], FXADDPAR [1], FXADDPAR [2], FXPAR [1]
FXPAR [2], SXADDPAR [1], SXADDPAR [2], SXADDPAR [3], SXDELPAR [1], SXDELPAR [2]
SXDELPAR [3], TVERASE, WRITEFITS [1], WRITEFITS [2], WRITE_GIF, WRITE_SUMMARIES2
RESTRICTIONS: This must be done with IDL having an X window
display.
PROCEDURE: Scales the image to not larger than 512 x 512,
and creates a FITS image with LASCO logo in
image Derived from WRITE_LAST_IMG
EXAMPLE:
MODIFICATION HISTORY: Written, RA Howard, NRL
VERSION 1 rah 12 Apr 1996
VERSION 2 rah 15 Apr 1996
VERSION 2.1 SPP 28 May 1996 (Replaced DATE-OBS and TIME-OBS
keywords with DATE_OBS and TIME_OBS).
@(#)write_summaries2.pro 1.1 10/05/96 LASCO IDL LIBRARY
[Previous]
[Next]
PROJET:
SOHO - LASCO
NAME:
WRITE_ZONE
PURPOSE:
Writes a missing zone
CALLED BY:
FUZZY_IMAGE
PROCEDURE:
Writes a missing zone (array of pixel) surrounding a given list of
missing blocks onto an image
A missing zone is defined as the smallest rectangle of blocks that
surrounds a cluster of missing blocks (likely to be neighbor missing
blocks) but has no missing block on its border (its outermost rows
and columns)
For example, 1 single block leads to a 3x3 surrounding block zone
CATEGORY:
Missing Blocks
CALLING SEQUENCE:
write_zone, image, list_miss_blocks, zone
INPUTS:
image the image where to write the zone onto
(image is both an input and an output)
list_miss_blocks a list of missing blocks (or 1 block) defining
the missing zone
zone an array of pixels to overwrite onto the image
KEYWORD INPUT:
rebindex : rebin index (see fuzzy_image.pro)
OUTPUTS:
zone is overwritten onto image
(image is both an input and an output)
MODIFICATION HISTORY:
Written by J.MORE, October 1996
Add of rebindex keyword on 28/01/2000 by A.Thernisien
[Previous]
[Next]
NAME:
WRITIMA.PRO
PURPOSE:
Draws a box in an image and replaces all pixels values inside
the box by the given value
CATEGORY:
??
CALLING SEQUENCE:
WRITIMA, ima, val
INPUTS:
ima image array (in memory)
val value to be written
KEYWORD PARAMETERS:
None
OUTPUTS:
ima with the selected intervals replaced
CALLS: ***
ALIGN1, visu_cal
COMMON BLOCKS:
None.
SIDE EFFECTS:
None
RESTRICTIONS:
PROCEDURE:
Straightforward.
MODIFICATION HISTORY:
Written by M.B v.1.0 LAS 12/13/93
[Previous]
[Next]
NAME:
wrt_ebc2asc
PURPOSE:
Given an EBCDIC input file, create
an ASCII output file. The input file must
have fixed record lengths.
INPUT:
infil - The name of the input file
outfil - The name of the output file
recsiz - The number of characters per line
CALLS: ***
str_ebc2asc [1], str_ebc2asc [2]
HISTORY:
Written Oct-91 by M.Morrison to convert the
Solar-A "AOSLOS" mainframe orbital prediction
files to ASCII (their records are 137 characters)
Updated, 18-Oct-91, J. Lemen to allow for independent input
and output record sizes.
Updated, 11-nov-91, J. Lemen: Force output record size if the
output string contains null bytes.
[Previous]
[Next]
NAME:
wrt_fits
PURPOSE:
Write a FITS file given an image and a FITS header
CALLING SEQUENCE:
wrt_fits, outfil, head, image
INPUT:
outfil - The output file name
head - A string array with FITS format header
The routine will make sure each line is 80
characters and that there are 36 (or 36*n) entries
image - The data to save
FUTURE OPTIONS:
If "head" is not defined, created a basic header to save
the data
CALLS: ***
GET_NBYTES, data_type [1], data_type [2], dec2sun [1], dec2sun [2]
mk_fits_head [1], mk_fits_head [2]
CALLED BY:
DISPLOI_MON5K, cal_pol, mk_gsn_obs_s1, mk_limb_pixmap, mk_mdi_fits, nob_name_fix
norik_name_fix, raw_list2pixmap, rd_hirsaiso, sda2fits, selsisi2fits, soon2fits
HISTORY:
Written 1-Jul-92 by M.Morrison
11-Sep-92 (MDM) - Fixed bug with checking that header was 36
elements long
19-Oct-92 (MDM) - Modification to swap bytes when running on
DEC machines. The FITS byte convention is the
"non-DEC" byte order.
27-Oct-92 (MDM) - Modified to write zeros to the end of the
last data record to make it end on a 2880 byte
logical record boundary.
- Corrected error in byte swapping fix of 19-Oct
- Added capability to build header if it is not
passed.
1-Dec-93 (JBG) - added openw compatability for vms
2-Feb-94 (MDM) - Modified to save floating points properly
6-Apr-94 (DMZ) - added check for DEC/OSF
15-Jun-94 (MDM) - Modified to check header for blank lines and
remove them off the back end. (done by looking
for "END" and dropping all else behind it)
28-Jun-94 (MDM) - Corrected for saving floating points properly
and expanded to work on double point images
10-Aug-94 (MDM) - Corrected the figuring of whether the END was there
- Got back in sync by adding DMZ 6-Apr-94 mod
[Previous]
[Next]
NAME:
WRT_GEN
PURPOSE:
Write SXT generic file
CALLING SEQUENCE:
WRT_GEN, filename, data [,TEXT=TEXT, SUCCESS, /REPLACE]
INPUTS:
DATA - data to save (simple structure, n-dimen array, or scaler)
FILENAME - string containing generic file name
OPTIONAL KEYWORD PARAMETERS:
TEXT - (Input) Generic file text description
REPLACE - (Input) If set , forces overwriting of existing file
HEADER - (Output) Returns ystem imposed header (version/creattion date)
SUCCESS - (Output) Returns success code
FILE I/O:
If succesful, named file is created or updated (overwritten)
COMMON BLOCKS;
NONE
CALLS: ***
ARR2STR [1], Arr2Str [2], FILE_EXIST [2], MAKE_STR [1], MAKE_STR [2]
file_exist [1], file_exist [3]
RESTRICTIONS:
Version 00 does not support nested structures for DATA
MODIFICATION HISTORY:
Version 0 - SLF, 3/5/91
slf, 19-dec-1992 changed variable name to function call
variable/function conflict (file_exit)
force text to be scaler string
[Previous]
[Next]
NAME:
WRT_GENX
PURPOSE:
Write SXT generic file - XDR format - see savegen.pro front end
CALLING SEQUENCE:
WRT_GEN, filename, data [,TEXT=TEXT, SUCCESS, /REPLACE]
INPUTS:
DATA - data to save (simple structure, n-dimen array, or scaler)
FILENAME - string containing generic file name
OPTIONAL KEYWORD PARAMETERS:
TEXT - (Input) Generic file text description
REPLACE - (Input) If set , forces overwriting of existing file
XDR - (Input) If set, file is XDR format
HEADER - (Output) Returns ystem imposed header (version/creattion date)
SUCCESS - (Output) Returns success code
FILE I/O:
If succesful, named file is created or updated (overwritten)
COMMON BLOCKS;
NONE
CALLS: ***
ARR2STR [1], Arr2Str [2], genx_head [1], genx_head [2], wrt_str [1], wrt_str [2]
CALLED BY:
savegen [1], savegen [2]
RESTRICTIONS:
Version 00 does not support nested structures for DATA
MODIFICATION HISTORY:
Version 0 - SLF, 3/5/91
Version 1 - SLF, 10/29/91 ; handle nested structures and
; XDR (simplifies string saves)
slf, 21-dec-93 ; force text to be scaler if array
Version 2 - slf, 28-jan-93 ; call genx_head for header struct.
; include idl !version in genx head
slf, 19-mar-93 ; dont clobber input text
rdb, 25-Apr-95 ; explicit write of !version fields (v4 compatibility)
[Previous]
[Next]
NAME:
wrt_sci160k_img
PURPOSE:
To FITs-fy or GIFify MDI data given some raw telemetry files
and a list of DPCs to search for.
SAMPLE CALLING SEQUENCE:
wrt_sci160k_img, file_list('/data14/data_eof/sci160k/960812','*_01.tfr'), '/data14/daily', 'daily'
wrt_sci160k_img, get_last_tfr(1), '/md84/morrison', 'daily'
INPUT:
ff - The list of tfr files to search
outdir0 - the output directory
dpc_filter- The string "plan", "daily", or "exec"
CALLS: ***
CONCAT_DIR [1], CONCAT_DIR [2], CONCAT_DIR [3], FILE_EXIST [2], GET_MDI_SCALE
MK_MDI_GIF, RFITS [1], RFITS [2], RFITS [3], SXPAR [1], SXPAR [2], SXPAR [3]
TIME2FILE, WRT_SCI160K_S1, concat_dir [4], darklimb_correct, data_type [1]
data_type [2], file_exist [1], file_exist [3], fmt_tim [1], fmt_tim [2]
int2secarr [1], int2secarr [2], list_tfi, mk_mdi_fits, rd_tfile [1], rd_tfile [2]
read_mdi, str_replace [1], str_replace [2], tv2 [1], tv2 [2], xyouts2 [1]
xyouts2 [2], zbuff2file [1], zbuff2file [2]
OPTIONAL KEYWORD INPUT:
time_win - Two element array with the start/end time to consider
HISTORY:
Written 12-Aug-96 by M.MOrrison using "go_fits_sci160k" as
the starting point.
13-Aug-96 (MDM) - Renamed to wrt_sci160k_img
- Modified how the DPC table file is used
(have all functions in one file, not a file per function (daily, planning, ...)
- Allowed saving as GIF file
- Added time_win
- Added match1
15-Aug-96 (MDM) - Added NOUT
- Pass min/max scaling to mk_mdi_gif
- Added mark_hr_fov
- Added INMAT
- Added mask_top and force_dummy
16-Aug-96 (MDM) - Added scale_file
19-Aug-96 (MDM) - Modified so that it will get the mag in two halfs
- Added subdir_pre option
19-Nov-96 (MDM) - Modified screening criteria from min>-1400
to min>-4400 (magnetograms are active now)
1-Apr-97 (MDM) - Added "rescale=0.5" to MK_MDI_FITS
15-Oct-97 (MDM) - Modified SUBDIR_PRE option to put all files into
a directory per month
4-Jan-2000 (RIB) - Changed rescale to 1.0 for fits files
[Previous]
[Next]
Name: wrt_str
Purpose: write data structure size information for SXT generic files
Input Parameters:
structure: input idl structure type
unit: logical unit for write - assumed alread open
Method: recursive for nested structures
CALLS: ***
data_chk [1], data_chk [2]
CALLED BY:
WRT_GENX [1], WRT_GENX [2], wrt_sumer
History: slf, 10/25/91
[Previous]
[Next]
NAME:
wrt_sumer
PURPOSE:
To write the data and index structures returned from rd_sumer to
genx files. These files may also be read with rd_sumer.
CATEGORY:
Data handling.
CALLING SEQUENCE:
wrt_sumer,index,data
wrt_sumer,index,data,file_out=filename,dir_out=directory
INPUTS:
The index and data structure returned from rd_sumer.
OPTIONAL INPUTS:
file_out: The name of the file to be written. The default is to use
the original SUMER FITS file name with the extension
'.genx' in place of '.fits'.
dir_out : The directory where the file is to be written. The default
is to write to the current directory
KEYWORD PARAMETERS:
verbose: Prints the output file name to the screen.
OUTPUTS:
A generic file using the xdr format.
OPTIONAL OUTPUTS:
None.
CALLS: ***
CONCAT_DIR [1], CONCAT_DIR [2], CONCAT_DIR [3], DATATYPE [1], DATATYPE [2]
DATATYPE [3], concat_dir [4], wrt_str [1], wrt_str [2]
COMMON BLOCKS:
None.
SIDE EFFECTS:
Any existing files with the same name are overwriten.
RESTRICTIONS:
Note that this file format may be replaced with something better!
PROCEDURE:
Uses unformatted writes to save the data to a file. Uses wrt_str to
save the index structure.
EXAMPLE:
The following would save the data and index structures in the file
sum_960516_052729.genx in the current directory:
IDL> filename = "sum_960516_052729.fits"
IDL> rd_sumer,filename,index,data
IDL> wrt_sumer,index,data
MODIFICATION HISTORY:
HPW 12-AUG-1996:
HPW 07-OCT-1996: Modified the routine to write a new format of
.genx files which allows the nodata switch on
rd_sumer to work properly.
HPW 07-OCT-1996: Fixed a bug related to the naming of files.
HPW 17-JUL-1997: Modified file format to facilitate reading
individual data columns.
[Previous]
[Next]
Project : SOHO - LASCO/EIT
Name : WRUNMOVIE
Purpose : Widget tool to display animation sequence.
Explanation : This tool allows the user to view a series of images as
an animation sequence. The user can control the direction,
speed, and number of frames with widget controls.
Use : IDL> WRUNMOVIE, NAMES=names
Inputs : None.
Outputs : None.
Keywords : NAMES Labels to display for frames. STRARR()
Calls :
CALLED BY:
COMBINE_MVI, GENERIC_MOVIE, MKMOVIE, MKMOVIE0 obsolete version of mkmoviepro
MKMOVIEWLC, MKMOVIE_kpd
Restrictions: Data frames must be preloaded into pixmap 9, size(xsize,ysize*len).
Use mkmovie.pro to load into pixmap.
Side effects: None.
Category : Image Display. Animation.
Written : Scott Paswaters, NRL Feb. 13 1996.
Modified :
Version :
[Previous]
[Next]
Project : SOHO - LASCO/EIT
Name : WRUNMOVIE
Purpose : Widget tool to display animation sequence.
Explanation : This tool allows the user to view a series of images as
an animation sequence. The user can control the direction,
speed, and number of frames with widget controls.
Use : IDL> WRUNMOVIE [, arg1 [, NAMES=names [,SKIP=skip]]]
Use the VIDEO keyword to automatically prepare video-ready format (640x480);
use with IMG_REBIN if you want to keep full x-field
IDL> WRUNMOVIE, /VIDEO [,/IMG_REBIN]
Without any inputs, program will prompt user to select an existing .mvi file.
CALLED BY:
COMBINE_MVI, GENERIC_MOVIE, MKMOVIE, MKMOVIE0 obsolete version of mkmoviepro
MKMOVIEWLC, MKMOVIE_kpd
Example : IDL> WRUNMOVIE
Or you could have one argument, the .mvi file you want to load.
Example : IDL> WRUNMOVIE, 'mymovie.mvi'
Or if you have pre-loaded images into pixmaps (like MKMOVIE.PRO does) call:
Example : IDL> WRUNMOVIE, win_index, NAMES=names
Where win_index is an array of the window numbers and names is optionally
a STRARR() containing names of each frame.
;
Use the keyword SKIP to skip every n frames (good for large movies).
Example : IDL> WRUNMOVIE, SKIP=1 ;* to skip every other frame
Use the keyword START to start reading movie at frame n (good for large movies).
Example : IDL> WRUNMOVIE, START=100 ;* frame 100 becomes 1st frame of movie
Use the keyword LENGTH to specify number of frames to read in (good for large movies).
Example : IDL> WRUNMOVIE, START=100, LENGTH=60 ;* to load frames 100-159
Use the keyword TIMES to display detector & date & time on frames (if not already there).
Example : IDL> WRUNMOVIE, /TIMES
Use the keyword NOCAM with TIMES keyword to omit the detector from TIMES display.
Example : IDL> WRUNMOVIE, /TIMES, /NOCAM
Use the keyword COORDS to display subframe of movie images. [x1,x2,y1,y2]
Note: COORDS is applied before IMG_REBIN if both are selected.
OR just use /COORDS to select coordinates interactively
Example : IDL> WRUNMOVIE, 'mymovie.mvi', COORDS=[256,256+511,175,175+255]
Use the keyword IMG_REBIN to resize movie. If shrinking by integer factor REBIN
is used otherwise CONGRID with linear interpolation is used.
Example : IDL> WRUNMOVIE, 'mymovie.mvi', IMG_REBIN=[512,512]
Use the keyword SAVE to just save the movie and exit (for use in batch mode).
Example : IDL> WRUNMOVIE, win_index, SAVE='mymovie.mvi'
Use the keyword DIFF to subtract a base frame from all frames in the movie.
The base frame is the first frame. Or you can use the keyword START to set it.
Example : IDL> WRUNMOVIE, 'mymovie.mvi', /DIFF
Use the keyword RUNNING_DIFF to create a running difference movie.
The default is to subtract the previous frame. Use RUNNING_DIFF=2 to subtract
2 frames prior from each image.
Example : IDL> WRUNMOVIE, 'mymovie.mvi', /RUNNING_DIFF
Use the keyword /COSMIC to removie cosmic rays.
Example : IDL> WRUNMOVIE, 'mymovie.mvi', /COSMIC
Use the keyword /FIXGAPS to replace data gaps with data from previous frame
The default is to assume missing blocks are 32x32,
For 1/2 resolution images use BLOCK_SIZE=16 for example
Example : IDL> WRUNMOVIE, 'mymovie.mvi', /FIXGAPS
Use the keyword /DRAW_LIMB to draw a circle at the solar limb
Example : IDL> WRUNMOVIE, 'mymovie.mvi', /DRAW_LIMB
OTHER KEYWORDS:
LOAD Set to use saved keyword values, if any
KEEP Set to not delete pixmaps
CHSZ Set to desired size of time label (default=1.5)
SPOKE Display spoked images *** NEEDS WORK ***
DIF_MIN, DIF_MAX Set to desired range for scaling difference images; default is +/-70
RECTIFIED Set to number of degrees images rotated to put solar north up (affects header only)
/DORECTIFY Rotate frames 180 degrees
/CENRECTIFY Compute new center for 180-deg-rotation
/TRUECOLOR Set to treat images as true color images
Calls : ***
ADD_LASCO_LOGO, AWIN, BREAK_FILE [1], BREAK_FILE [2], BREAK_FILE [3], CCOSMICS
CHECK_PERMISSION, CONGRID [1], CONGRID [2], CONGRID [3], CW_BGROUP, CW_PDMENU
DATATYPE [1], DATATYPE [2], DATATYPE [3], EXPTV, FTVREAD, FXADDPAR [1], FXADDPAR [2]
LOADCT, MVIHDR2STRUCT, PICKFILE, PIXMAPS2MPEG, READ_MVI, SETIMAGE, SET_DATA_GAPS
TAG_EXIST [1], TAG_EXIST [2], TVCIRCLE, TVSUBIMAGE, WIN2PS, WRITE_DISK_MOVIE [1]
WRITE_DISK_MOVIE [2], WRITE_DISK_MOVIE [3], WRITE_GIF, WRUNMOVIEM
WRUNMOVIE_BGROUP, WRUNMOVIE_DRAW, WRUNMOVIE_EVENT, XLOADCT [1], XLOADCT [2]
XLOADCT [3], XMANAGER, XREGISTERED, break_file [4], point_filter, rad_spoke
Side effects: None.
Category : Image Display. Animation.
Written : Scott Paswaters, NRL Feb. 13 1996.
Modified : SEP 29 May 1996 - Changed to multiple pixmaps for images.
Added buttons to save and load movie files (.mvi).
Seperated control buttons from display window.
SEP 9 Jul 1996 - Added keyword to pass image headers.
SEP 7 Jan 1997 - Added skip keyword.
SEP 9 Jan 1997 - Added START, LENGTH keywords.
SEP 05 Feb 1997 - Mods for mvi version 1 format.
SEP 18 Apr 1997 - Added .mpg output option with 1/2 resolution.
SEP 16 May 1997 - Added save option and IMG_REBIN option.
SEP 19 May 1997 - Added COORDS option.
SEP 27 Jun 1997 - Added permission checks for output.
SEP 22 Sep 1997 - Added current frame scrolling widget.
SEP 02 Oct 1997 - Added ability to interactively select subimage coords.
SEP 18 Nov 1997 - Added /COSMIC /FIXGAPS and /DRAW_LIMB keywords.
SEP 11 Dec 1997 - Added button to call WRUNMOVIEM, only save frames first->last
SEP 08 May 1998 - Added BLOCK_SIZE keyword
SP 02 Mar 1999 - Added Scroll bars for large images
NBR 26 Mar 1999 - Added LOGO keyword; Add Save-movie-as-GIFS button
NBR 09 Apr 1999 - Use short_names for frame names
NBR Jul 1999 - Add VIDEO keyword; Add detector to TIMES label
NBR Aug 1999 - Add detector to GIF names
NBR Sep 1999 - Add NOCAM keyword
??? 06 FEB 2000 - Add bytscl range for DIFF and RUNNING_DIFF images (DIF_MIN/MAX keywords)
JIE 14 JUN 2000 - ADD keyword CHSZ to adjust the size of displayed time
JIE 2 MAR 2000 - ADD keyword SPOKE to display spoked images
NBR 3 Oct 2000 - Save gif files in current directory by default
RAH 18 Oct 2000 - Added option to not rescale a postscript image. Default was to rescale
NBR 15 Dec 2000 - Allow setting of TIMES keyword to color desired
NBR 3 Jan 2001 - Put win_index in common block, add KEEP keyword
NBR 4 Jan 2001 - Remove win_index from common block
NBR 10 Apr 2001 - Change output gif filenames and reconcile diverging versions of this procedure
NBR 25 Apr 2002 - Change default movie speed
nbr 3 sep 2002 - allow user input of root name for saving movie as gifs
nbr 24 sep 2003 - Add RECTIFIED keyword; add rect to moviev and saving mvis
nbr 26 Sep 2003 - Add /DORECTIFY, /CENRECTIFY
nbr 29 Sep 2003 - Add RECTIFIED to wrunmoviem call
nbr 1 Oct 2003 - Fix rect=0
nbr 6 Feb 2004 - Save some keywords via common block
- IF 24-bit display, loadct,0 after loading mvi
- use ftvread.pro if saving 1 GIF frame
nbr 12 Feb 2004 - Fix START; add dolimb to COMMON block
nbr 26 Feb 2004 - move loadct,0 for 24-bit display
KB Aug 19 2004 - Fix "LOAD" bug
rah Sep 16 2004 - Add capability for true color images
aee Jun 15 2006 - Added coed to handle SECCHI headers
aee Jun 22 2006 - coorected non-secchi date-obs bug.
Version :
@(#)wrunmovie.pro 1.27, 09/23/04 : NRL LASCO LIBRARY
See Also : MKMOVIE.PRO
[Previous]
[Next]
Project : SOHO - LASCO/EIT
Name : WRUNMOVIE4
Purpose : Widget tool to display animation sequence.
Explanation : This tool allows the user to view a series of images as
an animation sequence. The user can control the direction,
speed, and number of frames with widget controls.
Use : IDL> WRUNMOVIE4 [, arg1 [, NAMES=names [,/PREVIOUS]]]
Without any inputs, program will prompt user to select an existing .mvi file.
Example : IDL> WRUNMOVIE4
Or you could have one argument, the .mvi file you want to load.
Example : IDL> WRUNMOVIE4, 'mymovie.mvi'
Or if you have pre-loaded images into pixmaps (like MKMOVIE2.PRO does) call:
Where win_index is an array of the window numbers and names is optionally
a STRARR() containing names of each frame.
Example : IDL> WRUNMOVIE4, win_index, NAMES=names
If after exiting WRUNMOVIE4 you want to re-load the movie call:
Example : IDL> WRUNMOVIE4, /PREVIOUS
Calls : ***
BREAK_FILE [1], BREAK_FILE [2], BREAK_FILE [3], CW_BGROUP, DATATYPE [1]
DATATYPE [2], DATATYPE [3], FXADDPAR [1], FXADDPAR [2], PICKFILE, PRINTIT, RSTRPOS
WRITE_DISK_MOVIE [1], WRITE_DISK_MOVIE [2], WRITE_DISK_MOVIE [3]
WRUNMOVIE_BGROUP2, WRUNMOVIE_DRAW2, WRUNMOVIE_EVENT3, XLOADCT [1], XLOADCT [2]
XLOADCT [3], XMANAGER, XREGISTERED2, break_file [4]
Side effects: None.
Category : Image Display. Animation.
Written : Scott Paswaters, NRL Feb. 13 1996.
Modified : SEP 29 May 1996 - Changed to multiple pixmaps for images.
Added buttons to save and load movie files (.mvi).
Seperated control buttons from display window.
SEP 9 Jul 1996 - Added keyword to pass image headers.
Version :
See Also : MKMOVIE2.PRO
[Previous]
[Next]
Project : SOHO - LASCO/EIT
Name : WRUNMOVIEM
Purpose : Widget tool to display animation sequence.
Explanation : This tool allows the user to view a series of images as
an animation sequence. The user can control the direction,
speed, and number of frames with widget controls.
Use : IDL> WRUNMOVIEM [, arg1 [, NAMES=names [,/PREVIOUS]]]
Without any inputs, program will prompt user to select an existing .mvi file.
CALLED BY:
MKMOVIEM, WRUNMOVIE [2]
Example : IDL> WRUNMOVIEM
Example : IDL> WRUNMOVIEM, /ROLL_PER_FRAME
Or you could have one argument, the .mvi file you want to load.
Example : IDL> WRUNMOVIEM, 'mymovie.mvi'
Or if you have pre-loaded images into pixmaps (like MKMOVIEM.PRO does) call:
Where win_index is an array of the window numbers and names is optionally
a STRARR() containing names of each frame.
Example : IDL> WRUNMOVIEM, win_index, NAMES=names
If after exiting WRUNMOVIEM you want to re-load the movie call:
Example : IDL> WRUNMOVIEM, /PREVIOUS
Calls : ***
BREAK_FILE [1], BREAK_FILE [2], BREAK_FILE [3], C2_DISTORTION, C3_DISTORTION
CW_BGROUP, DATATYPE [1], DATATYPE [2], DATATYPE [3], FILE_EXIST [2], FXADDPAR [1]
FXADDPAR [2], GET_ROLL_OR_XY, GET_SEC_PIXEL, GET_SOLAR_RADIUS
GET_SUN_CENTER [1], GET_SUN_CENTER [2], GET_SUN_CENTER [3], MVIHDR2STRUCT
PICKFILE, POPUP_MSG, READ_MVI, SHOW_MENU, WRITE_DISK_MOVIE [1]
WRITE_DISK_MOVIE [2], WRITE_DISK_MOVIE [3], WRITE_HT, WRUNMOVIE_BGROUPM
WRUNMOVIE_DRAWM, WRUNMOVIE_EVENTM, XEDITFRAME, XLOADCT [1], XLOADCT [2]
XLOADCT [3], XMANAGER, XPLOT_HT, XREGISTERED, break_file [4], file_exist [1]
file_exist [3]
Side effects: None.
Category : Image Display. Animation.
Written : Scott Paswaters, NRL Feb. 13 1996.
Modified : SEP 29 May 1996 - Changed to multiple pixmaps for images.
Added buttons to save and load movie files (.mvi).
Seperated control buttons from display window.
SEP 9 Jul 1996 - Added keyword to pass image headers.
SHH 12 Jul 1996 - Enabled display of cursor position in draw window
Added height-time plotting capability
Added Edit Frame option
Modified effects of mouse buttons
Added buttons above draw window
Modified display of Control window
SEP 29 Sep 1996 - Added routines from DAB for applying C3 geometric distortion and
calculating solar radius as function of time.
SEP 01 Oct 1996 - Added call to C3_DISTORTION for applying C3 geometric distortion
RAH 01 Nov 1996 - Prior to PLOT_HT call, don't ask for filename
SHH 09 Jan 1997 - Added "Start H-T" button
Calls XEDITFRAME
SEP 05 Feb 1997 - Mods for mvi version 1 format.
SEP 21 Mar 1997 - use sun center and arc_sec/pixel if saved in .mvi file.
SEP 16 May 1997 - added DN output to window, added button to update center.
SEP 23 Sep 1997 - added active slider widget for current frame.
NBR 06 Jan 1999 - changed sec_pix check in file_hdr
DW 11 Jan 1999 - added C2_DISTORTION and roll angle
NBR 02 Mar 1999 - eliminated sec_pix check for getting sun center
NBR 09 Jul 1999 - Add warning if frame headers not saved
NBR, 05 Mar 2002 - Only compute roll angle once per day; use AVG instead of STAR for roll; extend common block
NBR, 24 Sep 2003 - Add mvi header roll correction (rect) in moviev; print mvi header; save MVIs with rect
NBR, 29 Sep 2003 - Add RECTIFIED keyword for call from WRUNMOVIE
NBR, 20 Oct 2003 - Allow case where xcen is REALLY zero
KB, Dec 15,2003 - Added slider so full-res images can be used with smaller screens
KB, Sep07, 2004 - When displaying Pos. Ang, if nominal_roll_attitude.dat can't be found, use default values
AEE, Jan25, 2005 - Generate roll angles (using new database) when reading in frames
and keep around to use later when going back and forth between
frames (to make it quicker). The get_roll_or_xy is called for
first frame of the movie and also fo multi-day movies when a day
boundry is crossed. I added keyword ROLL_PER_FRAME to calculate
a roll for each frame if present. Otherwise, default is to calculate
one roll per day instead of one roll per frame.
AEE, Jan27, 2005 - Calculate one roll per day if wrunmoviem is called from within wrunmovie (since
movie frames are already readin without calculating rolls in wrunmovie).
AEE, Jan31, 2005 - set roll to zero when image header does not have valid date/time.
AEE, jul15, 2006 - Added code to handle SECCHI headers.
Version :
@(#)wrunmoviem.pro 1.27 09/07/04 :LASCO NRL LIBRARY
See Also : MKMOVIEM.PRO
[Previous]
[Next]
project : SOHO - LASCO/EIT
Name : WRUNMOVIEM3
Purpose : Widget tool to display animation sequence.
Explanation : This tool allows the user to view a series of images as
an animation sequence. The user can control the direction,
speed, and number of frames with widget controls.
Use : IDL> WRUNMOVIEM [, arg1 [, NAMES=names [,/PREVIOUS]]]
Without any inputs, program will prompt user to select an existing .mvi file.
Example : IDL> WRUNMOVIEM
Or you could have one argument, the .mvi file you want to load.
Example : IDL> WRUNMOVIEM, 'mymovie.mvi'
Or if you have pre-loaded images into pixmaps (like MKMOVIEM.pro does) call:
Where win_index is an array of the window numbers and names is optionally
a STRARR() containing names of each frame.
Example : IDL> WRUNMOVIEM, win_index, NAMES=names
if after exiting WRUNMOVIEM you want to re-load the movie call:
Example : IDL> WRUNMOVIEM, /PREVIOUS
Calls : ***
BREAK_FILE [1], BREAK_FILE [2], BREAK_FILE [3], C2_DISTORTION, C3_DISTORTION
CW_BGROUP, DATATYPE [1], DATATYPE [2], DATATYPE [3], FXADDPAR [1], FXADDPAR [2]
GET_ROLL_OR_XY, GET_SEC_PIXEL, GET_SOLAR_RADIUS, GET_SUN_CENTER [1]
GET_SUN_CENTER [2], GET_SUN_CENTER [3], MVIHDR2STRUCT, PICKFILE, POPUP_MSG
READ_MVI3, SHOW_MENU, WRITE_DISK_MOVIE3, WRITE_HT, WRUNMOVIE_BGROUPM
WRUNMOVIE_DRAWM, WRUNMOVIE_EVENTM, XEDITFRAME, XLOADCT [1], XLOADCT [2]
XLOADCT [3], XMANAGER, XPLOT_HT, XREGISTERED, break_file [4]
Side effects: None.
Category : Image Display. Animation.
Written : Scott Paswaters, NRL Feb. 13 1996.
Modified : SEP 29 May 1996 - Changed to multiple pixmaps for images.
Added buttons to save and load movie files (.mvi).
Seperated control buttons from display window.
SEP 9 Jul 1996 - Added keyword to pass image headers.
SHH 12 Jul 1996 - Enabled display of cursor position in draw window
Added height-time plotting capability
Added Edit Frame option
Modified effects of mouse buttons
Added buttons above draw window
Modified display of Control window
SEP 29 Sep 1996 - Added routines from DAB for applying C3 geometric distortion and
calculating solar radius as function of time.
SEP 01 Oct 1996 - Added call to C3_DISTORTION for applying C3 geometric distortion
RAH 01 Nov 1996 - Prior to PLOT_HT call, don't ask for filename
SHH 09 Jan 1997 - Added "Start H-T" button
Calls XEDITFRAME
SEP 05 Feb 1997 - Mods for mvi version 1 FORMAT.
SEP 21 Mar 1997 - use sun center and arc_sec/pixel if saved in .mvi file.
SEP 16 May 1997 - added DN output to window, added button to update center.
SEP 23 Sep 1997 - added active slider widget for current frame.
NBR 06 Jan 1999 - changed sec_pix check in file_hdr
DW 11 Jan 1999 - added C2_DISTORTION and roll angle
NBR 02 Mar 1999 - eliminated sec_pix check for getting sun center
NBR 09 Jul 1999 - Add warning if frame headers not saved
thejake 010705 - begin modification to handle RTHETA movies (Version 3)
thejake 011109 - After testing, additions do not seem to have done any harm so adding
nbr, 25 Aug 2003 - Remove #s
WRUNMOVIEM3, MVIPLAY3, WRITE_DISK_MOVIE3, and READ_MVI3 to library.
Once an MVI is written with the version 3 software, it will need to
be read with it as well.
Version : 3.1
See Also : MKMOVIEM.pro
%H% %W% : LASCO IDL LIBRARY
[Previous]
[Next]
Project : SOHO - LASCO/EIT
Name : WRUNMOVIEM_RT
Purpose : Widget tool to display animation sequence.
Explanation : This tool allows the user to view a series of images as
an animation sequence. The user can control the direction,
speed, and number of frames with widget controls.
Use : IDL> WRUNMOVIEM_RT [, arg1 [, NAMES=names [,/PREVIOUS]]]
Without any inputs, program will prompt user to select an existing .mvi file.
CALLED BY:
RTMVIPLAY [1], RTMVIPLAYPNG
Example : IDL> WRUNMOVIEM_RT
Or you could have one argument, the .mvi file you want to load.
Example : IDL> WRUNMOVIEM_RT, 'mymovie.mvi'
Or if you have pre-loaded images into pixmaps (like MKMOVIEM.PRO does) call:
Where win_index is an array of the window numbers and names is optionally
a STRARR() containing names of each frame.
Example : IDL> WRUNMOVIEM_RT, win_index, NAMES=names
If after exiting WRUNMOVIEM_RT you want to re-load the movie call:
Example : IDL> WRUNMOVIEM_RT, /PREVIOUS
Calls : ***
BREAK_FILE [1], BREAK_FILE [2], BREAK_FILE [3], C2_DISTORTION, CW_BGROUP
DATATYPE [1], DATATYPE [2], DATATYPE [3], FXADDPAR [1], FXADDPAR [2]
MVIHDR2STRUCT, PICKFILE, POPUP_MSG, READ_MVI, SHOW_MENU, WRITE_DISK_MOVIE [1]
WRITE_DISK_MOVIE [2], WRITE_DISK_MOVIE [3], WRITE_HT, WRUNMOVIE_BGROUPM
WRUNMOVIE_DRAWM, WRUNMOVIE_EVENTM, XEDITFRAME, XLOADCT [1], XLOADCT [2]
XLOADCT [3], XMANAGER, XPLOT_HT, XREGISTERED, break_file [4]
Side effects: None.
Category : Image Display. Animation.
Written : Scott Paswaters, NRL Feb. 13 1996.
Modified : SEP 29 May 1996 - Changed to multiple pixmaps for images.
Added buttons to save and load movie files (.mvi).
Seperated control buttons from display window.
SEP 9 Jul 1996 - Added keyword to pass image headers.
SHH 12 Jul 1996 - Enabled display of cursor position in draw window
Added height-time plotting capability
Added Edit Frame option
Modified effects of mouse buttons
Added buttons above draw window
Modified display of Control window
SEP 29 Sep 1996 - Added routines from DAB for applying C3 geometric distortion and
calculating solar radius as function of time.
SEP 01 Oct 1996 - Added call to C3_DISTORTION for applying C3 geometric distortion
RAH 01 Nov 1996 - Prior to PLOT_HT call, don't ask for filename
SHH 09 Jan 1997 - Added "Start H-T" button
Calls XEDITFRAME
SEP 05 Feb 1997 - Mods for mvi version 1 format.
SEP 21 Mar 1997 - use sun center and arc_sec/pixel if saved in .mvi file.
SEP 16 May 1997 - added DN output to window, added button to update center.
SEP 23 Sep 1997 - added active slider widget for current frame.
NBR 06 Jan 1999 - changed sec_pix check in file_hdr
DW 11 Jan 1999 - added C2_DISTORTION and roll angle
NBR 02 Mar 1999 - eliminated sec_pix check for getting sun center
NBR 09 Jul 1999 - Add warning if frame headers not saved
A. Vourlidas, 11/9/01 - Modified from WRUNMOVIEM to allow HT measurements from GIF movies
See Also : MKMOVIEM.PRO
@(#)wrunmoviem_rt.pro 1.1, 11/14/01 - NRL LASCO IDL LIBRARY
[Previous]
[Next]
Project : SOHO - LASCO
Name :
Purpose :
Category :
Explanation :
Syntax :
CALLED BY:
WLOADC
Examples :
Inputs : None
Opt. Inputs : None
Outputs : None
Opt. Outputs: None
Keywords : None
CALLS: ***
WSAVE_EVENT, WSAVE_PS [1], WSAVE_PS [2], XMANAGER, XPDMENU, XREGISTERED
Common :
Restrictions:
Side effects: Not known
History : Version 1, 02-Sep-1995, B Podlipnik. Written
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
Project : SOHO - LASCO
Name :
Purpose :
Category :
Explanation :
Syntax :
Examples :
Inputs : None
Opt. Inputs : None
Outputs : None
Opt. Outputs: None
Keywords : None
CALLS: ***
CHK_DIR [1], CHK_DIR [2], CW_BGROUP, DATATYPE [1], DATATYPE [2], DATATYPE [3]
SXPAR [1], SXPAR [2], SXPAR [3], WRITEFITS [1], WRITEFITS [2], WRITE_GIF
WSAVE1_EVENT, WSAVE_PS [1], WSAVE_PS [2], XMANAGER, XREGISTERED
Common :
Restrictions:
Side effects: Not known
History : Version 1, 02-Sep-1995, B Podlipnik. Written
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
Project : SOHO - LASCO
Name :
Purpose :
Category :
Explanation :
Syntax :
CALLED BY:
WIC, WPLOT, WPLOT1, WSUNPROFILE
Examples :
Inputs : None
Opt. Inputs : None
Outputs : None
Opt. Outputs: None
Keywords : None
CALLS: ***
CHK_DIR [1], CHK_DIR [2], CW_BGROUP, DATATYPE [1], DATATYPE [2], DATATYPE [3]
SXPAR [1], SXPAR [2], SXPAR [3], WRITEFITS [1], WRITEFITS [2], WRITE_GIF
WSAVE2_EVENT, WSAVE_PS [1], WSAVE_PS [2], XMANAGER, XREGISTERED, mpeg_wid
Common :
Restrictions:
Side effects: Not known
History : Version 1, 02-Sep-1995, B Podlipnik. Written
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
Project : SOHO - LASCO/EIT
Name : WSAVE_PS
Purpose :
Category : Widgets
Explanation :
Syntax : wsave_ps
CALLED BY:
WREBIN, wsave, wsave1, wsave2
Examples :
Inputs :
Opt. Inputs :
Outputs :
Opt. Outputs:
Keywords :
Common :
Restrictions: set default PS keywords.
Side effects: None.
History : 20-jun-1995,Borut Podlipnik, MPAe,Written
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
Project : SOHO - LASCO/EIT
Name : WSAVE_PS
Purpose :
Category : Widgets
Explanation :
Syntax : wsave_ps
CALLED BY:
WREBIN, wsave, wsave1, wsave2
Examples :
Inputs :
Opt. Inputs :
Outputs :
Opt. Outputs:
Keywords :
CALLS: ***
CHK_DIR [1], CHK_DIR [2], DATATYPE [1], DATATYPE [2], DATATYPE [3], GAMMA_CT, LOADCT
PLOT_IC, RSTRPOS, STR2UTC [1], STR2UTC [2], STR2UTC [3], SXPAR [1], SXPAR [2]
SXPAR [3], UNDEFINE, UTC2STR, WSAVE_PS_EVENT, XMANAGER, XREGISTERED, chk_h4s, get_data
plot_xy
Common :
Restrictions: set default PS keywords.
Side effects: None.
History : 20-jun-1995,Borut Podlipnik, MPAe,Written
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
Project : SOHO - LASCO/EIT
Name : WSIZE
Purpose :
Explanation :
Use : wsize
Inputs :
Opt. Inputs :
Outputs :
Opt. Outputs :
Keywords :
Calls : ***
WSIZE_EVENT, XMANAGER, XREGISTERED
CALLED BY:
WLOADC
Common :
Restrictions : None.
Side effects : None.
Category : Widgets
Prev. Hist. : None.
Written : Borut Podlipnik, MPAe, 07-mar-1995
Modified :
Version :
[Previous]
[Next]
Project : SOHO - LASCO/EIT
Name : WSUNPROFILE
Purpose : plot
Category : Widgets
Explanation :
Syntax : wsunprofile
Examples :
Inputs :
Opt. Inputs :
Outputs :
Opt. Outputs:
Keywords :
CALLS: ***
BOX_CURSOR, CW_BSELECTOR2, CW_PDMENU, GET_SUN_CENTER [1], GET_SUN_CENTER [2]
GET_SUN_CENTER [3], PROFILE1, WLOAD, WMESSAGE [1], WMESSAGE [2], WSUNPROFILE_EVENT
XMANAGER, ghandle, plot_xy, wprint, wsave2
Common : lasco.com, wload.com, wplot.com
Restrictions: None.
Side effects: None.
History : 15-jan-1993,Borut Podlipnik, MPAe,Written
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
Project : SOHO - LASCO/EIT
Name : WTIME_HEIGHT
Purpose : plot time-height, time-speed, distance-speed diagrams.
Category : Widgets
Explanation :
Syntax : wtime_height
Examples :
Inputs :
Opt. Inputs :
Outputs :
Opt. Outputs:
Keywords :
CALLS: ***
BOX_CURSOR, CHK_DIR [1], CHK_DIR [2], CW_PDMENU, PICKFILES, TABLE2DATA, WMESSAGE [1]
WMESSAGE [2], WRT_ASC, WTIME_HEIGHT_EVENT, WTRACKTABLE1, XMANAGER, XREGISTERED
XVAREDT, rd_asc, wprint
Common : wsave_ps_block, lines_block, t2d_common
Restrictions: None.
Side effects: None.
History : 11-dec-1996,Borut Podlipnik, MPAe,Written
Version 1.0, 11-dec-96
Contact : BP, borut@lasco1.mpae.gwdg.de
[Previous]
[Next]
Project : SOHO - LASCO/EIT
Name : WYES_NO
Purpose :
Category : Widgets
Explanation :
Syntax : Result=wyes_no()
CALLED BY:
WIMG_INFO1, WIMG_INFO3, WIMG_INFO4, WINFO_ACTIV, WLOADINFO
Examples :
Inputs :
Opt. Inputs :
Outputs :
Opt. Outputs:
Keywords : TITLE (a string containing the title to be used for the widget)
LABEL (a string containing a message in WIDGET_LABEL)
TEXT (a string to display in WIDGET_TEXT)
Common :
Restrictions: None.
Side effects: None.
History : 20-oct-1995,Borut Podlipnik, MPAe,Written
Contact : BP, borut@lasco1.mpae.gwdg.de