648 Rate this article:
No rating

A small, helpful routine

Mark Alonzo
A small item this week because it's Thanksgiving. In DG, you can close all open windows with a statement like this:
IDL> while !d.window ne -1 do wdelete, !d.window
Here's my two-line equivalent in NG, wrapped into a procedure:
pro windowdeleteall
   compile_opt idl2
   
   w = getwindows()
   if n_elements(w) gt 0 then foreach i, w do i.close
end
Call this routine with:
IDL> windowdeleteall
to close all open NG windows.
MOST RECENT

Remote Sensing of Hydrocarbon Microseepage

8/6/2018

Remote sensing can help professionals in the oil and gas industry discover new areas for exploration. One... more »

GISCafe Interviews Harris Geospatial's Rebecca Lasica at the 2018 Esri UC

8/2/2018

GIS Cafe – August 1, 2018 GISCafe interviews Rebecca Lasica, Director of Enterprise Platforms and... more »

SIGN UP & STAY INFORMED

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

SIGN ME UP