- Timestamp:
- 04/08/14 11:28:29 (10 years ago)
- Location:
- trunk/SRC
- Files:
-
- 96 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Calendar/caldat.pro
r436 r493 2 2 ; 3 3 ; @file_comments 4 ; Return the calendar date and time given julian date.4 ; Return the calendar date and time given Julian date. 5 5 ; This is the inverse of the function <pro>julday</pro>. 6 6 ; 3 calendars are available according to the value of key_caltype -
trunk/SRC/Calendar/julday.pro
r396 r493 75 75 ; eg. julday(349,1,1970) 76 76 ; 77 ; Sebastien Masson, May 2006, add different calenda twith key_caltype77 ; Sebastien Masson, May 2006, add different calendar with key_caltype 78 78 ; (variable of the common file cm_4cal) 79 79 ; -
trunk/SRC/Calendar/leapyr.pro
r371 r493 35 35 ; This means that year 1800, 1900, 2100, 2200, 2300 and 2500 are 36 36 ; NOT leap years, while year 2000 and 2400 are leap years. 37 ; + sup ress the automatic change 89 -> 198937 ; + suppress the automatic change 89 -> 1989 38 38 ; 39 39 ; June 2005 update for new commons, Sebastien Masson. -
trunk/SRC/Computation/bsf.pro
r462 r493 22 22 ; 23 23 ; @keyword REFVALUE {type=scalar} {default=0.} 24 ; the bsf value that we want to spe ficy at the position defined by refpoint24 ; the bsf value that we want to specify at the position defined by refpoint 25 25 ; 26 26 ; @keyword TRANSPORT {type=scalar: 0 or 1} {default=0.} … … 79 79 umsk = (umask())[firstx:lastx, firsty:lasty, firstz:lastz] 80 80 IF total(umsk[*, *, nz-1]) NE 0 THEN return, report('The bottom of the box (defined by lastzt) must be set to land value (=0)') 81 IF total(umsk[*, 0, *]) NE 0 THEN return, report('southern bou dary must be land point if you want to compute the bsf with this function')81 IF total(umsk[*, 0, *]) NE 0 THEN return, report('southern boundary must be land point if you want to compute the bsf with this function') 82 82 ; 83 83 un = litchamp(z3d) -
trunk/SRC/Computation/e3_3d.pro
r445 r493 10 10 ; @keyword e1 {default=0}{type=scalar: 0 or 1} 11 11 ; activate to compute e1 * e3 instead of e3 12 ; note that of both keywords e1 and e2 are acti cated we compute e1 * e2 * e3 instead of e312 ; note that of both keywords e1 and e2 are activated we compute e1 * e2 * e3 instead of e3 13 13 ; 14 14 ; @keyword e2 {default=0}{type=scalar: 0 or 1} 15 15 ; activate to compute e2 * e3 instead of e3 16 ; note that of both keywords e1 and e2 are acti cated we compute e1 * e2 * e3 instead of e316 ; note that of both keywords e1 and e2 are activated we compute e1 * e2 * e3 instead of e3 17 17 ; 18 18 ; @returns -
trunk/SRC/Computation/e3t_3d.pro
r454 r493 9 9 ; @keyword e1 {default=0}{type=scalar: 0 or 1} 10 10 ; activate to compute e1t * e3t instead of e3t 11 ; note that of both keywords e1 and e2 are acti cated we compute e1t * e2t * e3t instead of e3t11 ; note that of both keywords e1 and e2 are activated we compute e1t * e2t * e3t instead of e3t 12 12 ; 13 13 ; @keyword e2 {default=0}{type=scalar: 0 or 1} 14 14 ; activate to compute e2t * e3t instead of e3t 15 ; note that of both keywords e1 and e2 are acti cated we compute e1t * e2t * e3t instead of e3t15 ; note that of both keywords e1 and e2 are activated we compute e1t * e2t * e3t instead of e3t 16 16 ; 17 17 ; @returns -
trunk/SRC/Computation/e3u_3d.pro
r454 r493 9 9 ; @keyword e1 {default=0}{type=scalar: 0 or 1} 10 10 ; activate to compute e1u * e3u instead of e3u 11 ; note that of both keywords e1 and e2 are acti cated we compute e1u * e2u * e3u instead of e3u11 ; note that of both keywords e1 and e2 are activated we compute e1u * e2u * e3u instead of e3u 12 12 ; 13 13 ; @keyword e2 {default=0}{type=scalar: 0 or 1} 14 14 ; activate to compute e2u * e3u instead of e3u 15 ; note that of both keywords e1 and e2 are acti cated we compute e1u * e2u * e3u instead of e3u15 ; note that of both keywords e1 and e2 are activated we compute e1u * e2u * e3u instead of e3u 16 16 ; 17 17 ; @returns -
trunk/SRC/Computation/e3v_3d.pro
r454 r493 9 9 ; @keyword e1 {default=0}{type=scalar: 0 or 1} 10 10 ; activate to compute e1v * e3v instead of e3v 11 ; note that of both keywords e1 and e2 are acti cated we compute e1v * e2v * e3v instead of e3v11 ; note that of both keywords e1 and e2 are activated we compute e1v * e2v * e3v instead of e3v 12 12 ; 13 13 ; @keyword e2 {default=0}{type=scalar: 0 or 1} 14 14 ; activate to compute e2v * e3v instead of e3v 15 ; note that of both keywords e1 and e2 are acti cated we compute e1v * e2v * e3v instead of e3v15 ; note that of both keywords e1 and e2 are activated we compute e1v * e2v * e3v instead of e3v 16 16 ; 17 17 ; @returns -
trunk/SRC/Computation/e3w_3d.pro
r454 r493 9 9 ; @keyword e1 {default=0}{type=scalar: 0 or 1} 10 10 ; activate to compute e1t * e3w instead of e3w 11 ; note that of both keywords e1 and e2 are acti cated we compute e1t * e2t * e3w instead of e3w11 ; note that of both keywords e1 and e2 are activated we compute e1t * e2t * e3w instead of e3w 12 12 ; 13 13 ; @keyword e2 {default=0}{type=scalar: 0 or 1} 14 14 ; activate to compute e2t * e3w instead of e3w 15 ; note that of both keywords e1 and e2 are acti cated we compute e1t * e2t * e3w instead of e3w15 ; note that of both keywords e1 and e2 are activated we compute e1t * e2t * e3w instead of e3w 16 16 ; 17 17 ; @returns -
trunk/SRC/Computation/msf.pro
r462 r493 12 12 ; 13 13 ; @param mask2d {in} {type=2D xy array} {optional} {default=1 everywhere} 14 ; land/sea (0/1) mask to be applied (in add tion to the 3D mask14 ; land/sea (0/1) mask to be applied (in addition to the 3D mask 15 15 ; of the model) to mask some parts of the domain (and keep for example 16 16 ; the northend atlantic). … … 22 22 ; @keyword INDEXBOXZOOM 23 23 ; Set this keyword to a named variable in which msf will return the x 24 ; and y indexes defini g the zoom-box that should be used by pltz to do24 ; and y indexes defining the zoom-box that should be used by pltz to do 25 25 ; the plot (see example) 26 26 ; … … 96 96 IF total(msk[*, *, nz-1]) NE 0 THEN return, report('The bottom of the box (defined by lastzt) must be set to land value (=0)') 97 97 IF (total(msk[0, *, *]) NE 0 OR total(msk[nx-1, *, *]) NE 0) AND NOT (keyword_set(key_periodic) AND nx EQ jpi) THEN $ 98 return, report('for non-periodic domains, eastern and western bo ndaries must be land point')98 return, report('for non-periodic domains, eastern and western boundaries must be land point') 99 99 IF keyword_set(key_partialstep) AND total(msk[*, ny-1, *]) NE 0 THEN flagdata = 1 100 100 ; -
trunk/SRC/Computation/norm.pro
r371 r493 259 259 ; We recover the complete grid to establish a big mask extent in the four 260 260 ; direction to cover pointsfor which a land point has been 261 ; considerate d(make a small drawing)261 ; considerate (make a small drawing) 262 262 ;---------------------------------------------------------------------------- 263 263 mask = tmask[indice2d+jpi*jpj*firstzt] … … 425 425 ; We recover the complete grid to establish a big mask extent in the four 426 426 ; direction to cover pointsfor which a land point has been 427 ; considerate d(make a small drawing)427 ; considerate (make a small drawing) 428 428 ;---------------------------------------------------------------------------- 429 429 mask = tmask[indice2d+jpi*jpj*firstzt] -
trunk/SRC/Documentation/xmldoc/pro2href_t.sh
r289 r493 8 8 # 9 9 # todo : 10 # ++improve independ ancies (plateforme, account, location of SAXO working space)10 # ++improve independencies (platform, account, location of SAXO working space) 11 11 # ++ improve cleaning, check 12 12 # -
trunk/SRC/ForOldVersion/updatekwd.pro
r371 r493 46 46 old = [old, 'discret'] & new = [new, 'discrete'] 47 47 ; old = [old, ''] & new = [new, ''] 48 ; sup ress the first dummy argument and make sure we use low case48 ; suppress the first dummy argument and make sure we use low case 49 49 old = strtrim(strlowcase(old[1:*]), 2) 50 50 new = strtrim(strlowcase(new[1:*]), 2) -
trunk/SRC/Grid/computegrid.pro
r491 r493 252 252 ; 2000-04-20 253 253 ; Sept 2004, several bug fix to suit C grid type... 254 ; Aug 2005, rewrit te almost everything...254 ; Aug 2005, rewrite almost everything... 255 255 ; 256 256 ; @version -
trunk/SRC/Grid/load_orca.pro
r456 r493 62 62 ncdf_close, cdfid 63 63 ;---------------------------------------------------------- 64 ; suppress overlapping bo ndaries64 ; suppress overlapping boundaries 65 65 ;---------------------------------------------------------- 66 66 ixminmesh = 1 -
trunk/SRC/Grid/ncdf_meshread.pro
r487 r493 76 76 ; of key_shift, ...) 77 77 ; Oct. 2004, Sebastien Masson: add PERIODIC and SHIFT 78 ; Aug. 2005, Sebastien Masson: some cleaning + english78 ; Aug. 2005, Sebastien Masson: some cleaning + English 79 79 ; 80 80 ; @version -
trunk/SRC/Grid/ncdf_meshroms.pro
r487 r493 435 435 ncdf_close, cdfid 436 436 ;------------------------------------------------------- 437 ; Apply Glambou dary437 ; Apply Glamboundary 438 438 ;------------------------------------------------------- 439 439 if keyword_set(glamboundary) AND key_onearth then BEGIN -
trunk/SRC/Interpolation/cutsegment.pro
r371 r493 27 27 ; middle of the cut segments. 28 28 ; - if /ENDPOINTS, a 3d array (2,n+1,p) that gives the 29 ; coordinates of the endpoints of the cut tedsegments.29 ; coordinates of the endpoints of the cut segments. 30 30 ; 31 31 ; @examples -
trunk/SRC/Interpolation/extrapolate.pro
r473 r493 56 56 ; 57 57 ; @history 58 ; Original y written by G. Roullet58 ; Originally written by G. Roullet 59 59 ; Sebastien Masson (smasson\@lodyc.jussieu.fr) 60 60 ; -
trunk/SRC/Interpolation/file_interp.pro
r473 r493 73 73 ; |----------| |----------|------------------------------|----------| |----------| 74 74 ; 0 smwin-1 smwin 2*smwin-1 nx nx+smwin-1 nx+smwin nx+2*smwin-1 75 ; define boundaries (extra col omns and rows)75 ; define boundaries (extra columns and rows) 76 76 data = [ data[nx-data_smwin:nx-1, *], data, data[0:data_smwin-1, *] ] 77 77 data = [ [data[*, 0]#one], [data], [data[*, ny-1]#one] ] … … 296 296 ; to force interpolated data to be always < value defined by lethan (for example lethan = 0.) 297 297 ; 298 ; @keyword 298 ; @keyword _EXTRA 299 299 ; to use <pro>extrapolate</pro>, <pro>extrapsmooth</pro> and <pro>fromreg</pro> keywords 300 300 ; … … 311 311 ; - output mask is not used but, if the input file contains the mask 312 312 ; in a variable (defined by inmaskname), this variable will contain 313 ; the output mask in the ou put file313 ; the output mask in the output file 314 314 ; 315 315 ; @examples … … 385 385 divy = round(gridout[1]) 386 386 IF jpiin MOD divx NE 0 THEN BEGIN 387 print, 'in boxmean method, the x size ('+strtrim(divx, 1)+') of the box used to average the data must d evide the size of the x dimension ('+strtrim(jpiin, 1)+')'387 print, 'in boxmean method, the x size ('+strtrim(divx, 1)+') of the box used to average the data must divide the size of the x dimension ('+strtrim(jpiin, 1)+')' 388 388 return 389 389 ENDIF 390 390 IF jpjin MOD divy NE 0 THEN BEGIN 391 print, 'in boxmean method, the y size ('+strtrim(divy, 1)+') of the box used to average the data must d evide the size of the y dimension ('+strtrim(jpjin, 1)+')'391 print, 'in boxmean method, the y size ('+strtrim(divy, 1)+') of the box used to average the data must divide the size of the y dimension ('+strtrim(jpjin, 1)+')' 392 392 return 393 393 ENDIF -
trunk/SRC/Interpolation/lbcorca.pro
r418 r493 3 3 ; @file_comments 4 4 ; check the lateral boundaries condition (east-west and north) of a 2D/3D/4D array 5 ; located on a grif of the orca grid famil ly.5 ; located on a grif of the orca grid family. 6 6 ; 7 7 ; @categories -
trunk/SRC/Interpolation/spl_incr.pro
r371 r493 395 395 yifrst[bad[ib]+1] EQ 0.0d:BEGIN 396 396 ; case pur convex: we use the first derivative of 1-(1-x)^n 397 ; and a just n to get the good value: yifrst[bad[ib]] in x[bad[ib]]397 ; and adjust n to get the good value: yifrst[bad[ib]] in x[bad[ib]] 398 398 y2[xinx2_1[ib]+1:xinx2_2[ib]] $ 399 399 = pure_convex(x[bad[ib]], x[bad[ib]+1] $ … … 404 404 yifrst[bad[ib]] EQ 0.0d:BEGIN 405 405 ; case pur concave: we use the first derivative of x^n 406 ; and a just n to get the good value: yifrst[bad[ib]+1] in x[bad[ib]+1]406 ; and adjust n to get the good value: yifrst[bad[ib]+1] in x[bad[ib]+1] 407 407 y2[xinx2_1[ib]+1:xinx2_2[ib]] $ 408 408 = pure_concave(x[bad[ib]], x[bad[ib]+1] $ … … 422 422 CASE 1 OF 423 423 ; if y[xinfl] smaller than y[bad[ib]] then we conserve y2 until 424 ; the first zero of y2 and from this point we use x^n and a just n to424 ; the first zero of y2 and from this point we use x^n and adjust n to 425 425 ; get the good value: yifrst[bad[ib]+1] in x[bad[ib]+1] 426 426 yinfl LT y[bad[ib]]:BEGIN … … 430 430 yzero = aaa[ib]*xzero*xzero*xzero + bbb[ib]*xzero*xzero $ 431 431 + ccc[ib]*xzero + ddd[ib] 432 ; if yzero > y[bad[ib]+1] then we cannot appl ay the method we want to432 ; if yzero > y[bad[ib]+1] then we cannot apply the method we want to 433 433 ; apply => we use then convex-concave case by changing by hand the 434 434 ; value of yinfl and xinfl … … 456 456 ; if y[xinfl] bigger than y[bad[ib]+1] then we conserve y2 from 457 457 ; the second zero of y2 and before this point we use 1-(1-x)^n and 458 ; a just n to get the good value: yifrst[bad[ib]] in x[bad[ib]]458 ; adjust n to get the good value: yifrst[bad[ib]] in x[bad[ib]] 459 459 yinfl GT y[bad[ib]+1]:BEGIN 460 460 ; value of the second zero (y'[xzero]=0) … … 463 463 yzero = aaa[ib]*xzero*xzero*xzero + bbb[ib]*xzero*xzero $ 464 464 + ccc[ib]*xzero + ddd[ib] 465 ; if yzero < y[bad[ib]] then we cannot appl ay the method we want to465 ; if yzero < y[bad[ib]] then we cannot apply the method we want to 466 466 ; apply => we use then convex-concave case by changing by hand the 467 467 ; value of yinfl and xinfl -
trunk/SRC/Matrix/cmapply.pro
r325 r493 30 30 ; 31 31 ; @file_comments 32 ; cmapply_redim : Utility function, used to collect collap ed dimensions32 ; cmapply_redim : Utility function, used to collect collapsed dimensions 33 33 ; 34 34 ; @param newarr -
trunk/SRC/Matrix/different.pro
r373 r493 2 2 ; 3 3 ; @file_comments 4 ; find the different elements of 2 matri xes of positive whole numbers.4 ; find the different elements of 2 matrices of positive whole numbers. 5 5 ; 6 6 ; see also <pro>union</pro> and <pro>inter</pro>. -
trunk/SRC/Picture/imdisp.pro
r325 r493 736 736 737 737 ;------------------------------------------------------------------------------- 738 ;- DISPLAY IMAGE ON GRAPHICS DEVICES WHICH HAVE SCAL EABLE PIXELS738 ;- DISPLAY IMAGE ON GRAPHICS DEVICES WHICH HAVE SCALABLE PIXELS 739 739 ;------------------------------------------------------------------------------- 740 740 -
trunk/SRC/Postscript/closeps.pro
r487 r493 19 19 ; Sebastien Masson (smasson\@lodyc.jussieu.fr) 20 20 ; 21/12/98 21 ; June 2005: Sebastien Masson, english version with new commons21 ; June 2005: Sebastien Masson, English version with new commons 22 22 ; 23 23 ; @version -
trunk/SRC/Postscript/openps.pro
r489 r493 46 46 ; 1/2/98: ajout de nameps en input 47 47 ; 1/9/1999: ajout du mot cle FILENAME et du widget 48 ; June 2005: Sebastien Masson, cleaning, english version with new commons48 ; June 2005: Sebastien Masson, cleaning, English version with new commons 49 49 ; 50 50 ; @version … … 124 124 , xsize = xs, ysize = ys, xoffset = xoff, yoffset = yoff $ 125 125 , bits_per_pixel = 8, language_level = 2, _EXTRA = ex 126 ; to make smaller post cripts126 ; to make smaller postscripts 127 127 IF NOT (keyword_set(keeppfont) OR keyword_set(keep_pfont)) $ 128 128 THEN !p.font = 0 -
trunk/SRC/Postscript/printps.pro
r487 r493 197 197 ; 198 198 ; @keyword ARCHIVE {default=0} {type=integer 0 or 1} 199 ; activate to bypass the widget and directly archive the post cript199 ; activate to bypass the widget and directly archive the postscript 200 200 ; (useful to use printps in batch mode) 201 201 ; 202 202 ; @keyword DIRECTPRINT {default=not defined} {type=string} 203 203 ; bypass the widget and directly define the printer that must be used 204 ; to print the post cript file. DIRECTPRINT must correspond to one of205 ; the names defined in the com oon variables printer_machine_names or204 ; to print the postscript file. DIRECTPRINT must correspond to one of 205 ; the names defined in the common variables printer_machine_names or 206 206 ; printer_human_names. useful to use printps in batch mode 207 207 ; -
trunk/SRC/ReadWrite/idl-NetCDF/ncdf_listvars.pro
r371 r493 7 7 ; 8 8 ; @param input {in}{required}{type=salar string or long integer} 9 ; the name of the file or its Id (defined by a previ us call to9 ; the name of the file or its Id (defined by a previous call to 10 10 ; ncdf_open or ncdf_create) 11 11 ; Note that if input corresponds to the file name, ncdf_listvars will -
trunk/SRC/ReadWrite/idl-NetCDF/ncdf_quickread/ncdf_quickread_helper.pro
r325 r493 27 27 ; output script. 28 28 ; 17 Feb 98 S. Rupert Corrected validation routine to handle instance 29 ; of name st rating with a number and containing a29 ; of name starting with a number and containing a 30 30 ; dash. 31 31 ; 05 Jul 00 A.M.Iwi Added keyword PREFIX= on CDF2IDL. Supplied string -
trunk/SRC/ReadWrite/idl-NetCDF/ncdf_read.pro
r157 r493 151 151 endfor 152 152 endif else begin 153 ;; arbit ary scalar value153 ;; arbitrary scalar value 154 154 ;; an empty list would be sensible but IDL doesn't support it 155 155 gatts=-1 -
trunk/SRC/ReadWrite/ncdf_getatt.pro
r488 r493 2 2 ; 3 3 ; @file_comments 4 ; Get variable att ibutes from a NetCDF file4 ; Get variable attributes from a NetCDF file 5 5 ; 6 6 ; @categories -
trunk/SRC/ReadWrite/ncdf_gettime.pro
r474 r493 25 25 ; procedure. It can be only '<pro>read_ncdf</pro>' or '<pro>scanfile</pro>'. 26 26 ; 27 ;28 27 ; @keyword CALTYPE 29 ; Used to specify (or o rverwrite) the type of calendar that should be28 ; Used to specify (or overwrite) the type of calendar that should be 30 29 ; used. We accept only 'noleap', '360d', 'greg' and 'gregorian'. By 31 ; default, we use the type of calendar defi ed in the attibute30 ; default, we use the type of calendar defined in the attribute 32 31 ; calendar. if not, we define it as gregorian. 33 32 ; … … 165 164 'gregorian':key_caltype = 'greg' 166 165 ELSE:BEGIN 167 dummy = report( ['unknow calendar type: '+calendar, 'we use gregorian calendar'] )166 dummy = report( ['unknown calendar type: '+calendar, 'we use gregorian calendar'] ) 168 167 key_caltype = 'greg' 169 168 END -
trunk/SRC/ReadWrite/rseries_getname.pro
r463 r493 2 2 ; 3 3 ; @file_comments 4 ; find the name of a file that cou d potentatialy contain a date4 ; find the name of a file that could potentially contain a date 5 5 ; the file name must follow the following pattern: 6 6 ; prefix + * +dates_description + * + suffix + *.nc … … 13 13 ; @param prefix {in}{required}{type=string} 14 14 ; a string defining the prefix used to identify the file. It can be 15 ; anything except the patt ren used to define the dates (see DATEFMT keyword)15 ; anything except the pattern used to define the dates (see DATEFMT keyword) 16 16 ; 17 17 ; @param suffix {in}{required}{type=string} 18 18 ; a string defining the suffix used to identify the file. It can be 19 ; anything except the patt ren used to define the dates (see DATEFMT keyword)19 ; anything except the pattern used to define the dates (see DATEFMT keyword) 20 20 ; note that *.nc is added to suffix if it is not finishing with ".nc' 21 21 ; … … 31 31 ; @keyword DATEFMT {default='i8_i8'}{type=scalar string} 32 32 ; a string defining the date format used in the file name. the 33 ; possible c oices are:33 ; possible choices are: 34 34 ; - 'i8_i8': yyyymmdd_yyyymmdd (for ex. 20110401_20110431) 35 35 ; - 'i6_i6': yyyymm_yyyymm (for ex. 201104_201104). we assume date1(date2) = beginning(end) of the month -
trunk/SRC/ReadWrite/rseries_ncdf.pro
r463 r493 8 8 ; name of the variable to be read. 9 9 ; 10 ; @param date1 {in}{required}{type=scalar, long inte rger or double precision}10 ; @param date1 {in}{required}{type=scalar, long integer or double precision} 11 11 ; date given in the yyyymmdd format. data will be read from date1 12 12 ; 13 ; @param date2 {in}{required}{type=scalar, long inte rger or double precision}13 ; @param date2 {in}{required}{type=scalar, long integer or double precision} 14 14 ; date given in the yyyymmdd format. data will be read until date1 15 15 ; … … 23 23 ; @keyword DATEFMT {default='i8_i8'}{type=scalar string} 24 24 ; a string defining the date format used in the file name. the 25 ; possible c oices are:25 ; possible choices are: 26 26 ; - 'i8_i8': yyyymmdd_yyyymmdd (for ex. 20110401_20110431) 27 27 ; - 'i6_i6': yyyymm_yyyymm (for ex. 201104_201104). we assume date1(date2) = beginning(end) of the month -
trunk/SRC/ReadWrite/write_oasis.pro
r332 r493 24 24 ; 25 25 ; @keyword RECSIZE 26 ; define the size of the full data array to be written. Useful lwhen26 ; define the size of the full data array to be written. Useful when 27 27 ; you want to save memory and write the data in several write_oasis 28 28 ; instructions. see example … … 34 34 ; @keyword HEADER 35 35 ; activate to write the header ("character*8" contained in varname) 36 ; before writ ting the data. Used when recsize is defined and /= 0, see example36 ; before writing the data. Used when recsize is defined and /= 0, see example 37 37 ; 38 38 ; @keyword ENDING -
trunk/SRC/Textoidl/matchdelim.pro
r325 r493 49 49 ; Copyright (C) 1996 The Regents of the University of California, All 50 50 ; Rights Reserved. Written by Matthew W. Craig. 51 ; See the file COPYRIGHT for restrictions on distr ubting this code.51 ; See the file COPYRIGHT for restrictions on distributing this code. 52 52 ; This code comes with absolutely NO warranty; see DISCLAIMER for details. 53 53 ; -
trunk/SRC/Textoidl/nexttok.pro
r134 r493 4 4 ; NEXTTOK 5 5 ; PURPOSE: 6 ; Find the next occur ance of any of a set of characters in a6 ; Find the next occurrence of any of a set of characters in a 7 7 ; string and return the character which occurs next. 8 8 ; CATEGORY: … … 36 36 ; 37 37 ; Revision 1.2 1996/05/09 00:22:17 mcraig 38 ; Generalized so that the next occur ence of any of a set of characters will39 ; be returned.38 ; Generalized so that the next occurrence of any of a set of characters 39 ; will be returned. 40 40 ; 41 41 ; Revision 1.1 1996/01/31 18:41:06 mcraig … … 48 48 ; Copyright (C) 1996 The Regents of the University of California, All 49 49 ; Rights Reserved. Written by Matthew W. Craig. 50 ; See the file COPYRIGHT for restrictions on distr ubting this code.50 ; See the file COPYRIGHT for restrictions on distributing this code. 51 51 ; This code comes with absolutely NO warranty; see DISCLAIMER for details. 52 52 ;- … … 64 64 IF (n_params() NE 2) OR keyword_set(Help) THEN BEGIN 65 65 offset = ' ' 66 print, offset+'Find the next occur ance of any of a set of characters in a'66 print, offset+'Find the next occurrence of any of a set of characters in a' 67 67 print, offset+'string and return the character which occurs next.' 68 68 ; CALLING SEQUENCE: -
trunk/SRC/Textoidl/showtex.pro
r325 r493 44 44 ; Copyright (C) 1996 The Regents of the University of California, All 45 45 ; Rights Reserved. Written by Matthew W. Craig. 46 ; See the file COPYRIGHT for restrictions on distr ubting this code.46 ; See the file COPYRIGHT for restrictions on distributing this code. 47 47 ; This code comes with absolutely NO warranty; see DISCLAIMER for details. 48 48 ;- -
trunk/SRC/Textoidl/str_token.pro
r163 r493 57 57 ; Copyright (C) 1996 The Regents of the University of California, All 58 58 ; Rights Reserved. Written by Matthew W. Craig. 59 ; See the file COPYRIGHT for restrictions on distr ubting this code.59 ; See the file COPYRIGHT for restrictions on distributing this code. 60 60 ; This code comes with absolutely NO warranty; see DISCLAIMER for details. 61 61 ;- -
trunk/SRC/Textoidl/strcnt.pro
r325 r493 7 7 ; 8 8 ; @param STRN {in}{required}{type=string} 9 ; The string in which to count occur ences.9 ; The string in which to count occurrences. 10 10 ; 11 11 ; @param SUBSTRN {in}{required}{type=string} … … 20 20 ; 21 21 ; @returns 22 ; Number of occur ances of substring in string.22 ; Number of occurrences of substring in string. 23 23 ; 24 24 ; @restrictions 25 ; Overlapping occur ances are not counted separately. For26 ; example, counting occur ances of 'bb' in 'blah bbb' returns one27 ; occur ance.25 ; Overlapping occurrences are not counted separately. For 26 ; example, counting occurrences of 'bb' in 'blah bbb' returns one 27 ; occurrence. 28 28 ; 29 29 ; @history … … 33 33 ; 34 34 ; Revision 1.2 1996/05/09 00:22:17 mcraig 35 ; Added fast processing using BYTE arrays if we are counting occur ences of36 ; a single character. Added error handling.35 ; Added fast processing using BYTE arrays if we are counting occurrences 36 ; of a single character. Added error handling. 37 37 ; 38 38 ; Revision 1.1 1996/01/31 18:47:37 mcraig … … 41 41 ; Copyright (C) 1996 The Regents of the University of California, All 42 42 ; Rights Reserved. Written by Matthew W. Craig. 43 ; See the file COPYRIGHT for restrictions on distr ubting this code.43 ; See the file COPYRIGHT for restrictions on distributing this code. 44 44 ; This code comes with absolutely NO warranty; see DISCLAIMER for details. 45 45 ; … … 62 62 print, offset+'num = strcnt(strn, substring, [pos])' 63 63 print, offset+'Inputs:' 64 print,offset+offset+'string -- The string in which to count occur ences. in'64 print,offset+offset+'string -- The string in which to count occurrences. in' 65 65 print,offset+offset+'substring -- The substring to count occurrences of. in' 66 66 print,offset+offset+'pos -- the position at which to begin the search. [in]' … … 70 70 print,offset+offset+'/HELP -- Print useful message and return.' 71 71 print, offset+'Outputs:' 72 print,offset+offset+'num -- Number of occur ances of substring in string. out'72 print,offset+offset+'num -- Number of occurrences of substring in string. out' 73 73 return, -1 74 74 ENDIF … … 78 78 ; return if we weren't really given a substring to search for. . . 79 79 IF strlen(substrn) EQ 0 THEN BEGIN 80 print, "Error: Can't count occur ances of null string."80 print, "Error: Can't count occurrences of null string." 81 81 return, -1 82 82 ENDIF … … 86 86 IF strlen(tmpstrn) EQ 0 THEN return, 0 87 87 88 ; If looking for occur ences of single character, process using BYTE88 ; If looking for occurrences of single character, process using BYTE 89 89 ; array. 90 90 IF strlen(substrn) EQ 1 THEN BEGIN -
trunk/SRC/Textoidl/strtrans.pro
r325 r493 4 4 ; STRTRANS 5 5 ; PURPOSE: 6 ; Translate all occur ences of one substring to another.6 ; Translate all occurrences of one substring to another. 7 7 ; CATEGORY: 8 8 ; text/strings … … 42 42 ; 43 43 ; Revision 1.6 2004/01/11 01:49:00 mcraig 44 ; Changed format of one array to newer [] style to avoid fconflict with function name in astro library.44 ; Changed format of one array to newer [] style to avoid conflict with function name in astro library. 45 45 ; 46 46 ; Revision 1.5 2001/11/23 21:14:35 mcraig … … 68 68 ; Copyright (C) 1996 The Regents of the University of California, All 69 69 ; Rights Reserved. Written by Matthew W. Craig. 70 ; See the file COPYRIGHT for restrictions on distr ubting this code.70 ; See the file COPYRIGHT for restrictions on distributing this code. 71 71 ; This code comes with absolutely NO warranty; see DISCLAIMER for details. 72 72 ;- … … 84 84 IF (n_params() LT 3) OR keyword_set(help) THEN BEGIN 85 85 offset = ' ' 86 print, offset+'Translate all occur ences of one substring to another.'86 print, offset+'Translate all occurrences of one substring to another.' 87 87 print, offset+'new = strtrans(oldstr,from,to,ned)' 88 88 print, offset+'Inputs:' … … 127 127 128 128 ; Say strn='a#b#c', from='#' and to='@'. Then the approach here is to 129 ; first split strn at all occur ances of '#', then recombine the pieces129 ; first split strn at all occurrences of '#', then recombine the pieces 130 130 ; with '@' inserted instead. Do this for all elements of strn, and 131 131 ; all elements of from. -
trunk/SRC/Textoidl/textable.pro
r325 r493 54 54 ; Copyright (C) 1996 The Regents of the University of California, All 55 55 ; Rights Reserved. Written by Matthew W. Craig. 56 ; See the file COPYRIGHT for restrictions on distr ubting this code.56 ; See the file COPYRIGHT for restrictions on distributing this code. 57 57 ; This code comes with absolutely NO warranty; see DISCLAIMER for details. 58 58 ; -
trunk/SRC/Textoidl/textoidl.pro
r372 r493 45 45 ; 46 46 ; Revision 1.6 2004/01/11 01:49:00 mcraig 47 ; Changed format of one array to newer [] style to avoid fconflict with function name in astro library.47 ; Changed format of one array to newer [] style to avoid conflict with function name in astro library. 48 48 ; 49 49 ; Revision 1.5 2001/11/23 21:10:55 mcraig … … 64 64 ; Copyright (C) 1996 The Regents of the University of California, All 65 65 ; Rights Reserved. Written by Matthew W. Craig. 66 ; See the file COPYRIGHT for restrictions on distr ubting this code.66 ; See the file COPYRIGHT for restrictions on distributing this code. 67 67 ; This code comes with absolutely NO warranty; see DISCLAIMER for details. 68 68 ; -
trunk/SRC/Textoidl/translate_sub_super.pro
r327 r493 59 59 ; Copyright (C) 1996 The Regents of the University of California, All 60 60 ; Rights Reserved. Written by Matthew W. Craig. 61 ; See the file COPYRIGHT for restrictions on distr ubting this code.61 ; See the file COPYRIGHT for restrictions on distributing this code. 62 62 ; This code comes with absolutely NO warranty; see DISCLAIMER for details. 63 63 ; … … 163 163 ; Copyright (C) 1996 The Regents of the University of California, All 164 164 ; Rights Reserved. Written by Matthew W. Craig. 165 ; See the file COPYRIGHT for restrictions on distr ubting this code.165 ; See the file COPYRIGHT for restrictions on distributing this code. 166 166 ; This code comes with absolutely NO warranty; see DISCLAIMER for details. 167 167 ;- -
trunk/SRC/ToBeReviewed/CALCULS/determ2.pro
r371 r493 24 24 ; 25 25 ; @returns 26 ; n elements array, the determinent of each 2*2 arr rays26 ; n elements array, the determinent of each 2*2 arrays 27 27 ; 28 28 ; @examples -
trunk/SRC/ToBeReviewed/CALCULS/fsfzpt.pro
r430 r493 9 9 ; freezing pt 10 10 ; reference : unesco tech. papers in the marine science no 28 1978 11 ; eig th report jpots11 ; eighth report jpots 12 12 ; annex 6 freezing point of seawater F.J.Millero pp.29-35 13 13 ; checkvalue: fsfzpt=-2.588567 deg.c,for s=40.0,p=500 decibars -
trunk/SRC/ToBeReviewed/CALCULS/grossemoyenne.pro
r445 r493 66 66 ; 67 67 ; @keyword SSH 68 ; array giving the sea level ele nation (in meter) that must be added68 ; array giving the sea level elevation (in meter) that must be added 69 69 ; to the thickness of the first level when computing vertical mean 70 70 ; … … 84 84 ; 85 85 ; @history 86 ; J erome Vialard (jv\@lodyc.jussieu.fr)86 ; JérÃŽme Vialard (jv\@lodyc.jussieu.fr) 87 87 ; 2/7/98 88 88 ; Sebastien Masson (smasson\@lodyc.jussieu.fr) … … 148 148 endcase 149 149 ;------------------------------------------------------------ 150 ; I.3) Obtainment of scale's factors and of the mask on the subdomain concernedby the average. 151 ; Redefinition of the domain ajusted at boxzoom (at 6 elements) 150 ; I.3) Obtainment of scale's factors and of the mask on the subdomain 151 ; concerned by the average. 152 ; Redefinition of the domain adjusted at boxzoom (at 6 elements) 152 153 ; This will allowed us to calculate only in the domain concerned by the average. 153 154 ; Domdef, followed by grid give us all arrays of the grid on the subdomain … … 272 273 if keyword_set(savedbox) THEN restoreboxparam, 'boxparam4grmoyenne.dat' 273 274 return, report('Probleme d''adequation entre les tailles du domaine nx*ny*jpt '+strtrim(nx, 1)+'*'+strtrim(ny, 1)+'*'+strtrim(jpt, 1)+' et du tableau '+strtrim(taille[1], 1)+'*'+strtrim(taille[2], 1)+'*'+strtrim(taille[3], 1)) 274 enD275 END 275 276 endcase 276 277 if keyword_set(nan) NE 0 then BEGIN … … 612 613 ENDIF 613 614 ;------------------------------------------------------------ 614 ; IV.3) We replace in the domain wh ch was defined at the entry of average615 ; IV.3) We replace in the domain which was defined at the entry of average 615 616 ;------------------------------------------------------------ 616 617 if keyword_set(savedbox) THEN restoreboxparam, 'boxparam4grmoyenne.dat' -
trunk/SRC/ToBeReviewed/GRILLE/changegrid.pro
r325 r493 33 33 if cmpgrid(newgrid) EQ 0 then return, 0 34 34 ; 35 ; update the common param aters35 ; update the common parameters 36 36 ; 37 37 ccmeshparameters = newgrid -
trunk/SRC/ToBeReviewed/GRILLE/domdef.pro
r492 r493 286 286 IF (dom[0] EQ -1) THEN BEGIN 287 287 IF keyword_set(findalways) THEN BEGIN 288 ; if t grid parameters alre day defined, we use them...288 ; if t grid parameters already defined, we use them... 289 289 CASE 1 OF 290 290 (where(gdtype eq 'T'))[0] NE -1 OR (where(gdtype EQ 'W'))[0] NE -1:BEGIN -
trunk/SRC/ToBeReviewed/GRILLE/fmask.pro
r325 r493 11 11 ; 12 12 ; @examples 13 ; Used like if fmask was a known array by substitu ing fmask by (fmask())13 ; Used like if fmask was a known array by substituting fmask by (fmask()) 14 14 ; For example: Instead of write fmask[domainef] we have to write (fmask())[domainef] 15 15 ; -
trunk/SRC/ToBeReviewed/GRILLE/grille.pro
r388 r493 345 345 ;------------------------------------------------------------ 346 346 ;------------------------------------------------------------ 347 ; Variables refer ing to the vertical dimension347 ; Variables referring to the vertical dimension 348 348 ;------------------------------------------------------------ 349 349 ;------------------------------------------------------------ -
trunk/SRC/ToBeReviewed/GRILLE/umask.pro
r370 r493 14 14 ; 15 15 ; @examples 16 ; Used like if umask was a known array by substitu ing umask by (umask())16 ; Used like if umask was a known array by substituting umask by (umask()) 17 17 ; For example: Instead of write umask[domainef] we have to write (umask())[domainef] 18 18 ; -
trunk/SRC/ToBeReviewed/GRILLE/vmask.pro
r325 r493 11 11 ; 12 12 ; @examples 13 ; Used like if vmask was a known array by substitu ing vmask by (vmask())13 ; Used like if vmask was a known array by substituting vmask by (vmask()) 14 14 ; For example: Instead of write vmask[domainef] we have to write (vmask())[domainef] 15 15 ; -
trunk/SRC/ToBeReviewed/HOPE/read_hope.pro
r371 r493 203 203 ; 204 204 ; @file_comments 205 ; Read the Hope grid file converted in NetCdfby xconv205 ; Read the Hope grid file converted in netCDF by xconv 206 206 ; 207 207 ; @categories … … 323 323 compile_opt idl2, strictarrsubs 324 324 ; 325 @common ; useful lonly for the definition of iodir325 @common ; useful only for the definition of iodir 326 326 if n_elements(filename) EQ 0 then filename = isafile(iodirectory = iodir, _extra = ex) 327 327 IF size(filename, /type) NE 7 THEN return, -1 … … 377 377 dimvar[0:res.ndims-1, varid] = res.dim 378 378 ENDFOR 379 ; we cut dimvar to select only the interes santpart379 ; we cut dimvar to select only the interesting part 380 380 dimvar = dimvar[0:max(ndimsvar)-1, *] 381 381 ; selection of the data variables which are different from the … … 453 453 base5 = widget_base(base, /row, uname = 'baset', /frame) 454 454 timename = strlowcase((tag_names(dimlist))[wathinside.recdim]) 455 ; read the time axis in julinadays455 ; read the time axis in Julian days 456 456 time = ncdf_gettime(filename, cdfid) 457 457 ; update the dimlist structure -
trunk/SRC/ToBeReviewed/IMAGE/animgif.pro
r371 r493 68 68 ; 69 69 ;---------------------------------------------------------------- 70 ; Beg gining of the part we want to change.70 ; Beginning of the part we want to change. 71 71 ;---------------------------------------------------------------- 72 72 ; -
trunk/SRC/ToBeReviewed/LECTURE/changeread.pro
r325 r493 49 49 endcase 50 50 ; 51 ; update the common param aters51 ; update the common parameters 52 52 ; 53 53 ccreadparameters = newread -
trunk/SRC/ToBeReviewed/LECTURE/litchamp.pro
r371 r493 19 19 ; -other elements are strings containing informations on the field except 20 20 ; for the one about the date. This one can be either a string to designate 21 ; a particular date (ex: 'August 1999') or a vector of julian days (of IDL)21 ; a particular date (ex: 'August 1999') or a vector of Julian days (of IDL) 22 22 ; corresponding to the calendar to be associated with the field if it is a 23 23 ; temporal series. … … 171 171 END 172 172 ELSE:BEGIN 173 ras = report('Le nom '+nomelements[i]+' ne correspon ta aucun element reconnu de la structure. cf. IDL> xhelp, ''litchamp''')173 ras = report('Le nom '+nomelements[i]+' ne correspond a aucun element reconnu de la structure. cf. IDL> xhelp, ''litchamp''') 174 174 end 175 175 endcase -
trunk/SRC/ToBeReviewed/LECTURE/read_ncdf.pro
r466 r493 46 46 ; 47 47 ; @keyword CALLITSELF {default=0}{type=scalar: 0 or 1} 48 ; For ROMS outputs. Use by read_ncdf itself to access auxil liary data48 ; For ROMS outputs. Use by read_ncdf itself to access auxiliary data 49 49 ; (h and zeta). 50 50 ; … … 403 403 ENDIF 404 404 ;--------------------------------------------------------------------- 405 ; if it is roms outputs, we need to get additional sinfos...405 ; if it is roms outputs, we need to get additional infos... 406 406 IF NOT keyword_set(callitself) THEN BEGIN 407 407 IF strmid(dimnames[0], 0, 3) EQ 'xi_' AND strmid(dimnames[1], 0, 4) EQ 'eta_' THEN BEGIN -
trunk/SRC/ToBeReviewed/LECTURE/read_ncdf_varget.pro
r491 r493 10 10 ; l''on fait et en particulier arriver a positionner la boite 11 11 ; specifiee par firstx:lastx par rapport au tableau contenu dans 12 ; le fichier NetCdf.12 ; le fichier netCDF. 13 13 ; pour s''y reperer voici un petit dessin 14 14 ; … … 29 29 ; |,,,,|--------|--------------| |........|..........|,,,,,,,,,,,| 30 30 ; 31 ; apr es il suffit de remplacer i et j par firstx ou lastx qd on31 ; aprÚs il suffit de remplacer i et j par firstx ou lastx qd on 32 32 ; ne fait pas de stride. 33 33 ; … … 54 54 ; we must read 4 points instead of 3...: +--+--+--+-- 55 55 ; This problem as an easy solution by using the keyword count with 56 ; the approp iate value!56 ; the appropriate value! 57 57 ; 58 58 key_shift = long(testvar(var = key_shift)) -
trunk/SRC/ToBeReviewed/LECTURE/xncdf_lec.pro
r378 r493 2 2 ; 3 3 ; @file_comments 4 ; Reading of a NetCdffile with widgets4 ; Reading of a netCDF file with widgets 5 5 ; 6 6 ; @categories … … 140 140 ;------------------------------------------------------------ 141 141 base1 = widget_base(base, /column, /align_center) 142 rien = widget_label(base1, value = ' NetCdffilename', /align_center)142 rien = widget_label(base1, value = 'netCDF filename', /align_center) 143 143 rien = widget_text(base1, value = name, /align_center, uvalue=1, /editable) ;File's name we can change 144 144 rien = widget_label(base1, value = ' ') ; We jump a line … … 402 402 ; 403 403 ; @uses 404 ; resultat, infovariable,indicewid_var,motcle404 ; resultat, infovariable, indicewid_var, motcle 405 405 ; 406 406 ; @version … … 434 434 if keyword_set(mcoffset) AND n_elements(mcoffset) EQ varcontient.ndims THEN $ 435 435 valinit[0,*]=mcoffset ELSE valinit[0, *] = 0 436 ; col omn 1 : counts436 ; column 1 : counts 437 437 if keyword_set(mccount) AND n_elements(mccount) EQ varcontient.ndims THEN $ 438 438 valinit[1,*]=mccount ELSE valinit[1, *] = tailledim[varcontient.dim] … … 534 534 END 535 535 2:BEGIN ; A variable is selected. 536 varid = event.index ; We recuperat its number in the file Netcdf536 varid = event.index ; We recuperate its number in the file netCDF 537 537 varcontient = ncdf_varinq(cdfid,varid) 538 538 wid_var, event.top ; We call the program which launch the second widget. See sooner. -
trunk/SRC/ToBeReviewed/PLOTS/DESSINE/plt.pro
r490 r493 434 434 endif 435 435 ENDIF ELSE BEGIN 436 ;To axes of coordinates be considerate d.436 ;To axes of coordinates be considerate. 437 437 if !x.type EQ 0 AND n_elements(contour) LE 4 then $ 438 438 plot, [0], [0], /nodata, xstyle = 5, ystyle = 5, title = '', subtitle = '', /noerase … … 526 526 if keyword_set(overplot) then GOTO, fini 527 527 ;------------------------------------------------------------ 528 ; V2) Trace the line of change of date, the equator and the greenwich meridian, ...528 ; V2) Trace the line of change of date, the equator and the Greenwich meridian, ... 529 529 ;------------------------------------------------------------ 530 530 if NOT keyword_set(map) AND key_onearth then meridienparallele, 'xy' … … 533 533 ;------------------------------------------------------------ 534 534 if keyword_set(realcont) then BEGIN 535 ; si noe ase est passe de _extra, on s''assure qu''il est a 1535 ; si noerase est passe de _extra, on s''assure qu''il est a 1 536 536 if chkstru(ex, 'NOERASE') then begin 537 537 oldnoerase = ex.noerase -
trunk/SRC/ToBeReviewed/PLOTS/DESSINE/pltbase.pro
r419 r493 110 110 ; $Id$ 111 111 ; 112 ; @todo seb L.172 à173112 ; @todo seb L.172 Ã 173 113 113 ; 114 114 ;- … … 162 162 label, 0, min(z2d*mask), max(z2d*mask), ncontour, levels, colors 163 163 ; attention bidouille inexplicable pour que tout se passe bien avec les 164 ; post cript ds pltz!!!164 ; postscript ds pltz!!! 165 165 if n_elements(contour) LE 4 AND !x.type EQ 0 THEN $ 166 166 plot, [0], [0], xstyle = 5, ystyle = 5, /nodata, /noerase, title = '', subtitle = '' … … 212 212 ENDIF 213 213 ; 214 ; We do not pass if we have to make different scontours...214 ; We do not pass if we have to make different contours... 215 215 ; In the case of unsur2 is activated, we reduce levels 216 216 if NOT keyword_set(nocontour) then begin -
trunk/SRC/ToBeReviewed/PLOTS/DESSINE/pltt.pro
r483 r493 183 183 ; Sebastien Masson (smasson\@lodyc.jussieu.fr) 184 184 ; 27/5/98 185 ; J erome Vialard (adapting plt to hovmoeller drawing)185 ; JérÃŽme Vialard (adapting plt to hovmoeller drawing) 186 186 ; 2/7/98 187 187 ; Sebastien Masson 14/8/98 (continents,barres) … … 199 199 ; 200 200 ; @todo 201 ; seb: definition of parameters, L.426 à 427, L. 492 à493201 ; seb: definition of parameters, L.426 à 427, L. 492 à 493 202 202 ; 203 203 ;- … … 331 331 ELSE tempsmin = temps[0] 332 332 ; on shift l''axe du temps pour des questions de precision sur les 333 ; dates du calend ier julien en long qui sont passes en float ds les axes333 ; dates du calendrier julien en long qui sont passes en float ds les axes 334 334 xx = temps-tempsmin 335 335 !x.range=!x.range-tempsmin … … 397 397 ;----------------------------------------------------------------------------- 398 398 ; on shift l''axe du temps pour des questions de precision sur les 399 ; dates du calend ier julien en long qui sont passes en float ds les axes399 ; dates du calendrier julien en long qui sont passes en float ds les axes 400 400 case typdes of 401 401 '1d' : begin … … 644 644 fini: 645 645 ;------------------------------------------------------------ 646 ; we reput time axis in IDL julian days and not in julian days count from tempsmin646 ; we reput time axis in IDL Julian days and not in Julian days count from tempsmin 647 647 ;------------------------------------------------------------ 648 648 if type EQ 'xt' then BEGIN … … 653 653 !x.tickv=!x.tickv+tempsmin 654 654 ENDELSE 655 ; We do a false plot to these values are considerate d655 ; We do a false plot to these values are considerate 656 656 plot, [0], [0], /nodata, /noerase, xstyle = 5, ystyle = 5 $ 657 657 , title = '', subtitle = '', ytitle = '', xtitle = '' -
trunk/SRC/ToBeReviewed/PLOTS/DESSINE/pltz.pro
r428 r493 114 114 ; 115 115 ; @keyword NOMASK 116 ; activate to sup ress the use of the land-sea mask when plotting the field116 ; activate to suppress the use of the land-sea mask when plotting the field 117 117 ; 118 118 ; @keyword NO_PARTIALSTEP 119 ; activate to sup ress the use of partial steps (force key_partialstep = 0 within pltz)119 ; activate to suppress the use of partial steps (force key_partialstep = 0 within pltz) 120 120 ; 121 121 ; @keyword NOTRI … … 175 175 ; 176 176 ; @todo 177 ; seb definition of param aters L.215 à221177 ; seb definition of parameters L.215 Ã 221 178 178 ; 179 179 ;- -
trunk/SRC/ToBeReviewed/PLOTS/DESSINE/scontour.pro
r472 r493 10 10 ; @keyword NOREINITPLT 11 11 ; We active it if we do not want environment variables !p, !x, !y, !z 12 ; to be reiniti lalized by the procedure <pro>reinitplt</pro>12 ; to be reinitialized by the procedure <pro>reinitplt</pro> 13 13 ; 14 14 ; @keyword _EXTRA -
trunk/SRC/ToBeReviewed/PLOTS/DESSINE/splot.pro
r370 r493 10 10 ; @keyword NOREINITPLT 11 11 ; We active it if we do not want environment variables !p, !x, !y, !z 12 ; to be reiniti lalized by the procedure <pro>reinitplt</pro>12 ; to be reinitialized by the procedure <pro>reinitplt</pro> 13 13 ; 14 14 ; @keyword _EXTRA -
trunk/SRC/ToBeReviewed/PLOTS/DESSINE/tvplus.pro
r479 r493 82 82 ; Sebastien Masson (smasson\@lodyc.jussieu.fr) 83 83 ; 18/12/98 84 ; Aug 2005: quick cleaning + english84 ; Aug 2005: quick cleaning + English 85 85 ; 86 86 ; @version -
trunk/SRC/ToBeReviewed/PLOTS/DIVERS/autoscale.pro
r325 r493 43 43 coef = [2, 2.5, 5, 10] 44 44 ; 45 ; We test different sCI (contour intervals), i.e. 1, 2, 2.5, 5 and 1045 ; We test different CI (contour intervals), i.e. 1, 2, 2.5, 5 and 10 46 46 ; until the number of contour is inferior to 30. 47 47 ; -
trunk/SRC/ToBeReviewed/PLOTS/DIVERS/restoreatt.pro
r378 r493 49 49 end 50 50 ELSE:BEGIN 51 ras = report('Le nom '+nomelements[i]+' ne correspon ta aucun element reconnu de la structure. !C cf. IDL> xhelp, ''litchamp''')51 ras = report('Le nom '+nomelements[i]+' ne correspond a aucun element reconnu de la structure. !C cf. IDL> xhelp, ''litchamp''') 52 52 end 53 53 endcase -
trunk/SRC/ToBeReviewed/PLOTS/LABEL/label_date.pro
r371 r493 111 111 112 112 x1 = x + offset 113 caldat, long(x1), month, day, year, _EXTRA = ex;Get the calendar date from julian113 caldat, long(x1), month, day, year, _EXTRA = ex;Get the calendar date from Julian 114 114 frac = x1 - long(x1) ;time of day, from 0 to 1. 115 115 -
trunk/SRC/ToBeReviewed/PLOTS/VECTEUR/vecteur.pro
r482 r493 231 231 ; What we do: 232 232 ; In a 3d cartesian reference, 233 ; a) We find coordinates of the point T (starting of the arrow) situ ed233 ; a) We find coordinates of the point T (starting of the arrow) situated 234 234 ; on the sphere. 235 235 ; b) To each point T, we determine local directions defined by the grid … … 274 274 ; Stage 1, b) 275 275 ; 276 ; Construction of a vector nu (resp. nv), vect r normed carried by the axis of276 ; Construction of a vector nu (resp. nv), vector normed carried by the axis of 277 277 ; points u[i,j] and u[i-1,j] (resp v[i,j] and v[i,j-1]) which define, for each 278 278 ; point on the sphere, local directions associated with u and v. These vectors … … 364 364 ; of changing of date... BEWARE, do not cut arrow which goes out of the 365 365 ; window! 366 ; test: If it goes out of the frame, but, thanks to +/- 360 ° it come in,366 ; test: If it goes out of the frame, but, thanks to +/- 360° it come in, 367 367 ; we modify it 368 368 ; … … 443 443 ; 444 444 ; We modify the array norme to an element having the value cm be represented 445 ; by a line of leng ht1 cm on the paper. Norme contains the norm of vectors445 ; by a line of length 1 cm on the paper. Norme contains the norm of vectors 446 446 ; we want to draw. 447 447 ; -
trunk/SRC/ToBeReviewed/PLOTS/axe.pro
r369 r493 14 14 ; @param TEMPSMIN {in}{required} 15 15 ; In the case where we do cut containing the time dimension, we have 16 ; to specify the beginning of the time's axis in julian days.16 ; to specify the beginning of the time's axis in Julian days. 17 17 ; 18 18 ; @param TEMPSMAX {in}{required} 19 19 ; In the case where we do cut containing the time dimension, we have 20 ; to specify the end of the time's axis in julian days.20 ; to specify the end of the time's axis in Julian days. 21 21 ; 22 22 ; @keyword SIN -
trunk/SRC/ToBeReviewed/PLOTS/legende.pro
r378 r493 123 123 endif 124 124 ;------------------------------------------------------------ 125 ; Shap ping of subdomain 's dimensions125 ; Shaping of subdomain 's dimensions 126 126 ;------------------------------------------------------------ 127 127 la1 = strtrim(string(format = fmt_bt, lat1), 2) -
trunk/SRC/ToBeReviewed/PLOTS/style.pro
r378 r493 54 54 ; value itself, a more general definition can be given with a scalar 55 55 ; string with the following structure: 'xxNN...NNyy' with 56 ; xx and yy correspondin dto one the following choices (with the56 ; xx and yy corresponding to one the following choices (with the 57 57 ; corresponding meaning) 58 58 ; so -> Solid -
trunk/SRC/ToBeReviewed/PLOTS/symbols.pro
r378 r493 5 5 ; 6 6 ; @param NSYM {in}{required} {type=integer} 7 ; Code of sym pbols :7 ; Code of symbols : 8 8 ; 1 = open circle 9 9 ; 2 = filled circle -
trunk/SRC/ToBeReviewed/STATISTICS/a_timecorrelate.pro
r371 r493 140 140 141 141 NAN = ( (WHERE(FINITE(X) EQ 0 ))[0] NE -1 ) ? 1 : 0 142 ;We can retrieve the matrix of real leng hts of time-series142 ;We can retrieve the matrix of real lengths of time-series 143 143 nTreal = ( (WHERE(FINITE(X) EQ 0 ))[0] NE -1 ) ? TOTAL(FINITE(X), XNDim) : nT 144 144 -
trunk/SRC/ToBeReviewed/STATISTICS/skewness_4d.pro
r378 r493 91 91 92 92 NAN = ( (WHERE(FINITE(X) EQ 0 ))[0] NE -1 ) ? 1 : 0 93 ;We can retrieve the matrix of real leng hts of time-series93 ;We can retrieve the matrix of real lengths of time-series 94 94 nTreal = ( (WHERE(FINITE(X) EQ 0 ))[0] NE -1 ) ? TOTAL(FINITE(X), XNDim) : nT 95 95 -
trunk/SRC/ToBeReviewed/STRING/isnumber.pro
r372 r493 14 14 ; 15 15 ; @returns 16 ; x = optional y returned numeric value if valid.16 ; x = optionally returned numeric value if valid. 17 17 ; i = test flag: 18 18 ; 0: not a number. … … 46 46 print,' i = isnumber(txt, [x])' 47 47 print,' txt = text string to test. in' 48 print,' x = optional y returned numeric value if valid. out'48 print,' x = optionally returned numeric value if valid. out' 49 49 print,' i = test flag: out' 50 50 print,' 0: not a number.' -
trunk/SRC/ToBeReviewed/STRING/lenstr.pro
r325 r493 1 1 ;+ 2 2 ; ROUTINE: lenstr 3 ; US EAGE:result=lenstr(str)3 ; USAGE: result=lenstr(str) 4 4 ; 5 5 ; input: -
trunk/SRC/ToBeReviewed/TRIANGULATION/dessinetri.pro
r479 r493 12 12 ; 13 13 ; @param X {in}{optional} 14 ; The x position of points to which the tr angulation refer to14 ; The x position of points to which the triangulation refer to 15 15 ; (see the x array provided in triangulate) 16 16 ; 17 17 ; @param Y {in}{optional} 18 ; The y position of points to which the tr angulation refer to18 ; The y position of points to which the triangulation refer to 19 19 ; (see the y array provided in triangulate) 20 20 ; … … 30 30 ; @keyword CHANGECOLOR 31 31 ; =n. To change the color of each triangle. n colors 32 ; will be used and repe ted if necessary.32 ; will be used and repeated if necessary. 33 33 ; 34 34 ; @uses -
trunk/SRC/ToBeReviewed/TRIANGULATION/tracecote.pro
r370 r493 61 61 if key_gridtype EQ 'e' then onemore = xf[0, 0] gT xf[0, 1] 62 62 ; We pass in normalized coordinates to be able to become independant from the projection's 63 ; type cho osen and from the support on which we do the drawing (screen or postscript)63 ; type chosen and from the support on which we do the drawing (screen or postscript) 64 64 z = convert_coord(xf[*],yf[*],/data,/to_normal) 65 65 xf = reform(z[0, *], nx, ny) -
trunk/SRC/ToBeReviewed/TRIANGULATION/tracemask.pro
r370 r493 70 70 ; The 2 first lines are identical. 71 71 mask[1:tailleentree[1], 0] = maskentree[*, 0] 72 ; We calculate the position following x of points which will serve to trace the mask. They are situated between each points of the mask, ex ept for the last column we can not calculate and so we put at max (!x.range).72 ; We calculate the position following x of points which will serve to trace the mask. They are situated between each points of the mask, except for the last column we can not calculate and so we put at max (!x.range). 73 73 xrange = !x.range[sort(!x.range)] ; if REVERSE_X is used 74 74 xentree = .5*(xentree+shift(xentree, -1, 0)) -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/buildreadcmd.pro
r370 r493 97 97 98 98 if procedure EQ 'pltt' AND date1 EQ date2 then BEGIN 99 ; we redefine the dates to the begin ing and end of the calendar99 ; we redefine the dates to the beginning and end of the calendar 100 100 calendar = (*(extractatt(top_uvalue, 'fileparameters'))[currentfile]).time_counter 101 101 date1 = jul2date(calendar[0]) -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/createhistory.pro
r367 r493 51 51 optionsflag = extractatt(top_uvalue, 'optionsflag') 52 52 portrait = (optionsflag[where(options EQ 'Portrait/Landscape'), 0])[0] 53 ; composition du text conten nu ds history.pro53 ; composition du text contenu dans history.pro 54 54 texte = ['@common' $ 55 55 , ' ' $ -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/xcreateanim.pro
r325 r493 117 117 wdelete, !d.window 118 118 ; 119 ; Creation and writ ting loop in the file.119 ; Creation and writing loop in the file. 120 120 ; 121 121 IF index2 GT index1 THEN BEGIN -
trunk/SRC/ToBeReviewed/WIDGET/COMPOUND_WIDGET/cw_domain.pro
r371 r493 419 419 gdep2 = fix(dthlv2_value.combobox_value) 420 420 if dthlv1_value.combobox_index GT event.index then BEGIN 421 ; We red fine the value of dthlv1id421 ; We redefine the value of dthlv1id 422 422 widget_control, dthlv1id, set_value = {combobox_select:event.index} 423 423 ; So we redefine the value and the min of the slider 1 -
trunk/SRC/ToBeReviewed/WIDGET/xx.pro
r327 r493 58 58 listgrid[[3, 5]] = 'V' 59 59 ENDIF 60 ; calendar to be used (in IDL julian days60 ; calendar to be used (in IDL Julian days 61 61 ; ++++ if NOT keyword_set(calendar) then BEGIN 62 62 ; ++++ if keyword_set(jour) then calendar = calendriertotem(/julian_day) ELSE calendar = calendriertotem(/julian_day, /mensuel) 63 63 ; ++++ ENDIF 64 ; Name of the file refer ing to the mask64 ; Name of the file referring to the mask 65 65 if NOT keyword_set(meshfilename) then meshfilename = '/usr1/com/smasson/IDL/INIT/inittotem.pro' 66 66 ; ++++ meshparameters = whichgrid(meshfilename) -
trunk/SRC/Utilities/createpro.pro
r375 r493 40 40 ; Sebastien Masson (smasson\@lodyc.jussieu.fr) 41 41 ; - cleaning + new keywords: October 2005 42 ; - Feb. 2006: sup ress keyword "kwdused" and use call_procedure instead of42 ; - Feb. 2006: suppress keyword "kwdused" and use call_procedure instead of 43 43 ; execute 44 44 ; -
trunk/SRC/Utilities/isadirectory.pro
r371 r493 60 60 directory[i] = dialog_pickfile(/directory, title = title $ 61 61 , /must_exist, _extra = ex) 62 if directory[i] EQ '' THEN RETURN, report('check/find directory cancel ed')62 if directory[i] EQ '' THEN RETURN, report('check/find directory cancelled') 63 63 ENDIF 64 64 ENDFOR -
trunk/SRC/Utilities/isafile.pro
r423 r493 100 100 IF dirname[0] EQ '.' AND keyword_set(iodirectory) THEN dirpath = dirname[n_elements(dirname)-1] ELSE dirpath = dirname[0] 101 101 fileout = dialog_pickfile(path = dirpath, filter = filter, _extra = ex) 102 if fileout EQ '' THEN RETURN, report('check/find file cancel ed')102 if fileout EQ '' THEN RETURN, report('check/find file cancelled') 103 103 ; check again everything... 104 104 basename = file_basename(fileout) … … 108 108 + basename) 109 109 ; if we cancel the check 110 IF size(dirname, /type) NE 7 THEN return, report('check/find file cancel ed')110 IF size(dirname, /type) NE 7 THEN return, report('check/find file cancelled') 111 111 fileout = find(basename, iodirectory = dirname $ 112 112 , recursive = recursive, /unique, /firstfound, ONLYPRO = onlypro $ -
trunk/SRC/Utilities/mergeonline_help.pro
r461 r493 176 176 lines = strmatch(about, '@*') 177 177 about = about[where(lines EQ 0)] 178 ; add some informat tions:178 ; add some informations: 179 179 about = [about, '', 'More informations on', 'http://forge.ipsl.jussieu.fr/saxo', ''] 180 180 ; -
trunk/SRC/Utilities/report.pro
r485 r493 120 120 ; we get the line, routine name and revision version 121 121 IF NOT keyword_set(simple) THEN BEGIN 122 ; Look for the rev sion in the code of the procedure/function calling this122 ; Look for the revision in the code of the procedure/function calling this 123 123 ; report function (ie the one where an problem was detected) in the first 124 ; occur ence of the form :124 ; occurrence of the form : 125 125 ; "; $Id$" 126 126 prefix = routine_name(1) -
trunk/SRC/Utilities/routine_name.pro
r430 r493 67 67 name = strtrim(name, 2) ; we remove blanks in front of and behind 68 68 name = strcompress(name) ; we compress blanks 69 ; we do not hold back the two first elements who are a blan ck and the line concerning69 ; we do not hold back the two first elements who are a blank and the line concerning 70 70 ; routine_name. 71 71 name = name[2: n_elements(name)-1] -
trunk/SRC/Utilities/set_default_device.pro
r479 r493 6 6 ; 7 7 ; @categories 8 ; devi de managment and default definitions8 ; device management and default definitions 9 9 ; 10 10 ; @examples … … 22 22 ; thanks to fstat help and 23 23 ; http://idl.tamu.edu/headless_X.html for z-buffer usage 24 ; IDL instruction HELP,/FILES,-2,-1,0 might also be useful lhere24 ; IDL instruction HELP,/FILES,-2,-1,0 might also be useful here 25 25 ; 26 26 ; @version -
trunk/SRC/Utilities/xhelp.pro
r378 r493 81 81 ; do we have hidden parts? 82 82 hide = where(stregex(fulltext, '^ *; *@hidden *$', /boolean) EQ 1) 83 ; bui d the text to display83 ; build the text to display 84 84 header = '' 85 85 sepbloc = ['', string(replicate(byte('='), 60)), '']
Note: See TracChangeset
for help on using the changeset viewer.