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!



Comparing Amplitude and Coherence Time Series With ICEYE US GTR Data and ENVI SARscape

Comparing Amplitude and Coherence Time Series With ICEYE US GTR Data and ENVI SARscape

12/3/2025

Large commercial SAR satellite constellations have opened a new era for persistent Earth monitoring, giving analysts the ability to move beyond simple two-image comparisons into robust time series analysis. By acquiring SAR data with near-identical geometry every 24 hours, Ground Track Repeat (GTR) missions minimize geometric decorrelation,... Read More >

Empowering D&I Analysts to Maximize the Value of SAR

Empowering D&I Analysts to Maximize the Value of SAR

12/1/2025

Defense and intelligence (D&I) analysts rely on high-resolution imagery with frequent revisit times to effectively monitor operational areas. While optical imagery is valuable, it faces limitations from cloud cover, smoke, and in some cases, infrequent revisit times. These challenges can hinder timely and accurate data collection and... Read More >

Easily Share Workflows With the Analytics Repository

Easily Share Workflows With the Analytics Repository

10/27/2025

With the recent release of ENVI® 6.2 and the Analytics Repository, it’s now easier than ever to create and share image processing workflows across your organization. With that in mind, we wrote this blog to: Introduce the Analytics Repository Describe how you can use ENVI’s interactive workflows to... Read More >

Deploy, Share, Repeat: AI Meets the Analytics Repository

Deploy, Share, Repeat: AI Meets the Analytics Repository

10/13/2025

The upcoming release of ENVI® Deep Learning 4.0 makes it easier than ever to import, deploy, and share AI models, including industry-standard ONNX models, using the integrated Analytics Repository. Whether you're building deep learning models in PyTorch, TensorFlow, or using ENVI’s native model creation tools, ENVI... Read More >

Blazing a trail: SaraniaSat-led Team Shapes the Future of Space-Based Analytics

Blazing a trail: SaraniaSat-led Team Shapes the Future of Space-Based Analytics

10/13/2025

On July 24, 2025, a unique international partnership of SaraniaSat, NV5 Geospatial Software, BruhnBruhn Innovation (BBI), Netnod, and Hewlett Packard Enterprise (HPE) achieved something unprecedented: a true demonstration of cloud-native computing onboard the International Space Station (ISS) (Fig. 1). Figure 1. Hewlett... Read More >

1345678910Last
12700 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.