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

Home » Public Forums » archive » resizing system variable
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
resizing system variable [message #82579] Thu, 20 December 2012 11:38
astroboy.20000 is currently offline  astroboy.20000
Messages: 39
Registered: August 2012
Member
My apologies if this has been answered elsewhere, or if the answer is
obvious, but...

I use defsysv to define an array. Later on, I want to set that system
variable equal to an array of another size, but I get an error message
that the system variable and second array are conflicting data
structures:

pro one
defsysv,'!var',fltarr(10)
!var= findgen(20) ;this gives an error.
end

I've tried setting !var=!null, but I get an error message to the
effect the !null is undefined. Which is true, in a way, of course.


Does anyone know of a fix for this? Could I define !var as a pointer,
which could point at one or another array?

Thanks,

Mark
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Link to Peter Alberts' old map_image library? (lonlat2reg.pro code request)
Next Topic: Empirical orthogonal function in IDL

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

Current Time: Wed Oct 08 15:17:15 PDT 2025

Total time taken to generate the page: 0.10988 seconds