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

Home » Public Forums » archive » Change array elements
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Change array elements [message #94065] Thu, 12 January 2017 18:06 Go to previous message
smnadoum is currently offline  smnadoum
Messages: 24
Registered: June 2016
Junior Member
Hi IDL users,

I have an array that is [4,3] and I am trying to change the elements in this array to 13. I used:
print, b, SHIFT(b, 13)
and
replicate_inplace, b, 13

the first method didn't change the elements to 13, but actually changed the dimensions of the array.
the second one changed the values in the array to 13 without changing the dimensions.


what is a good method to change the elements in an array?
Thanks
[Message index]
 
Read Message
Read Message
Previous Topic: IDL consultant available for work (more than usual!)
Next Topic: boundary of a masked region

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

Current Time: Wed Oct 08 15:11:52 PDT 2025

Total time taken to generate the page: 0.00413 seconds