X

Help Articles are product support tips and information straight from the NV5 Geospatial Technical Support team developed to help you use our products to their fullest potential.



4178 Rate this article:
1.0

Complex data and Z-profile values in ENVI

When displaying complex data in ENVI, you may notice that the Cursor Location / Value tool will show the correct pixel values, but that the Z-profile window gives different results.

Why is this? What are those values?


If you have ENVI and IDL, and in IDL create some double complex data:


   arr = dcomplexarr(3, 50, 50)

   arr[*,0:20, *] = -2.e14
   arr[*,21:49, *] = 3.e14

And read that array into ENVI and write it out as an ENVI file :


   envi_write_envi_file, arr, data_type=9, func_complex=0, $
      interleave=2, $
      nb=nb, $
      nl=nl, $
      ns=ns, $
      r_fid=fid, $
      out_name='test.img'


You may notice that the Cursor Location / Value tool will show the correct pixel values (approximately +-2.e-5),

but that the Z-profile window gives different results.

This is because complex data contain both real and imaginary numbers, and the spectral profile window

cannot plot both of these.

Using the above code, which writes out power, will result in spectral profile values that range from 32-34.

These values are actually the log of the absolute data value. We can see this by entering:   

   ENVI> print, alog(2e14)
    32.9293

The returned value (in the 30's) is what is seen in the y-axis of the spectral plot.

   
If you want ENVI to just show the real part of the data without taking the log, you will need to write
the real portion of the image out as a separate dataset.
Please login or register to post comments.
Featured

End-of-Life Policy Enforcement for ENVI 5.3 / IDL 8.5 and Earlier Versions

5/6/2024

April 1, 2024 Dear ENVI/IDL Customer,  We are reaching out to notify you of our supported... more »

How to Upgrade licenses to ENVI 6.x / IDL 9.x

12/5/2023

What is the new Upgrade function? Starting with ENVI 6.0 and IDL 9.0, we have implemented an... more »

What to do if the 'License Administrator - License Server' for the Next-Generation License Server does not start?

6/13/2023

Background: With the release of ENVI 5.7 & IDL 8.9 and the corresponding Next-Generation licensing... more »

Next-Generation Licensing FAQ

4/28/2023

  NV5 Geospatial has adopted a new licensing technology for all future releases of our ENVI, IDL... more »

The IDL Virtual Machine

6/6/2013

What is the IDL Virtual Machine? An IDL Virtual Machine is a runtime version of IDL that can... more »