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

Home » Public Forums » archive » creating a variable from unknow name
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
creating a variable from unknow name [message #42114] Wed, 29 December 2004 10:21
andry_william is currently offline  andry_william
Messages: 3
Registered: December 2004
Junior Member
Dear IDL user,

I would to ask some advice on how I can create a variable with the name defined by
some value in the memory. I mean: in unix/linux CSH, one can say

set a = b1
set $a = 4
so that the value stored in the variable name b1 is 4
echo $b1 (returns)
4

I would like to be able to do the same in IDL. I first have to check which
variable is present in a file (atcually they are NetCDF files), then assign the
values to the name defined in the file.

Something like if I see that the variable "lon" exists in a file, then assign its
values to the name "lon".

I am not sure if I need some pointer or object for that.

Thanks in advance for your help.

Best wishes for the new year for all of you.

Andry
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Object or direct graphics?
Next Topic: Size limit on !error_state.msg

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

Current Time: Fri Oct 10 03:12:07 PDT 2025

Total time taken to generate the page: 0.00984 seconds