wave arithmetic
vpratap397
Hi,
Could some one let me know the problem with the operation I am doing. I am doing a simple arithmetic operation on a wave, but Igor refuses to accept it (ill-formed name). I did a similar operation with other wave, and it tends to accept it. Here is what it looks like:
total_SO4 = total_SO4*2 ---- Doesn't accept it.
make/d/o/n=(numpnts(nH2O_eaim)) nH2O_eaim_ugm3 = nH2O_eaim*18e6 ------- Accepts it.
Thanks
This cannot be (or at least is not a problem of the arithmetic expression). I tried this and it works just fine:
test = test*2
Note that you could also use the shorthand ...
test *= 2
I guess your problem is that Igor cannot find your wave total_SO4 for some reason (no/wrong wave assignment, wrong folder etc...)
June 14, 2020 at 04:00 am - Permalink
In reply to This cannot be (or at least… by chozo
"I guess your problem is that Igor cannot find your wave total_SO4 for some reason (no/wrong wave assignment, wrong folder etc...)"
So, the exact way of operation is:
duplicate/o/WAVE master_SO4_aero, total_SO4
total_SO4 = total_SO4*2
I am able to do other wave operation with the same wave like removing "NaNs" or removing certain values etc.
and by the way, it is not accepting this as well:
total_SO4 *= 2
June 14, 2020 at 04:10 am - Permalink
In reply to "I guess your problem is… by vpratap397
Your problem seems to be an incorrect use of the /WAVE flag in "duplicate".
/WAVE Wave holds wave references.
The wave you are duplicating is probably a data wave, causing the error. Omit that flag.
June 14, 2020 at 05:40 am - Permalink
In reply to Your problem seems to be an… by s.r.chinn
Thanks. It seems to work now.
June 14, 2020 at 05:44 am - Permalink