PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 21 Dec 2016 06:46 AM by  Rainer Bars
Question: Spectral derivative of image in ENVI (no IDL)
 4 Replies
Sort:
You are not authorized to post a reply.
Author Messages

Rainer Bars



New Member


Posts:5
New Member


--
21 Dec 2016 06:46 AM
    Hellos, I'm looking for a tool or an existing ENVI script to calculate a 1st degree derivative on all spectra of a hyperspectral image. I assume many others have needed this, so a script likely exists. I couldn't find anything googling around. And as IDL isn't available, I can't use spectral math to call DERIV(s1) on a BIP image, which would do the same thing. If anything doesn't exist, then it's back to the code editor :-) Thanks in advance and cheers, Rainer

    Mari Minari



    Veteran Member


    Posts:1961
    Veteran Member


    --
    21 Dec 2016 08:53 AM
    If you have a spectral plot displayed in ENVI, or a spectral library, you can use Spectral Math and IDL's DERIV function to calculate the derivatives of a spectrum. For example, in Spectral Math use: deriv(s1) and map the s1 variable to the spectrum or to a spectral library file using Map variable to input file.

    Rainer Bars



    New Member


    Posts:5
    New Member


    --
    22 Dec 2016 03:42 AM
    Hello, if I use deriv(s1) in spectral math under ENVI, I get an error message saying "You have entered an invalid expression. Check for syntax errors or undefined procedures and functions and try again." I assume it's because I am running ENVI only? Best, Rainer

    Mari Minari



    Veteran Member


    Posts:1961
    Veteran Member


    --
    22 Dec 2016 05:56 AM
    What version of ENVI are you running and on what OS? I can run this equation in ENVI runtime: deriv(s1) You should still be able to use some IDL operators in Spectral Math or Band Math with runtime.

    Rainer Bars



    New Member


    Posts:5
    New Member


    --
    22 Dec 2016 07:00 AM
    I am running ENVI 5.3.1 on win 7 64-bit. I just did another check: deriv(s1) works on the spectral math of the "new" GUI, but not in the classic interface! I think we are satisfied with that, so thank you!
    You are not authorized to post a reply.


    MOST RECENT

    Extract Actionable Information with Advanced ENVI Image Analytics on GBDX | Live Webinar

    3/13/2018

    Live Webinar hosted by DigitalGlobe | April 5 ENVI analytics are available directly within... more »

    ENVI Crop Science | DEMO

    3/13/2018

    Watch this video for a demonstration of ENVI Crop Science and learn about the features available in the... more »

    SIGN UP & STAY INFORMED

    Sign up to receive the latest news, events, technologies and special offers.

    SIGN ME UP