Changeset 371 for trunk/SRC/ToBeReviewed
- Timestamp:
- 08/07/08 11:32:02 (16 years ago)
- Location:
- trunk/SRC/ToBeReviewed
- Files:
-
- 37 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/CALCULS/depth2floatlevel.pro
r370 r371 26 26 ; 27 27 ; @examples 28 ; IDL> a=(jpk-1)/(1.*jpi*jpj)*findgen(jpi,jpj) 29 ; IDL> plt, 1e6*(a-floatlevel2depth(depth2floatlevel(a))),/nocontour 28 ; 29 ; IDL> a=(jpk-1)/(1.*jpi*jpj)*findgen(jpi,jpj) 30 ; IDL> plt, 1e6*(a-floatlevel2depth(depth2floatlevel(a))),/nocontour 30 31 ; 31 32 ; ->champ nul a 1e-6 pres -
trunk/SRC/ToBeReviewed/CALCULS/determ2.pro
r325 r371 27 27 ; 28 28 ; @examples 29 ; IDL> a=findgen(2,2,5) 30 ; IDL> print, determ2(a) 31 ; IDL> FOR i=0,4 DO print, determ(a[*,*,i]) 29 ; 30 ; IDL> a=findgen(2,2,5) 31 ; IDL> print, determ2(a) 32 ; IDL> FOR i=0,4 DO print, determ(a[*,*,i]) 32 33 ; 33 34 ; @history -
trunk/SRC/ToBeReviewed/CALCULS/determ3.pro
r231 r371 48 48 ; 49 49 ; @examples 50 ; a=findgen(3,3,5) 51 ; print, determ3(a^2) 52 ; FOR i=0,4 DO print, determ((a[*,*,i])^2) ; IDL solution 50 ; 51 ; IDL> a=findgen(3,3,5) 52 ; IDL> print, determ3(a^2) 53 ; IDL> FOR i=0,4 DO print, determ((a[*,*,i])^2) 53 54 ; 54 55 ; @history -
trunk/SRC/ToBeReviewed/CALCULS/floatlevel2depth.pro
r370 r371 21 21 ; 22 22 ; @examples 23 ; 24 ; 23 ; IDL> a=gdept[jpk-1]/(1.*jpi*jpj)*findgen(jpi,jpj) 24 ; IDL> plt, 1e6*(a-floatlevel2depth(depth2floatlevel(a))),/nocontour 25 25 ; 26 26 ; ->null field at 1e-6 pres -
trunk/SRC/ToBeReviewed/GRILLE/grille.pro
r327 r371 88 88 ; 89 89 ; @uses 90 ; cm_4mesh91 ; cm_4data90 ; <pro>cm_4mesh</pro> 91 ; <pro>cm_4data</pro> 92 92 ; 93 93 ; @restrictions -
trunk/SRC/ToBeReviewed/GRILLE/tracegrille.pro
r370 r371 39 39 ; @examples 40 40 ; 41 ; IDL> plt,indgen(jpi,jpj),/nocontour,/nofill42 ; IDL> vargrid='T'43 ; IDL> tracegrille,/ocean,color=2044 ; IDL> tracegrille,/earth,color=8041 ; IDL> plt,indgen(jpi,jpj),/nocontour,/nofill 42 ; IDL> vargrid='T' 43 ; IDL> tracegrille,/ocean,color=20 44 ; IDL> tracegrille,/earth,color=80 45 45 ; 46 46 ; @history -
trunk/SRC/ToBeReviewed/HOPE/read_hope.pro
r370 r371 286 286 ; @examples 287 287 ; 288 ; 289 ; 288 ; IDL> a=read_hope('xy','ocpt',filename='CLIM_CNT_1993-1998.nc') 289 ; IDL> help, a,/struct 290 290 ; ** Structure <82ec344>, 6 tags, length=1860176, refs=1: 291 291 ; ARRAY FLOAT Array[128, 242, 15] … … 295 295 ; GRID STRING 'T' 296 296 ; HOPEGRID STRUCT -> <Anonymous> Array[1] 297 ; 297 ; IDL> help, a.hopegrid,/struct 298 298 ; ** Structure <82eb9cc>, 8 tags, length=1588, refs=2: 299 299 ; XAXIS FLOAT Array[128] … … 305 305 ; LINETYPE STRING 'odd-even' 306 306 ; PTTYPE STRING 'T' 307 ; 307 ; IDL> help, litchamp(a) 308 308 ; <Expression> FLOAT = Array[128, 242, 15] 309 309 ; -
trunk/SRC/ToBeReviewed/IMAGE/animgif.pro
r370 r371 16 16 ; @restrictions 17 17 ; We use the Z buffer to go faster!. 18 ; 19 ; 20 ; 21 ; 18 ; So, if it failed in animgif, you have to do: 19 ; IDL> device, /close 20 ; IDL> set_plot, 'x' 21 ; IDL> retall 22 22 ; 23 23 ; If we want to delete the \@common, 24 ; 25 ; 24 ; we have to define manually the picture's size 25 ; (variables xsize and ysize) just as iodir. 26 26 ; 27 27 ; @history -
trunk/SRC/ToBeReviewed/INIT/initncdf.pro
r370 r371 43 43 ; 44 44 ; @examples 45 ; IDL> initncdf,'toto.nc',glam=[-180,180] 45 ; 46 ; IDL> initncdf,'toto.nc',glam=[-180,180] 46 47 ; 47 48 ; @history -
trunk/SRC/ToBeReviewed/LECTURE/GRIB/read_gribtable.pro
r325 r371 32 32 ; 33 33 ; @examples 34 ; IDL> tablename='ectab_128' 34 ; 35 ; IDL> tablename='ectab_128' 35 36 ; 36 37 ; @history -
trunk/SRC/ToBeReviewed/LECTURE/binary.pro
r325 r371 11 11 ; 12 12 ; @examples 13 ; 13 14 ; Binary representation of 11b: 14 ; 15 ; IDL> print, binary(11b) 15 16 ; 0 0 0 0 1 0 1 1 17 ; 16 18 ; Binary representation of pi (x86: Little-endian IEEE representation): 17 ; 19 ; IDL> print, format='(z9.8,5x,4(1x,8i1))', long(!pi,0), binary(!pi) 18 20 ; 40490fdb 01000000 01001001 00001111 11011011 (x86 Linux) 19 21 ; 0fdb4149 00001111 11011011 01000001 01001001 (Alpha OpenVMS) 20 ; 22 ; IDL> print, format='(8(1x,8i0))', binary(!dpi) 21 23 ; 01000000 00001001 00100001 11111011 01010100 01000100 00101101 00011000 24 ; 22 25 ; Some first tests before type double was added: 23 ; 26 ; IDL> print, format='(2a6,4x,2z9.8,4x,8z3.2)', $ 24 27 ; !version.arch, !version.os, long(!dpi,0,2), byte(!dpi,0,8) 25 28 ; x86 linux 54442d18 400921fb 18 2d 44 54 fb 21 09 40 -
trunk/SRC/ToBeReviewed/LECTURE/inverse_binary.pro
r325 r371 27 27 ; @examples 28 28 ; 29 ; 30 ; 31 ; 29 ; IDL> a=indgen(5) 30 ; IDL> b=binary(a) 31 ; IDL> help, b 32 32 ; B BYTE = Array[8, 2, 5] 33 ; 33 ; IDL> print, b 34 34 ; 0 0 0 0 0 0 0 0 35 35 ; 0 0 0 0 0 0 0 0 … … 46 46 ; 0 0 0 0 0 0 0 0 47 47 ; 0 0 0 0 0 1 0 0 48 ; 48 ; IDL> help, inverse_binary(b) 49 49 ; <Expression> INT = Array[5] 50 ; 50 ; IDL> print, inverse_binary(b) 51 51 ; 0 1 2 3 4 52 52 ; -
trunk/SRC/ToBeReviewed/LECTURE/litchamp.pro
r370 r371 79 79 ; @examples 80 80 ; 81 ; 81 ; IDL> print, vargrid,', ', varname,', ', varunit,', ', vardate,', ', varexp 82 82 ; T, , , 0, 83 ; 83 ; IDL> help, litchamp({a:indgen(5), u:'C', name:'toto'}) 84 84 ; <Expression> INT = Array[5] 85 ; 85 ; IDL> print, vargrid,', ', varname,', ', varunit,', ', vardate,', ', varexp 86 86 ; T, toto, C, 0, 87 ; 87 ; IDL> help, litchamp({a:indgen(5), da:'1999'}) 88 88 ; <Expression> INT = Array[5] 89 ; 89 ; IDL> print, vargrid,', ', varname,', ', varunit,', ', vardate,', ', varexp 90 90 ; T, toto, C, 1999, 91 91 ; -
trunk/SRC/ToBeReviewed/LECTURE/read_ftp.pro
r325 r371 143 143 ; in the current working directory: 144 144 ; 145 ; 146 ; 147 ; 148 ; 145 ; IDL> files = string(lindgen(10)+50,format='(%"MGB370.%3.3d.gz")') 146 ; IDL> READ_FTP, 'podaac.jpl.nasa.gov', files, $ 147 ; IDL> 'pub/sea_surface_height/topex_poseidon/mgdrb/data/MGB_370', /FILE 148 ; IDL> spawn,'dir MGB*',/log_output 149 149 ; Volume in drive C is Local Disk 150 150 ; Volume Serial Number is 34CE-24DF -
trunk/SRC/ToBeReviewed/LECTURE/xncdf_lec.pro
r370 r371 56 56 ; 57 57 ; @examples 58 ; IDL> help, xncdf_lec() 58 ; 59 ; IDL> help, xncdf_lec() 59 60 ; 60 61 ; @history -
trunk/SRC/ToBeReviewed/MATRICE/colle.pro
r327 r371 56 56 ; 57 57 ; @examples 58 ; IDL> print, colle(replicate(1,2,2,2),indgen(2,2,2),2) 58 ; 59 ; IDL> print, colle(replicate(1,2,2,2),indgen(2,2,2),2) 59 60 ; 1 1 60 61 ; 1 1 -
trunk/SRC/ToBeReviewed/PLOTS/DESSINE/plt.pro
r370 r371 106 106 ; map = [0, (lon1+lon2)/2., 0] 107 107 ; Comment: A good way to choose the type of the projection we want to do is to have a look at IDL demo: 108 ; IDL> demo108 ; IDL> demo 109 109 ; Then choose "Mapping" and "Global Mapping Demo" 110 110 ; Comment2: By default it is a cylindrical projection which is done (with or without the keyword map). 111 111 ; If we want an other projection, MAP must be activated and we have to add the keyword: /nom_projection. 112 112 ; For example, for a polar projection centered on the south pole: 113 ; IDL> domdef,-180,180,-90,-45114 ; IDL> plt, tab, /stereo,map=[-90,0,0]113 ; IDL> domdef,-180,180,-90,-45 114 ; IDL> plt, tab, /stereo,map=[-90,0,0] 115 115 ; 116 116 ; @keyword LABMAP {default=labmap=1} -
trunk/SRC/ToBeReviewed/PLOTS/DESSINE/pltv.pro
r327 r371 64 64 ; 65 65 ; @examples 66 ; IDL> tvplus, dist(100)66 ; IDL> tvplus, dist(100) 67 67 ; 68 68 ; @history -
trunk/SRC/ToBeReviewed/PLOTS/DESSINE/tvplus.pro
r327 r371 76 76 ; 77 77 ; @examples 78 ; IDL> tvplus, dist(100) 78 ; 79 ; IDL> tvplus, dist(100) 79 80 ; 80 81 ; @history -
trunk/SRC/ToBeReviewed/PLOTS/DIVERS/placedessin.pro
r370 r371 37 37 ; map = [0, (lon1+lon2)/2., 0] 38 38 ; Comment 1: A good way to choose the type of the projection we want to do is to have a look at IDL demo: 39 ; IDL> demo39 ; IDL> demo 40 40 ; Then choose "Mapping" and "Global Mapping Demo" 41 41 ; Comment 2: By default it is a cylindrical projection which is effectuated (with or without the keyword map). 42 42 ; If we want an other projection, MAP must be activated and we have to add the keyword: /nom_projection. 43 43 ; For example, for a polar projection centered on the south pole: 44 ; IDL> domdef,-180,180,-90,-4545 ; IDL> plt, tab, /stereo,map=[-90,0,0]44 ; IDL> domdef,-180,180,-90,-45 45 ; IDL> plt, tab, /stereo,map=[-90,0,0] 46 46 ; 47 47 ; @keyword NOCOLORBAR -
trunk/SRC/ToBeReviewed/PLOTS/LABEL/label_date.pro
r369 r371 53 53 ; For example, to plot from Jan 1, 1993, to July 12, 1994: 54 54 ; 55 ; IDL> Start_date = julday(1, 1, 1993)56 ; IDL> End_date = julday(7, 12, 1994)57 ; IDL> ; Simple mm/dd58 ; IDL> Dummy = LABEL_DATE(DATE_FORMAT='%N/%D')59 ; IDL> ;Time axis60 ; IDL> x = findgen(end_date+1 - start_date) + start_date61 ; IDL> ; Plot with X axis style set to exact62 ; IDL> PLOT, x, sqrt(x), XTICKFORMAT = 'LABEL_DATE', XSTYLE=155 ; IDL> Start_date = julday(1, 1, 1993) 56 ; IDL> End_date = julday(7, 12, 1994) 57 ; IDL> ; Simple mm/dd 58 ; IDL> Dummy = LABEL_DATE(DATE_FORMAT='%N/%D') 59 ; IDL> ;Time axis 60 ; IDL> x = findgen(end_date+1 - start_date) + start_date 61 ; IDL> ; Plot with X axis style set to exact 62 ; IDL> PLOT, x, sqrt(x), XTICKFORMAT = 'LABEL_DATE', XSTYLE=1 63 63 ; 64 64 ; Example with times: … … 66 66 ; For example, to plot from 3PM, Jan 1, 1993, to 5AM, Jan 3, 1993: 67 67 ; 68 ; IDL> ; Also starting offset69 ; IDL> Start_date = Julday(1,1,1993)70 ; IDL> ; Starting_time less offset71 ; IDL> Start_time = (3+12)/24.72 ; IDL> End_time = (Julday(1,3,1993) - Start_date) + 5./24.73 ; IDL> ; Ending date/time - offset, note that the order of operations is74 ; IDL> ; important to avoid loss of precision75 ; IDL> ; MMM NN <new line> HH:MM format76 ; IDL> Dummy = LABEL_DATE(DATE_FORMAT='%D %M!C%H:%I', offset=Start_date)77 ; IDL> ;Time axis78 ; IDL> x = findgen(20) * (End_time - Start_time) / 19 + start_time79 ; IDL> PLOT, x, sqrt(x), XTICKFORMAT = 'LABEL_DATE', XSTYLE=168 ; IDL> ; Also starting offset 69 ; IDL> Start_date = Julday(1,1,1993) 70 ; IDL> ; Starting_time less offset 71 ; IDL> Start_time = (3+12)/24. 72 ; IDL> End_time = (Julday(1,3,1993) - Start_date) + 5./24. 73 ; IDL> ; Ending date/time - offset, note that the order of operations is 74 ; IDL> ; important to avoid loss of precision 75 ; IDL> ; MMM NN <new line> HH:MM format 76 ; IDL> Dummy = LABEL_DATE(DATE_FORMAT='%D %M!C%H:%I', offset=Start_date) 77 ; IDL> ;Time axis 78 ; IDL> x = findgen(20) * (End_time - Start_time) / 19 + start_time 79 ; IDL> PLOT, x, sqrt(x), XTICKFORMAT = 'LABEL_DATE', XSTYLE=1 80 80 ; 81 81 ; @history -
trunk/SRC/ToBeReviewed/STATISTICS/a_timecorrelate.pro
r342 r371 99 99 ; 100 100 ; @examples 101 ; 101 102 ; Define an n-element sample population. 102 ; IDL> x = [3.73, 3.67, 3.77, 3.83, 4.67, 5.87, 6.70, 6.97, 6.40, 5.57]103 ; IDL> x = [3.73, 3.67, 3.77, 3.83, 4.67, 5.87, 6.70, 6.97, 6.40, 5.57] 103 104 ; 104 105 ; Compute the autocorrelation of X for LAG = -3, 0, 1, 3, 4, 8 105 ; IDL> lag = [-3, 0, 1, 3, 4, 8]106 ; IDL> result = a_correlate(x, lag)106 ; IDL> lag = [-3, 0, 1, 3, 4, 8] 107 ; IDL> result = a_correlate(x, lag) 107 108 ; 108 109 ; The result should be: -
trunk/SRC/ToBeReviewed/STATISTICS/c_timecorrelate.pro
r327 r371 89 89 ; 90 90 ; Define two n-elements sample populations. 91 ; IDL> x = [3.73, 3.67, 3.77, 3.83, 4.67, 5.87, 6.70, 6.97, 6.40, 5.57]92 ; IDL> y = [2.31, 2.76, 3.02, 3.13, 3.72, 3.88, 3.97, 4.39, 4.34, 3.95]91 ; IDL> x = [3.73, 3.67, 3.77, 3.83, 4.67, 5.87, 6.70, 6.97, 6.40, 5.57] 92 ; IDL> y = [2.31, 2.76, 3.02, 3.13, 3.72, 3.88, 3.97, 4.39, 4.34, 3.95] 93 93 ; 94 94 ; Compute the cross correlation of X and Y for LAG = -5, 0, 1, 5, 6, 7 95 ; IDL> lag = [-5, 0, 1, 5, 6, 7]96 ; IDL> result = c_timecorrelate(x, y, lag)95 ; IDL> lag = [-5, 0, 1, 5, 6, 7] 96 ; IDL> result = c_timecorrelate(x, y, lag) 97 97 ; 98 98 ; The result should be: -
trunk/SRC/ToBeReviewed/STRING/strkeywd.pro
r325 r371 26 26 ; 27 27 ; @examples 28 ; 28 29 ; We create a structure 29 ; 30 ; 30 ; IDL> b=get_extra(ok=111, year=[1997,1998,1999], age_capitaine=35) 31 ; IDL> help, b,/struct 31 32 ; ** Structure <817f4bc>, 3 tags, length=10, refs=1: 32 33 ; AGE_CAPITAINE INT 35 33 34 ; OK INT 111 34 35 ; YEAR INT Array[3] 36 ; 35 37 ; We put this structure as a string 36 ; 37 ; 38 ; IDL> a=strkeywd(b) 39 ; IDL> print, a 38 40 ; AGE_CAPITAINE=35, OK=111, YEAR=[1997,1998,1999] 41 ; 39 42 ; Now we can use the string a to pass keywords in a function thanks to execute!! 40 ; 41 ; 43 ; IDL> test=execute('c=get_extra('+a+')') 44 ; IDL> help, c,/struct 42 45 ; ** Structure <817f2dc>, 3 tags, length=10, refs=1: 43 46 ; AGE_CAPITAINE INT 35 -
trunk/SRC/ToBeReviewed/STRING/strsed.pro
r327 r371 25 25 ; @examples 26 26 ; 27 ; 28 ; 27 ; IDL> abc = 'abcdefghijklmnopqrstuvwxyz' 28 ; IDL> print, strsed(abc, 'm', 'M') 29 29 ; abcdefghijklMnopqrstuvwxyz 30 ; 30 ; IDL> print, strsed(abc, 'm.*t', 'M_T') 31 31 ; abcdefghijklM_Tuvwxyz 32 ; 33 ; 32 ; IDL> a = 'abcabcabc' 33 ; IDL> help, strsed([abc, a, 'eee'], 'abc', 'XXX_') 34 34 ; <Expression> STRING = Array[3] 35 ; 35 ; IDL> print, strsed([abc, a, 'eee'], 'abc', 'XXX_') 36 36 ; XXX_defghijklmnopqrstuvwxyz XXX_XXX_XXX_ eee 37 37 ; -
trunk/SRC/ToBeReviewed/STRING/strwhere.pro
r325 r371 16 16 ; The number of matches that were found 17 17 ; 18 ; 19 ; 18 ; The function returns an index array similar to the 19 ; result of the where function 20 20 ; 21 21 ; @examples 22 ; IDL> ind = strwhere('abcabcabc','a') 23 ; IDL> print, ind 22 ; 23 ; find position of string "a" in the string "abcabcabc" 24 ; 25 ; IDL> ind = strwhere('abcabcabc','a') 26 ; IDL> print, ind 24 27 ; [ 0, 3, 6 ] 25 28 ; -
trunk/SRC/ToBeReviewed/STRING/tostr.pro
r325 r371 26 26 ; 27 27 ; @examples 28 ; 28 ; IDL> help, tostr(1),tostr('a'),tostr(indgen(4)),tostr(['a','jkfjo']) 29 29 ; <Expression> STRING = '1' 30 30 ; <Expression> STRING = ''a'' 31 31 ; <Expression> STRING = '[0,1,2,3]' 32 32 ; <Expression> STRING = '['a','jkfjo']' 33 ; 33 ; IDL> print, tostr(['c''est bon','c''est bon']) 34 34 ; ['c''est bon','c''est bon'] 35 35 ; -
trunk/SRC/ToBeReviewed/STRUCTURE/chkstru.pro
r327 r371 37 37 ; 38 38 ; @examples 39 ; test = { a:1, b:2, c:3 } 40 ; required = ['a','c'] 41 ; if CHKSTRU(test,required) then print,'found a and c.' 42 ; IDL> print, CHKSTRU(test,'b') 39 ; 40 ; IDL> test = { a:1, b:2, c:3 } 41 ; IDL> required = ['a','c'] 42 ; IDL> if CHKSTRU(test,required) then print,'found a and c.' 43 ; IDL> print, CHKSTRU(test,'b') 43 44 ; 1 44 ; 45 ; IDL> print, CHKSTRU(test,'b',/extract) 45 46 ; 2 46 47 ; -
trunk/SRC/ToBeReviewed/STRUCTURE/extractstru.pro
r327 r371 25 25 ; @examples 26 26 ; 27 ; 28 ; 27 ; IDL> extra=get_extra(/ok, year=1999, age_capitaine=35 ) 28 ; IDL> help, extra,/struct 29 29 ; ** Structure <83e66bc>, 3 tags, length=6, refs=1: 30 30 ; AGE_CAPITAINE INT 35 31 31 ; OK INT 1 32 32 ; YEAR INT 1999 33 ; 33 ; IDL> help, extractstru(extra,['ok','hhuihi','YEAR']),/stru 34 34 ; ** Structure <831afac>, 1 tags, length=2, refs=1: 35 35 ; AGE_CAPITAINE INT 35 36 ; 36 ; IDL> help, extractstru(extra,['ok','hhuihi','YEAR'],/keep),/stru 37 37 ; ** Structure <834bbc4>, 2 tags, length=4, refs=1: 38 38 ; OK INT 1 -
trunk/SRC/ToBeReviewed/STRUCTURE/mixstru.pro
r325 r371 26 26 ; @examples 27 27 ; 28 ; 29 ; 30 ; 28 ; IDL> a=get_extra(/toto,ok=123) 29 ; IDL> b=get_extra(ok=111, year=1999, age_capitaine=35) 30 ; IDL> help, a,b,/struct 31 31 ; ** Structure <8334424>, 2 tags, length=4, refs=1: 32 32 ; OK INT 123 … … 36 36 ; OK INT 111 37 37 ; YEAR INT 1999 38 ; 38 ; IDL> help, mixstru(a,b),/struct 39 39 ; ** Structure <82f25ac>, 4 tags, length=8, refs=1: 40 40 ; AGE_CAPITAINE INT 35 … … 42 42 ; OK INT 123 43 43 ; TOTO INT 1 44 ; 44 ; IDL> help, mixstru(b,a),/struct 45 45 ; ** Structure <834604c>, 4 tags, length=8, refs=1: 46 46 ; TOTO INT 1 -
trunk/SRC/ToBeReviewed/STRUCTURE/struct2string.pro
r327 r371 25 25 ; @examples 26 26 ; 27 ; 27 ; IDL> print, struct2string(!d) 28 28 ; create_struct('NAME','X','X_SIZE',891,'Y_SIZE',630,'X_VSIZE' 29 29 ; ,891,'Y_VSIZE',630,'X_CH_SIZE',6,'Y_CH_SIZE',10,'X_PX_CM' -
trunk/SRC/ToBeReviewed/STRUCTURE/where_tag.pro
r262 r371 41 41 ; 42 42 ; @examples 43 ; Suppose STR is a structure with tags CAT_NO:indgen(10), and44 ; NAME:strarr(10). Find the indices where STR.CAT_NO is45 ; between 3 and 5.46 43 ; 47 ; IDL> print, WHERE_TAG( str, TAG_NAME = 'CAT_NO', VALUE = [3,4,5] ) ;or 48 ; IDL> print, WHERE_TAG( str, TAG_NUM = 0, RANGE = [3,5]) 44 ; Suppose STR is a structure with tags CAT_NO:indgen(10), and 45 ; NAME:strarr(10). Find the indices where STR.CAT_NO is between 3 and 5. 46 ; 47 ; IDL> print, WHERE_TAG( str, TAG_NAME = 'CAT_NO', VALUE = [3,4,5] ) 48 ; or 49 ; IDL> print, WHERE_TAG( str, TAG_NUM = 0, RANGE = [3,5]) 49 50 ; 50 51 ; @history -
trunk/SRC/ToBeReviewed/TRIANGULATION/definetri.pro
r325 r371 62 62 ; @examples 63 63 ; 64 ; IDL> triangles=definetri(3,3,[1,3])64 ; IDL> triangles=definetri(3,3,[1,3]) 65 65 ; 66 66 ; triangles will be this kind of triangulation: -
trunk/SRC/ToBeReviewed/WIDGET/COMPOUND_WIDGET/cw_calendar.pro
r327 r371 1 ; IDL> testwid,julday(1,1,1980)+lindgen(100)*51 ; IDL> testwid,julday(1,1,1980)+lindgen(100)*5 2 2 ; 3 3 ; PRO testwid_event, event -
trunk/SRC/ToBeReviewed/WIDGET/COMPOUND_WIDGET/cw_domain.pro
r327 r371 1 ; IDL> testwid1 ; IDL> testwid 2 2 ; PRO testwid_event, event 3 3 ; ; help, event, /struct -
trunk/SRC/ToBeReviewed/WIDGET/xnotice.pro
r327 r371 24 24 ; 25 25 ; @examples 26 ; IDL> id=xnotice('ca marche !C ou pas?') 27 ; IDL> widget_control, id, /destroy 26 ; 27 ; IDL> id=xnotice('ca marche !C ou pas?') 28 ; IDL> widget_control, id, /destroy 28 29 ; 29 30 ; @history -
trunk/SRC/ToBeReviewed/WIDGET/xquestion.pro
r327 r371 72 72 ; 73 73 ; @examples 74 ; IDL> help, xquestion('Postscript name') 74 ; 75 ; IDL> help, xquestion('Postscript name') 75 76 ; <Expression> STRING = 'toto.ps' 76 77 ;
Note: See TracChangeset
for help on using the changeset viewer.