Resample doesn't work?
Sandbo
Hi,
On Igor 8.0.0.10,
I ran into a strange issue, where the once working resample/rate function no longer works for me.
When I executed it with a wave created with
make/n=1e6 test
resample/rate=1e5 test
resample/rate=1e5 test
I receive an error saying "the number of points in a wave must be between 0 and 21470 million.", while I think I was within the range.
Meanwhile, if I simply use resample/down=10, it gives me the correct result.
Would you mind checking? Thanks
From the help for Resample:
The make/n=1e6 test command made a new wave with a deltax = 1.
/RATE=1e5 is asking Resample to interpolate to a rate (1/deltax) of 100,000 by interpolating 100,000 output points for each input data point.
1e5 * 1e6 = 1e11
21470 million aka 21470e6 = 2.147e+10
So Resample is reporting the correct error.
July 18, 2018 at 02:11 pm - Permalink
In reply to /RATE=sampRate Converts… by JimProuty
Thanks for the clarification, that makes sense.
It seems I have forgotten I need to scale it first.
July 19, 2018 at 07:32 am - Permalink