Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
Hi Dave, pardon me to be a bit rude, but your question is not very useful for us (granted - some people in this newsgroup can read minds - but most of us do not). I suggest you read this document and ask again: http://catb.org/~esr/faqs/smart-questions.html Thanks, Paolo On Feb 11, 9:13 am, Dave_Poreh <d.po...@gmail.com> wrote: > Folks > I have a question. I am doing a convolution for smoothing some data. > When I pass data to the PLOT, it works but when I want to get Y data > it is not working and I got error. > plot, X, convol(y,....) > Now I have a X-Y plot and I want to take convolved Y. > > Any help highly appreciated > Cheers > Dave
On Feb 11, 3:13 pm, Dave_Poreh <d.po...@gmail.com> wrote: > I have a question. I am doing a convolution for smoothing some data. > When I pass data to the PLOT, it works but when I want to get Y data > it is not working and I got error. > plot, X, convol(y,....) > Now I have a X-Y plot and I want to take convolved Y. It seems you don't have a lot of programming experience. Store the convolved data in a variable before plotting. y_convolve = convol(y,....) plot, x, y_convolve Maarten
On Feb 11, 12:15 pm, Maarten <maarten.sn...@knmi.nl> wrote: > On Feb 11, 3:13 pm, Dave_Poreh <d.po...@gmail.com> wrote: > >> I have a question. I am doing a convolution for smoothing some data. >> When I pass data to the PLOT, it works but when I want to get Y data >> it is not working and I got error. >> plot, X, convol(y,....) >> Now I have a X-Y plot and I want to take convolved Y. > > It seems you don't have a lot of programming experience. > Store the convolved data in a variable before plotting. > > y_convolve = convol(y,....) > plot, x, y_convolve Hi Maarten, I am not sure if I understand your suggestion. Why do you think there's a difference between plotting a variable and an expression? plot,x,sqrt(x) works fine Ciao, Paolo > > Maarten
On 11 Feb., 18:43, Paolo <pgri...@gmail.com> wrote: > On Feb 11, 12:15 pm, Maarten <maarten.sn...@knmi.nl> wrote: > >> On Feb 11, 3:13 pm, Dave_Poreh <d.po...@gmail.com> wrote: > >>> I have a question. I am doing a convolution for smoothing some data. >>> When I pass data to the PLOT, it works but when I want to get Y data >>> it is not working and I got error. >>> plot, X, convol(y,....) >>> Now I have a X-Y plot and I want to take convolved Y. > >> It seems you don't have a lot of programming experience. >> Store the convolved data in a variable before plotting. > >> y_convolve = convol(y,....) >> plot, x, y_convolve > > Hi Maarten, > > I am not sure if I understand your suggestion. > Why do you think there's a difference between plotting > a variable and an expression? > > plot,x,sqrt(x) works fine > > Ciao, > Paolo > > > >> Maarten > > I'd speculate that Maarten was guessing that Dave had intended to ask how to get the y-values from the plot :) Greg
On Feb 11, 7:04 pm, greg <greg.a...@googlemail.com> wrote: > On 11 Feb., 18:43, Paolo <pgri...@gmail.com> wrote: >> On Feb 11, 12:15 pm, Maarten <maarten.sn...@knmi.nl> wrote: >>> On Feb 11, 3:13 pm, Dave_Poreh <d.po...@gmail.com> wrote: >>>> I have a question. I am doing a convolution for smoothing some data. >>>> When I pass data to the PLOT, it works but when I want to get Y data >>>> it is not working and I got error. >>>> plot, X, convol(y,....) >>>> Now I have a X-Y plot and I want to take convolved Y. >>> >>> It seems you don't have a lot of programming experience. >>> Store the convolved data in a variable before plotting. >>> >>> y_convolve = convol(y,....) >>> plot, x, y_convolve >> >> Hi Maarten, >> >> I am not sure if I understand your suggestion. >> Why do you think there's a difference between plotting >> a variable and an expression? >> >> plot,x,sqrt(x) works fine Oh, it works, but if you want access to the y-values in a plot, it is usually easier to just save the values first, instead of plotting directly. > I'd speculate that Maarten was guessing that Dave had intended to ask > how to get the y-values from the plot :) Yes, indeed. But I still have to agree with the first reply that a clearer question usually generates better answers. Best, Maarten
On Feb 12, 12:55 am, Maarten <maarten.sn...@knmi.nl> wrote: > On Feb 11, 7:04 pm, greg <greg.a...@googlemail.com> wrote: > > > > > >> On 11 Feb., 18:43, Paolo <pgri...@gmail.com> wrote: >>> On Feb 11, 12:15 pm, Maarten <maarten.sn...@knmi.nl> wrote: >>>> On Feb 11, 3:13 pm, Dave_Poreh <d.po...@gmail.com> wrote: >>>> > I have a question. I am doing a convolution for smoothing some data. >>>> > When I pass data to the PLOT, it works but when I want to get Y data >>>> > it is not working and I got error. >>>> > plot, X, convol(y,....) >>>> > Now I have a X-Y plot and I want to take convolved Y. > >>>> It seems you don't have a lot of programming experience. >>>> Store the convolved data in a variable before plotting. > >>>> y_convolve = convol(y,....) >>>> plot, x, y_convolve > >>> Hi Maarten, > >>> I am not sure if I understand your suggestion. >>> Why do you think there's a difference between plotting >>> a variable and an expression? > >>> plot,x,sqrt(x) works fine > > Oh, it works, but if you want access to the y-values in a plot, it is > usually easier to just save the values first, instead of plotting > directly. > >> I'd speculate that Maarten was guessing that Dave had intended to ask >> how to get the y-values from the plot :) > > Yes, indeed. But I still have to agree with the first reply that a > clearer question usually generates better answers. > > Best, > > Maarten Sorry guys Because I put the CONVOL in a loop, that problem happened. Now I fixed it. Thanks again Cheers