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.



2825 Rate this article:
No rating

How to use a mask band in MNF_DOIT

This Help Article provides an example of how to use a mask band in ENVI's MNF_DOIT routine, which requires the use of undocumented keywords.  As with any undocumented code, it is not officially supported by Exelis VIS and may change in a future version of ENVI.

To use a mask in MNF_DOIT is not unlike other routines but it is not currently documented. The M_FID and M_POS keywords are used to specify the FID and band for the mask. A third keyword, 'ZERO' should also be set to a value of 1 in order to specify that the areas outside of the mask should be set to 0. 

pro example_mnf_doit_with_mask

  envi_open_file, 'bhtmref.img', r_fid=fid

  envi_file_query, fid, dims=dims, ns=ns, nl=nl, nb=nb
  pos  = lindgen(nb)
  out_name = 'batch_mnf.img'

  envi_open_file, 'bh_mask.img', r_fid=m_fid
  m_pos = 0

  envi_doit, 'mnf_doit', $
    fid=fid, pos=pos, dims=dims, $
    sd_dims=dims, out_name=out_name, m_fid=m_fid, m_pos=m_pos, zero=1, $
    in_memory=0, sta_name='', /no_plot, $
    shift_diff=1, r_fid=r_fid

end

-----------------

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 »