Search:

Type: Posts; User: allan

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    4,506

    sounds good to me; thanks for the information! ...

    sounds good to me;
    thanks for the information!
    allan
  2. Replies
    6
    Views
    4,506

    Hi Solargus; EXTREMA would not work anyway since...

    Hi Solargus;
    EXTREMA would not work anyway since it gives local extrema, not a sorted list.
    Continuing with the previous example, you can instead do
    pm, frequency((sort(-double(power)))(0:3))...
  3. Replies
    6
    Views
    4,506

    Hi Solargus; You were very close. Below is a...

    Hi Solargus;
    You were very close.
    Below is a working example for you.
    Please note the following changes from your original code:
    (a) t is a double so integer division is not used to get fs;
    (b)...
  4. Replies
    9
    Views
    3,983

    ok, below is an example for a general case, where...

    ok, below is an example for a general case, where x and y vectors are used,
    and where these vectors have different lengths and have random spacing;

    a different 'warped dist' will appear each time...
  5. Replies
    9
    Views
    3,983

    then i copied a.pro to b.pro, changed the size of...

    then i copied a.pro to b.pro, changed the size of the dist(),
    and repeatedly did
    @a
    @b
    @a
    @b
    .
    .
    .
    again without incident;
  6. Replies
    9
    Views
    3,983

    weird, what is your platform and version of wave?...

    weird, what is your platform and version of wave?
    i just put my last example in a file a.pro and then did
    @a
    thirty or forty times with incident . . .
  7. Replies
    9
    Views
    3,983

    you are welcome, and please find below an...

    you are welcome,
    and please find below an example related to your latest question,
    where the surface is shaded according to height;

    a = dist(10)
    poly_surf, a, v, p, n
    i =...
  8. Replies
    9
    Views
    3,983

    The SET_SHADING Gouraud keyword does not affect...

    The SET_SHADING Gouraud keyword does not affect SHADE_SURF,
    and the documentation does not claim that it does. It claims only to
    effect POLYSHADE; this will be made more explicit in a future...
  9. Thread: Pattern Matching

    by allan
    Replies
    7
    Views
    4,977

    below is some code similar to what spinman...

    below is some code similar to what spinman suggested but probably faster;
    instead of looping over the container array, it loops over those elements of
    the container array which match the first...
  10. Replies
    12
    Views
    6,837

    you are welcome, hcrisp

    you are welcome, hcrisp
  11. Replies
    12
    Views
    6,837

    sorry, the last paragraph should read: the...

    sorry, the last paragraph should read:

    the last few examples show that the syntax a(i,j) is more
    general than a(k,m,0) since it is not restricted to a grid;
  12. Replies
    12
    Views
    6,837

    WAVE does index permutations if subscripts are of...

    WAVE does index permutations if subscripts are of mixed type,
    i.e. not all arrays:

    rows = [1,2,3]
    cols = [1,3,5]
    aa = intarr(5,5)
    aa(rows, cols, 0) = 8
    pm, aa

    the '0' subscript in the 3rd...
  13. Replies
    6
    Views
    4,559

    correct again, this is a bug; it is fixed now...

    correct again, this is a bug;
    it is fixed now though, and the fix will be in the next full release of pv-wave;
  14. Replies
    1
    Views
    2,832

    you are correct, this is a bug; it is fixed as...

    you are correct, this is a bug;
    it is fixed as of now though,
    and the fix will appear in the next full release of pv-wave;
  15. Replies
    4
    Views
    3,188

    it is in version 9.01 but will work in version...

    it is in version 9.01 but will work in version 9.00;
    you can get pntnhull.pro from
    ftp://ftp.vni.com/VNI/wave_patches/wave_index.html
    at the link entitled
    Architecture Independent...
  16. Replies
    4
    Views
    3,188

    there is wave/lib/user/examples/pntnhull.pro...

    there is wave/lib/user/examples/pntnhull.pro which is an
    incomplete attempt at an n-d convex hull routine, but it
    works just fine for n<3
  17. Replies
    6
    Views
    4,559

    thanks for the concise description hcrisp; you...

    thanks for the concise description hcrisp;
    you are correct that it is a bug,
    and i have filed the change-request to have it fixed;
    allan
  18. Replies
    9
    Views
    6,407

    you are welcome, hcrisp; i should point out that...

    you are welcome, hcrisp;
    i should point out that interpreter efficiency may be the
    reason that kernel routines do not use wrapper-friendly
    keyword logic; the pv-wave interpreter has low-overhead...
  19. Replies
    9
    Views
    6,407

    good catch, hcrisp; in firfilt.pro offset was...

    good catch, hcrisp;

    in firfilt.pro offset was processed like:

    IF KEYWORD_SET(offset) THEN shft = LONG(offset(0)) $
    ELSE shft = length_filt/2
    IF param_present(offset) AND (NOT...
  20. Replies
    10
    Views
    6,131

    it looks like the algorithm produced a sqrt(-1)...

    it looks like the algorithm produced a sqrt(-1) which can
    occur if the problem is ill-posed and/or represented with
    data of insufficient precision, so the easiest potential
    workaround would be to...
  21. Replies
    3
    Views
    3,594

    hi spinman; the "unable to allocate memory"...

    hi spinman;
    the "unable to allocate memory" error means just what
    you might expect: no more system memory is available
    for the pv-wave process; to avoid a loop, whereinvec.pro
    does a tensor_eq...
  22. Replies
    4
    Views
    3,327

    i cannot reproduce the error you reported; fft()...

    i cannot reproduce the error you reported;
    fft() is as good as fftcomp() and it is more general
    since it can accommodate arrays of arbitrary dimension;
    note though that when using fft(), it is...
  23. Thread: hcrisp

    by allan
    Replies
    3
    Views
    3,106

    you are welcome, hcrisp; you are right about...

    you are welcome, hcrisp;
    you are right about bilinear(), but i did not suggest it
    because it requires the normalization you mentioned;
    also, intrp() can be much faster than bilinear() when
    the...
  24. Thread: hcrisp

    by allan
    Replies
    3
    Views
    3,106

    the following will do bilinear interpolation for...

    the following will do bilinear interpolation for this problem

    for i=0,2 do pm, intrp(intrp(elev,0,walk(0,i),z=m),1,walk(1,i),z=n)

    allan
  25. Replies
    9
    Views
    6,407

    > KEYWORD_SET will not work in cases where 0 is...

    > KEYWORD_SET will not work in cases where 0 is passed
    > as the mykey value and I first need to check if the key
    > was defined.

    in this case you can do:
    if n_elements(mykey) ne 0 then if...
Results 1 to 25 of 41
Page 1 of 2 1 2