Changeset 114 for trunk/SRC/Interpolation
- Timestamp:
- 06/19/06 16:14:56 (18 years ago)
- Location:
- trunk/SRC/Interpolation
- Files:
-
- 1 deleted
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Interpolation/.idlwave_catalog
r76 r114 9 9 ("angle" pro nil (lib "angle.pro" nil "saxo") "%s, fileocemesh, gcosu, gsinu, gcosv, gsinv, gcost, gsint" (nil ("DOUBLE") ("IODIRECTORY"))) 10 10 ("clickincell" fun nil (lib "clickincell.pro" nil "saxo") "Result = %s" (nil ("_EXTRA") ("CELLTYPE") ("COLOR") ("DRAWCELL") ("IJ") ("ORIGINAL"))) 11 ("compute_fromirr_bilinear_weigaddr" pro nil (lib "compute_fromirr_bilinear_weigaddr.pro" nil "saxo") "%s, olonin, olat, omsk, alonin, alat, amsk, weig, addr" (nil)) 11 12 ("compute_fromreg_bilinear_weigaddr" pro nil (lib "compute_fromreg_bilinear_weigaddr.pro" nil "saxo") "%s, alonin, alatin, olonin, olat, weig, addr" (nil ("NONORTHERNLINE") ("NOSOUTHERNLINE"))) 12 13 ("compute_fromreg_imoms3_weigaddr" pro nil (lib "compute_fromreg_imoms3_weigaddr.pro" nil "saxo") "%s, alonin, alatin, olonin, olat, weig, addr" (nil ("NONORTHERNLINE") ("NOSOUTHERNLINE"))) … … 14 15 ("cutsegment" fun nil (lib "cutsegment.pro" nil "saxo") "Result = %s(x0, y0, x1, y1, n)" (nil ("endpoints") ("onsphere"))) 15 16 ("extrapolate" fun nil (lib "extrapolate.pro" nil "saxo") "Result = %s(zinput, maskinput, nb_iteration)" (nil ("MAXVAL") ("MINVAL") ("x_periodic"))) 17 ("fromirr" fun nil (lib "fromirr.pro" nil "saxo") "Result = %s(method, datain, lonin, latin, mskin, lonout, latout, mskout)" (nil ("ADDR") ("WEIG"))) 16 18 ("fromreg" fun nil (lib "fromreg.pro" nil "saxo") "Result = %s(method, datain, lonin, latin, lonout, latout)" (nil ("ADDR") ("NONORTHERNLINE") ("NOSOUTHERNLINE") ("WEIG"))) 17 19 ("get_gridparams" pro nil (lib "get_gridparams.pro" nil "saxo") "%s, in1, in2, in3, in4, in5, in6, in7, in8" (nil ("DOUBLE"))) … … 28 30 ("spl_incr" fun nil (lib "spl_incr.pro" nil "saxo") "Result = %s(x, y, x2)" (nil ("YP0") ("YPN_1"))) 29 31 ("spl_keep_mean" fun nil (lib "spl_keep_mean.pro" nil "saxo") "Result = %s(x, yin, x2)" (nil ("GE0") ("YP0") ("YPN_1"))) 30 ("square2quadrilateral" fun nil (lib "square2quadrilateral.pro" nil "saxo") "Result = %s(x0in, y0in, x1in, y1in, x2in, y2in, x3in, y3in, xxin, yyin)" (nil)) 31 ("testinterp" pro nil (lib "testinterp.pro" nil "saxo") "%s" (nil)))) 32 ("square2quadrilateral" fun nil (lib "square2quadrilateral.pro" nil "saxo") "Result = %s(x0in, y0in, x1in, y1in, x2in, y2in, x3in, y3in, xxin, yyin)" (nil)))) -
trunk/SRC/Interpolation/angle.pro
r101 r114 30 30 ; 31 31 FUNCTION fsnspp, plam, pphi, DOUBLE = double 32 ; 33 compile_opt idl2, strictarrsubs 34 ; 32 35 IF keyword_set(double) THEN BEGIN 33 36 a = 2.d * tan( !dpi/4.d - !dpi/180.d*pphi/2.d ) … … 61 64 ; 0. read oceanic grid parameters 62 65 ; ================================ 66 ; 67 ; 68 compile_opt idl2, strictarrsubs 63 69 ; 64 70 IF keyword_set(IODIRECTORY) THEN BEGIN -
trunk/SRC/Interpolation/clickincell.pro
r101 r114 47 47 ;- 48 48 FUNCTION clickincell, CELLTYPE = celltype, DRAWCELL = drawcell, COLOR = color, ORIGINAL = original, IJ = ij, _EXTRA = extra 49 ; 50 compile_opt idl2, strictarrsubs 51 ; 49 52 @common 50 53 ; -
trunk/SRC/Interpolation/compute_fromreg_bilinear_weigaddr.pro
r110 r114 42 42 , NONORTHERNLINE = nonorthernline, NOSOUTHERNLINE = nosouthernline 43 43 ; 44 compile_opt strictarr, strictarrsubs44 compile_opt idl2, strictarrsubs 45 45 ; 46 46 alon = alonin -
trunk/SRC/Interpolation/compute_fromreg_imoms3_weigaddr.pro
r105 r114 44 44 , NONORTHERNLINE = nonorthernline, NOSOUTHERNLINE = nosouthernline 45 45 ; 46 compile_opt strictarr, strictarrsubs46 compile_opt idl2, strictarrsubs 47 47 ; 48 48 alon = alonin -
trunk/SRC/Interpolation/cutpar.pro
r101 r114 48 48 ;- 49 49 FUNCTION cutpar, x0, y0, x1, y1, x2, y2, x3, y3, n, endpoints = endpoints, onsphere = onsphere 50 ; 51 compile_opt idl2, strictarrsubs 52 ; 50 53 ; is it a parallelogram? 51 54 ; eps = 1e-4 -
trunk/SRC/Interpolation/cutsegment.pro
r101 r114 43 43 ;- 44 44 FUNCTION cutsegment, x0, y0, x1, y1, n, endpoints = endpoints, onsphere = onsphere 45 ; 46 compile_opt idl2, strictarrsubs 47 ; 45 48 ; number of segment 46 49 nseg = n_elements(x0) -
trunk/SRC/Interpolation/extrapolate.pro
r101 r114 6 6 FUNCTION extrapolate, zinput, maskinput, nb_iteration, x_periodic = x_periodic, MINVAL = minval, MAXVAL = maxval 7 7 ; 8 compile_opt strictarr, strictarrsubs8 compile_opt idl2, strictarrsubs 9 9 ; 10 10 ; check the number of iteration used in the extrapolation. -
trunk/SRC/Interpolation/fromreg.pro
r113 r114 60 60 , NOSOUTHERNLINE = nosouthernline 61 61 ; 62 compile_opt strictarr, strictarrsubs62 compile_opt idl2, strictarrsubs 63 63 ; 64 64 ;--------------- -
trunk/SRC/Interpolation/get_gridparams.pro
r102 r114 63 63 ; file, lonname, latname, lon, lat, jpi, jpj, n_dimensions 64 64 ; lon, lat, jpi, jpj, n_dimensions 65 ; 66 ; 67 compile_opt idl2, strictarrsubs 65 68 ; 66 69 CASE n_params() OF -
trunk/SRC/Interpolation/imoms3.pro
r101 r114 3 3 ;- 4 4 FUNCTION imoms3, xin 5 ; 6 compile_opt idl2, strictarrsubs 7 ; 5 8 6 9 x = abs(xin) -
trunk/SRC/Interpolation/inquad.pro
r110 r114 67 67 FUNCTION inquad, x, y, x1, y1, x2, y2, x3, y3, x4, y4, ONSPHERE = onsphere, DOUBLE = double, ZOOMRADIUS = zoomradius, NOPRINT = noprint, NEWCOORD = newcoord 68 68 ; 69 compile_opt idl2, strictarrsubs 69 70 ; 70 71 ntofind = n_elements(x) -
trunk/SRC/Interpolation/inrecgrid.pro
r101 r114 50 50 FUNCTION inrecgrid, x1d, y1d, left, bottom, output2d = output2d, checkout = checkout 51 51 ; 52 compile_opt idl2, strictarrsubs 53 ; 52 54 ncellx = n_elements(left) 53 55 ncelly = n_elements(bottom) -
trunk/SRC/Interpolation/ll_narcs_distances.pro
r101 r114 72 72 FUNCTION LL_NARCS_DISTANCES, lon0, lat0, arc_dist, az, DEGREES = degs 73 73 ; 74 compile_opt idl2, strictarrsubs 75 ; 76 ; 74 77 IF n_elements(lon0) NE n_elements(lat0) $ 75 78 OR n_elements(lon0) NE n_elements(arc_dist) $ -
trunk/SRC/Interpolation/map_npoints.pro
r101 r114 92 92 , RADIANS = radians, RADIUS = radius, MIDDLE = middle, TWO_BY_TWO = two_by_two 93 93 94 COMPILE_OPT idl2 95 ON_ERROR, 2 ; return to caller 94 COMPILE_OPT idl2, strictarrsubs 96 95 97 96 IF (N_PARAMS() LT 4) THEN $ … … 107 106 MESSAGE, 'When using two_by_two keyword, P0 and P1 must have the same number of elements' 108 107 109 mx = MAX(ABS([lat0 , lat1]))108 mx = MAX(ABS([lat0[*], lat1[*]])) 110 109 pi2 = !dpi/2 111 110 IF (mx GT (KEYWORD_SET(radians) ? pi2 : 90)) THEN $ -
trunk/SRC/Interpolation/neighbor.pro
r101 r114 36 36 FUNCTION neighbor, p0lon, p0lat, neighlon, neighlat, sphere = sphere, distance = distance, radians = radians 37 37 ; 38 compile_opt idl2, strictarrsubs 39 ; 38 40 ; somme checks 39 41 IF n_elements(p0lon) NE 1 THEN MESSAGE, 'Sorry p0lon must be a scalar' -
trunk/SRC/Interpolation/quadrilateral2square.pro
r101 r114 70 70 ;------------------------------------------------------------ 71 71 FUNCTION quadrilateral2square, x0in, y0in, x1in, y1in, x2in, y2in, x3in, y3in, xxin, yyin, PERF = perf 72 ; 73 ; 74 compile_opt idl2, strictarrsubs 72 75 ; 73 76 tempsone = systime(1) -
trunk/SRC/Interpolation/spl_fstdrv.pro
r101 r114 40 40 FUNCTION spl_fstdrv, x, y, yscd, x2 41 41 ; 42 ; compute the first derivative of the spline function; 42 ; compute the first derivative of the spline function 43 ; 44 compile_opt idl2, strictarrsubs 43 45 ; 44 46 nx = n_elements(x) -
trunk/SRC/Interpolation/spl_incr.pro
r101 r114 65 65 FUNCTION pure_concave, x1, x2, y1, y2, der2, x 66 66 ; X^n type 67 ; 68 compile_opt idl2, strictarrsubs 69 ; 67 70 xx = (double(x)-double(x1))/(double(x2)-double(x1)) 68 71 f = (double(x2)-double(x1))/(double(y2)-double(y1)) … … 81 84 FUNCTION pure_convex, x1, x2, y1, y2, der2, x 82 85 ; 1-(1-X)^n type 86 ; 87 compile_opt idl2, strictarrsubs 88 ; 83 89 xx = 1.0d - (double(x)-double(x1))/(double(x2)-double(x1)) 84 90 f = (double(x2)-double(x1))/(double(y2)-double(y1)) … … 106 112 FUNCTION spl_incr, x, y, x2, YP0 = yp0, YPN_1 = ypn_1 107 113 ; 114 compile_opt idl2, strictarrsubs 115 ; 108 116 ;--------------------------------- 109 117 ; check and initialisation ... 110 118 ;--------------------------------- 119 ; 111 120 nx = n_elements(x) 112 121 ny = n_elements(y) -
trunk/SRC/Interpolation/spl_keep_mean.pro
r101 r114 78 78 FUNCTION spl_keep_mean, x, yin, x2, YP0 = yp0, YPN_1 = ypn_1, GE0 = ge0 79 79 ; 80 compile_opt idl2, strictarrsubs 81 ; 80 82 ;--------------------------------- 81 83 ; check and initialisation ... -
trunk/SRC/Interpolation/square2quadrilateral.pro
r105 r114 94 94 ; definition. 95 95 ; 96 ; 97 compile_opt idl2, strictarrsubs 98 ; 96 99 IF keyword_set(double) THEN BEGIN 97 100 x0 = double(x0in) … … 122 125 ENDELSE 123 126 ; 124 IF keyword_set(double) THEN a = d lbarr(8, n_elements(x0)) $127 IF keyword_set(double) THEN a = dblarr(8, n_elements(x0)) $ 125 128 ELSE a = fltarr(8, n_elements(x0)) 126 129 ;
Note: See TracChangeset
for help on using the changeset viewer.