# Search:

Type: Posts; User: allan

Page 1 of 2 1

1. ## Thread: Power Spectrum On 1-D Time Series Data

by allan
Replies
6
Views
4,506

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

sounds good to me;
thanks for the information!
allan
2. ## Thread: Power Spectrum On 1-D Time Series Data

by allan
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. ## Thread: Power Spectrum On 1-D Time Series Data

by allan
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.
(a) t is a double so integer division is not used to get fs;
(b)...

by allan
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...

by allan
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;

by allan
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 . . .

by allan
Replies
9
Views
3,983

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

you are welcome,
where the surface is shaded according to height;

a = dist(10)
poly_surf, a, v, p, n
i =...

by allan
Replies
9
Views
3,983

### The SET_SHADING Gouraud keyword does not affect...

and the documentation does not claim that it does. It claims only to

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...

by allan
Replies
12
Views
6,837

### you are welcome, hcrisp

you are welcome, hcrisp

by allan
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;

by allan
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. ## Thread: Error in FREQRESP_Z?

by allan
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. ## Thread: problem with IIRFILT

by allan
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. ## Thread: point in polygon?

by allan
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
Architecture Independent...
16. ## Thread: point in polygon?

by allan
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. ## Thread: Error in FREQRESP_Z?

by allan
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

by allan
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...

by allan
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. ## Thread: CURVEFIT function yielding -1.#IND0

by allan
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. ## Thread: Unable to allocate memory

by allan
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. ## Thread: memory errors with fftcomp

by allan
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...

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...

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

by allan
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