Documentation for /home/davin/idl/socware/

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes

spedas/gui/display/draw_object/

spd_ui_draw_object__indexmagic.pro


Routines

top source spd_ui_draw_object::indexMagic

result = spd_ui_draw_object::indexMagic(data, idx, less=less)

spd_ui_draw_object method: indexMagic This function returns indices of all the data values greater(or less) than the index limit + 1(or -1). It is vectorized, so that it will work quickly even if there is a lot of data. Inputs: Data(2-dimensional array of data points any numeric type): The values that will be modified dims = MxN Idx(array of indices): an M element array of indices that specify the limit. All indices greater(or less) than this index + 1 in a particular column will be returned Less(boolean keyword): If set, indicates that indices less than index - 1 should be returned Outputs: All the indices that fit the limit critereon, -1 if no values found. NOTES: 1. This is used in y-clipping spectrograms. We want there to be a small amount of margin on spectrograms to prevent any blank from showing up at the edge of plots, but we don't want to render the whole data set because performance would suffer a precipitous drop. 2. Each element of data[i,*] should be sorted in descending order. 3. This is quite tricky to do without looping, hence the magic. $LastChangedBy: jimm $ $LastChangedDate: 2014-02-11 10:54:32 -0800 (Tue, 11 Feb 2014) $ $LastChangedRevision: 14326 $ $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/spedas/gui/display/draw_object/spd_ui_draw_object__indexmagic.pro $

Parameters

data
idx

Keywords

less

File attributes

Modification date: Thu Feb 13 16:41:36 2014
Lines: 17