comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Derivative along one dimension of a data cube?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Derivative along one dimension of a data cube? [message #55074] Sun, 29 July 2007 12:29
yoyoteng is currently offline  yoyoteng
Messages: 3
Registered: July 2007
Junior Member
On Jul 28, 11:30 am, Ryan <RyanA1...@gmail.com> wrote:
> Hi folks,
> I am working with some hyperspectral images and would like to take the
> derivative of all the spectra in the cube. Is there a faster way to do
> this than looping through the x,y dimensions and calling deriv on
> every individual wavelength dimension?
>
> Thanks!
> Ryan

there was an article about that a while ago
http://groups.google.com/group/comp.lang.idl-pvwave/browse_t hread/thread/a7a6f803034f08af/df26a1f9c46df9d6?lnk=gst&q =hessian&rnum=1#df26a1f9c46df9d6

since you have a cube, try using

cube=your_data
deriv_kernel=[-1, 0, 1] & size=3
x_deriv_kernel = REFORM(deriv_kernel,size,1,1)
Lx=CONVOL(cube, x_deriv_kernel)

:) hope this was what you wanted.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: matching coordinates
Next Topic: Re: How do I add an array to the end of an existing array?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 01:16:14 PDT 2025

Total time taken to generate the page: 0.23911 seconds