IDL Array Push [message #70337] |
Sun, 04 April 2010 16:38  |
Aram Panasenco
Messages: 41 Registered: April 2010
|
Member |
|
|
I decided to write an IDL procedure an analogue of which is commonly
used in more modern computer languages: Array.push().
;+
; NAME:
; PUSH
;
; PURPOSE:
; Given two input arrays, the procedure modifies the first array by
"pushing" the
; elements of the second array onto it. If both arrays are linear,
the elements of
; the second array are added in-line: to the right of those of the
first array.
; If any of the arrays is 2-dimensional, the elements of the second
array are added
; below those of the first array.
Since this is the first data manipulation procedure I have ever
written for public use, I expect there to be some mistakes or errors I
have overlooked. I hope you will be willing to use it and inform me
about any bugs you find!
Feel free to use and distribute.
Pastebin link:
http://idl.pastebin.com/SQpSLvks
~Aram Panasenco
|
|
|