Resources
-
Recent Posts
Recent Tweets
- Using #NPP data? Read Dave’s latest post on ImagerySpeaks to learn what you can do with the #geospatial data! ow.ly/lftoN 44 minutes ago
- Are you an experienced #Scrum Master? We're hiring! #Boulder #Jobs ow.ly/kLjNJ 2 hours ago
- Sound fun! RT @davidhulslander: Thoroughly enjoying teaching an #IDL & ENVI class @NASAGoddard this week. One sharp & dedicated crew here! 3 hours ago
Like Exelis VIS
Tags
(New) Graphics AGU arrays Atle Borsholm code performance control statements Direct Graphics ENVI 5 ENVI programming GRIB guest post hashes HDF5 IDL 8 IDL 8.1 IDL 8.2 IDL 8.2.1 IDL 8.2.2 IDLffVideoWrite image implicit Get/SetProperty Jim Pendleton keyword inheritance Linux lists map projections movies MPEG-4 NAME property netCDF NPP Object Graphics OOP PNG PostScript Ron Kneusel science! sorting user group VIIRS VISualize web welcome widget programming WIDGET_WINDOW
Tag Archives: code performance
Testing parameters with N_ELEMENTS and !null
The N_ELEMENTS function is typically used to test whether an input parameter has data. For example, here’s a program that doubles a number: function double_it, x compile_opt idl2 on_error, 2 if n_elements(x) eq 0 then $ message, ‘Need input number … Continue reading
Posted in language, programming
Tagged code performance, IDL 8, null variable, parameter testing
6 Comments
An LSD radix sort algorithm in IDL
(Note: I’m at the HDF and HDF-EOS Workshop XV this week, so today I have a guest post by Atle Borsholm, a Senior Consultant in the Exelis VIS Professional Services Group. Atle is an IDL master. I’m trying to persuade … Continue reading
Posted in data analysis, language, programming
Tagged arrays, Atle Borsholm, code performance, guest post, sorting
6 Comments
Order of operations in an expression
Given a floating-point array x, which of these two statements: IDL> y1 = 2.0 * x / 3.0 IDL> y2 = x * (2.0 / 3.0) executes faster, the first or the second? Note that both statements produce the same … Continue reading
The COMPILE_OPT statement; you should use it!
The COMPILE_OPT statement alters IDL’s compile-time behavior. The statement is locally scoped; i.e., it changes IDL’s behavior only within the routine in which it is declared. I use the IDL2 option (a shorthand for the DEFINT32 and STRICTARR options) in all new procedures, functions and methods I write. … Continue reading
On the dangers of keyword inheritance
(Note: This is a guest post by Jim Pendleton, an Advisory Consultant in the Exelis VIS Professional Services Group. Jim has been using IDL longer than anyone, including himself, can remember. He’s also my IDL guru—when I have IDL questions, … Continue reading
Posted in language, programming
Tagged code performance, guest post, Jim Pendleton, keyword inheritance, parameter passing
3 Comments
Disable window updates to improve (New) Graphics performance
When making a visualization with many graphic elements in NG, you can improve the render speed by disabling updates to the window. For example, this program displays a 3-by-5 grid of sample plots and prints to the console the time … Continue reading
Posted in language, programming, visualization
Tagged (New) Graphics, code performance, IDL 8
6 Comments