general/tplot/
ctime.pro
Routines
Routines from ctime.pro
ctime_get_exact_data, var, v, t, pan, hx, hy, subvar, yind, yind2, z, spec=spec, dtype=dtype, load=load
result = time_round(time, res, precision=precision, days=days, hours=hours, minutes=minutes, seconds=seconds)
ctime, time, value, zvalue, append=append, exact=exact, npoints=npoints, inds=inds, vinds=vinds, panel=panel, ynorm=ynorm, xnorm=xnorm, routine_name=routine_name, cut=cut, counts=counts, vname=vname, prompt=prompt, local_time=local_time, psym=psym, silent=silent, noshow=noshow, debug=debug, color=color, sleep=sleep, days=days, hours=hours, minutes=minutes, seconds=seconds
PROCEDURE: ctime,time,y,zINPUT: time: Named variable in which to return the selected time (seconds since 1970) y: Named variable in which to return the y value z: Named variable in which to return the z valueKEYWORDS: PROMPT: Optional prompt string NPOINTS: Max number of points to return PSYM: If set to a psym number, the cooresponding psym is plotted at selected points SILENT: Do not print data point information PANEL: Set to a named variable to return an array of tplot panel numbers coresponding to the variables points were chosen from.
Routine details
top source ctime_get_exact_data
ctime_get_exact_data, var, v, t, pan, hx, hy, subvar, yind, yind2, z, spec=spec, dtype=dtype, load=load
Parameters
- var
- v
- t
- pan
- hx
- hy
- subvar
- yind
- yind2
- z
Keywords
- spec
- dtype
- load
top source time_round
result = time_round(time, res, precision=precision, days=days, hours=hours, minutes=minutes, seconds=seconds)
Parameters
- time
- res
Keywords
- precision
- days
- hours
- minutes
- seconds
top source ctime
ctime, time, value, zvalue, append=append, exact=exact, npoints=npoints, inds=inds, vinds=vinds, panel=panel, ynorm=ynorm, xnorm=xnorm, routine_name=routine_name, cut=cut, counts=counts, vname=vname, prompt=prompt, local_time=local_time, psym=psym, silent=silent, noshow=noshow, debug=debug, color=color, sleep=sleep, days=days, hours=hours, minutes=minutes, seconds=seconds
PROCEDURE: ctime,time,y,z INPUT: time: Named variable in which to return the selected time (seconds since 1970) y: Named variable in which to return the y value z: Named variable in which to return the z value KEYWORDS: PROMPT: Optional prompt string NPOINTS: Max number of points to return PSYM: If set to a psym number, the cooresponding psym is plotted at selected points SILENT: Do not print data point information PANEL: Set to a named variable to return an array of tplot panel numbers coresponding to the variables points were chosen from. XNORM: Set to a named variable to return an array of normalized x coordinates of each button-click. YNORM: Set to a named variable to return an array of normalized y coordinates of each button-click. APPEND: If set, points are appended to the input arrays, instead of overwriting the old values. VNAME: Set to a named variable to return an array of tplot variable names, cooresponding to the variables points were chosen from. COLOR: An alternative color for the crosshairs. 0<=color<=!d.n_colors-1 SLEEP: Sleep time (seconds) between polling the cursor for events. Defaults to 0.1 seconds. Increasing SLEEP will slow ctime down, but will prevent ctime from monopolizing cpu time. INDS: Return the indices into the data arrays for the points nearest the recorded times to this named variable. VINDS: Return the second dimension of the v or y array. Thus TIME(i) is data.x(INDS(i)) and Y(i) is data.y(INDS(i),VINDS(i)) and V(i) is data.v(VINDS(i)) or data.v(INDS(i),VINDS(i)) for get_data,VNAME(i),data=data,INDS=INDS,VINDS=VINDS EXACT: Get the time,y, and (if applicable) z values from the data arrays. If on a multi-line plot, get the value from the line closest to the cursor along y. NOSHOW: Do not show the plot window. DEBUG: Avoids default error handling. Useful for debugging. DAYS, HOURS, MINUTES, SECONDS: Sets time granularity. For example with MINUTES=1, CTIME will find nearest minute to cursor position. PURPOSE: Interactively uses the cursor to select a time (or times) NOTES: If you use the keyword EXACT, ctime may run noticeablly slower. Reduce the number of time you cross panels, especially with tplots of large data sets. Mac Os users: You might need to set preferences on your X11 display: Within X11 program go to X11 -> preferences -> Windows: check box labeled "Click=through Inactive Windows" also: X11 -> preferences -> Input: check box labeled "Emulate three button mouse" SEE ALSO: "crosshairs" CREATED BY: Davin Larson & Frank Marcoline LAST MODIFICATION: @(#)ctime.pro 1.44 02/11/01 WARNING! If ctime crashes, you may need to call: IDL> device,set_graph=3,/cursor_crosshair
Parameters
- time
- value
- zvalue
Keywords
- append
- exact
- npoints
- inds
- vinds
- panel
- ynorm
- xnorm
- routine_name
- cut
- counts
- vname
- prompt
- local_time
- psym
- silent
- noshow
- debug
- color
- sleep
- days
- hours
- minutes
- seconds
File attributes
Modification date: | Tue Oct 21 13:53:50 2014 |
Lines: | 439 |