X

NV5 Geospatial Blog

Each month, NV5 Geospatial posts new blog content across a variety of categories. Browse our latest posts below to learn about important geospatial information or use the search bar to find a specific topic or author. Stay informed of the latest blog posts, events, and technologies by joining our email list!



New ENVI Agent, IDL Agent, and GeoAgent Quick Guides

New ENVI Agent, IDL Agent, and GeoAgent Quick Guides

6/9/2026

The recent release of ENVI® Agent, IDL® Agent, and GeoAgent™ revolutionize how users interact with geospatial software. These agentic AI applications act as partners to plan, simplify, and execute complex workflows. Knowing where to start can be challenging for new users. To this end, we developed three new quick guides to... Read More >

Introducing NISAR Data Support

Introducing NISAR Data Support

6/5/2026

The release of ENVI® SARscape 6.3 in April 2026 includes preliminary support for NASA-ISRO SAR (NISAR) data. The NISAR mission is a joint Earth-observing satellite project between NASA and the Indian Space Research Organization designed to monitor changes in the planet’s land and ice surfaces using advanced radar imaging. It... Read More >

Monitoring Illegal Mining in the Amazon: Turning Persistent Data Into Actionable Insight

Monitoring Illegal Mining in the Amazon: Turning Persistent Data Into Actionable Insight

5/28/2026

Illegal mining over decades has constituted one of the most persistent and complex socio-environmental problems in the Brazilian Amazon. In recent years, with the increasingly intensive use of mechanized extraction, the associated environmental impacts—such as deforestation, intense soil disturbance, river siltation, and mercury... Read More >

From Answers to Action: Why ENVI and IDL Agents Go Beyond General AI

From Answers to Action: Why ENVI and IDL Agents Go Beyond General AI

4/20/2026

As generative AI tools like Claude and Gemini continue to gain traction, many organizations are asking the same question: Can general purpose AI actually support real geospatial workflows, or does it stop at surface-level answers? That question was front and center in our recent webinar, Meet Your New Partners in Science: ENVI... Read More >

Mapping Earthquake Deformation in Taiwan With ENVI

Mapping Earthquake Deformation in Taiwan With ENVI

12/15/2025

Unlocking Critical Insights With ENVI® Tools Taiwan sits at the junction of major tectonic plates and regularly experiences powerful earthquakes. Understanding how the ground moves during these events is essential for disaster preparedness, public safety, and building community resilience. But traditional approaches like field... Read More >

1345678910Last
«June 2026»
SunMonTueWedThuFriSat
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011
14666 Rate this article:
4.0

How to investigate IDL object code

Anonym

The object classes that are included with IDL are normally very well documented which helps greatly when using IDL object classes in your code. I often get IDL object-based code from colleagues, and documentation is not always included. When this happens I use this example code to quickly investigate the methods and superclasses associated with the object classes.

 

This code example outputs an HTML table with the information for the given object class.

; Prints out information about an object class
pro ab_obj_info, obj, noresolve=noresolve, short=short, super=ksuper, $
    out_super=super, quiet=quiet
  compile_opt idl2
  ; find all superclasses
  if (size(obj, /type) eq 7) then class=obj else class=obj_class(obj)
  super=strupcase(class)
  if ~keyword_set(noresolve) then resolve_all, class=super[0], /quiet, /cont
  x=0
  y=1
  repeat begin
    for i=x,y-1 do begin
      sup=obj_class(super[i],/superclass)
      if (sup[0] ne '') then super=[super,sup]
    endfor
    x=y
    y=n_elements(super)
  endrep until (x eq y)
  if ~keyword_set(quiet) then print, 'Class: '+super[0]
  if (y gt 1) && ~keyword_set(quiet) then begin
    print, 'Superclass: '+super[1:*], format='(a)'
  endif
  if keyword_set(ksuper) then return
  ;
  print, '<table>'
  print, '<thead><td>Class::Method</td><td>Arguments</td><td>Keyword</td></thead>'
  out = list()
  func = routine_info(/function)
  sysfunc = routine_info(/function, /system)
  proc = routine_info()
  sysproc = routine_info(/system)
 
  for i=0,y-1 do begin
    ind = where(func.StartsWith(super[i]+'::'),fcount)
    for j=0,fcount-1 do begin
      f = func[ind[j]]
      param = routine_info(f, /param, /func)
      print, '<tr>'
      print, '<td>'+f+'()</td>'
      if param.num_args gt 1 then begin
        str = strjoin(param.args[1:*],',')
      endif else str = ''
      print, '<td>'+str+'</td>'
      if param.num_kw_args gt 0 then begin
        str = strjoin(param.kw_args,',')
      endif else str = ''
      print, '<td>'+str+'</td></tr>'
    endfor
 
    ind = where(sysfunc.StartsWith(super[i]+'::'), fcount)
    for j=0,fcount-1 do begin
      f = sysfunc[ind[j]]
      print, '<tr><td>'+f+'</td><td></td><td></td></tr>'
    endfor
 
    ind = where(proc.StartsWith(super[i]+'::'),fcount)
    for j=0,fcount-1 do begin
      p = proc[ind[j]]
      param = routine_info(p, /param)
      print, '<tr>'
      print, '<td>'+p+'()</td>'
      if param.num_args gt 1 then begin
        str = strjoin(param.args[1:*],',')
      endif else str = ''
      print, '<td>'+str+'</td>'
      if param.num_kw_args gt 0 then begin
        str = strjoin(param.kw_args,',')
      endif else str = ''
      print, '<td>'+str+'</td></tr>'
    endfor
 
 
    ind = where(sysproc.StartsWith(super[i]+'::'), fcount)
    for j=0,fcount-1 do begin
      p = sysproc[ind[j]]
      print, '<tr><td>'+p+'</td><td></td><td></td></tr>'
    endfor
  endfor
  print, '</table>'
 
end
 

 

Here I run the code on the IDLgrColorbar class, which is already well documented, but is a convenient example:

IDL> ab_obj_info,'idlgrcolorbar'

Class: IDLGRCOLORBAR
Superclass: IDLGRMODEL
Superclass: IDLGRCONTAINER
Superclass: IDL_CONTAINER
Superclass: IDLGRCOMPONENT
Superclass: IDLITCOMPONENT

Here is the output HTML table showing all the methods associated with the IDLgrColorbar class.

Class::Method Arguments Keyword
IDLGRCOLORBAR::COMPUTEDIMENSIONS() OSRCDEST PATH
IDLGRCOLORBAR::INIT() ARED,AGREEN,ABLUE BLUE_VALUES,COLOR,DIMENSIONS,GREEN_VALUES,HIDE,MAJOR,MINOR,NAME,PALETTE,RED_VALUES,SHOW_AXIS,SHOW_OUTLINE,SUBTICKLEN,THICK,THREED,TICKFORMAT,TICKFRMTDATA,TICKLEN,TICKTEXT,TICKVALUES,TITLE,UVALUE,XCOORD_CONV,YCOORD_CONV,ZCOORD_CONV,_EXTRA
IDLGRCOLORBAR::CALCSIZE() DIMENSIONS,SHOW_AXIS,THICK
IDLGRCOLORBAR::CLEANUP()
IDLGRCOLORBAR::GETPROPERTY() ALL,BLUE_VALUES,COLOR,DIMENSIONS,GREEN_VALUES,HIDE,MAJOR,MINOR,NAME,PALETTE,PARENT,RED_VALUES,SHOW_AXIS,SHOW_OUTLINE,SUBTICKLEN,THICK,THREED,TICKFORMAT,TICKFRMTDATA,TICKLEN,TICKTEXT,TICKVALUES,TITLE,TRANSFORM,UVALUE,XCOORD_CONV,XRANGE,YCOORD_CONV,YRANGE,ZCOORD_CONV,ZRANGE,_REF_EXTRA
IDLGRCOLORBAR::SETPROPERTY() BLUE_VALUES,COLOR,DIMENSIONS,GREEN_VALUES,HIDE,MAJOR,MINOR,NAME,PALETTE,RED_VALUES,SHOW_AXIS,SHOW_OUTLINE,SUBTICKLEN,THICK,THREED,TICKFORMAT,TICKFRMTDATA,TICKLEN,TICKTEXT,TICKVALUES,TITLE,UVALUE,XCOORD_CONV,YCOORD_CONV,ZCOORD_CONV,_EXTRA
IDLGRMODEL::GETCTM
IDLGRMODEL::GETXYZRANGE
IDLGRMODEL::INIT
IDLGRMODEL::ADD
IDLGRMODEL::CLEANUP
IDLGRMODEL::DRAW
IDLGRMODEL::DRAWSELF
IDLGRMODEL::GETPROPERTY
IDLGRMODEL::RESET
IDLGRMODEL::ROTATE
IDLGRMODEL::SCALE
IDLGRMODEL::SETPROPERTY
IDLGRMODEL::TRANSLATE
IDLGRCONTAINER::GETBYNAME
IDLGRCONTAINER::INIT
IDLGRCONTAINER::ADD
IDLGRCONTAINER::CLEANUP
IDLGRCONTAINER::DRAW
IDLGRCONTAINER::REMOVE
IDL_CONTAINER::COUNT
IDL_CONTAINER::EQUALS
IDL_CONTAINER::GET
IDL_CONTAINER::INIT
IDL_CONTAINER::ISCONTAINED
IDL_CONTAINER::ADD
IDL_CONTAINER::CLEANUP
IDL_CONTAINER::MOVE
IDL_CONTAINER::REMOVE
IDLGRCOMPONENT::INIT
IDLGRCOMPONENT::CLEANUP
IDLGRCOMPONENT::GETPROPERTY
IDLGRCOMPONENT::SETPROPERTY
IDLITCOMPONENT::EDITUSERDEFPROPERTY
IDLITCOMPONENT::GETFULLIDENTIFIER
IDLITCOMPONENT::GETPROPBYNAME
IDLITCOMPONENT::GETPROPERTYBYIDENTIFIER
IDLITCOMPONENT::INIT
IDLITCOMPONENT::QUERYPROPERTY
IDLITCOMPONENT::_GETALLPROPERTYDESCRIPTORS
IDLITCOMPONENT::CLEANUP
IDLITCOMPONENT::GETPROPERTY
IDLITCOMPONENT::GETPROPERTYATTRIBUTE
IDLITCOMPONENT::NOTIFYBRIDGE
IDLITCOMPONENT::REGISTERPROPERTY
IDLITCOMPONENT::RESTORE
IDLITCOMPONENT::SETPROPERTY
IDLITCOMPONENT::SETPROPERTYATTRIBUTE
IDLITCOMPONENT::SETPROPERTYBYIDENTIFIER
IDLITCOMPONENT::UNREGISTERPROPERTY
IDLITCOMPONENT::UPDATECOMPONENTVERSION

 

Please login or register to post comments.