comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » IDL_Object example // help with
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: IDL_Object example // help with [message #87883 is a reply to message #87876] Sun, 02 March 2014 12:11 Go to previous messageGo to previous message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
I solved the problem by turning the subscript ranges into a 1D array of indices. Here are the final results, if anyone is interested.

https://dl.dropboxusercontent.com/u/42944960/mrreformindices .pro
https://dl.dropboxusercontent.com/u/42944960/mrarray__define .pro



IDL> a = obj_new('mrarray', findgen(2,4,4,2))
IDL> print, reform(a[0, [0,2], 1:3, 1])
40.0000 44.0000
48.0000 52.0000
56.0000 60.0000
IDL> a[0, [0,2], 1:3, 1] = findgen(6)
IDL> print, reform(a[0, [0,2], 1:3, 1])
0.00000 3.00000
1.00000 4.00000
2.00000 5.00000
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: More info on Slither
Next Topic: Problem with long integer color when saving a cgwindow to file

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:12:24 PDT 2025

Total time taken to generate the page: 0.00426 seconds