Define a variable [message #80352] |
Wed, 13 June 2012 00:07  |
hadi
Messages: 33 Registered: June 2012
|
Member |
|
|
Hi
I have a question about variable. How to determine if variable is
'undefined'? Thank you
Best, Hadi
|
|
|
Re: Define a variable [message #80496 is a reply to message #80352] |
Wed, 13 June 2012 06:03  |
dplatten
Messages: 32 Registered: December 2007
|
Member |
|
|
Hi Hadi,
I'm afraid that I don't know what a DEM.bin file is. I suspect it is related to satellite data from a quick Google search. I'm a medical physicist, so I'd suggest you post another question on the list to ask a specific question.
Regards,
David
|
|
|
Re: Define a variable [message #80497 is a reply to message #80352] |
Wed, 13 June 2012 01:40  |
hadi
Messages: 33 Registered: June 2012
|
Member |
|
|
On Jun 13, 5:12 pm, David Platten <dplat...@gmail.com> wrote:
> On Wednesday, June 13, 2012 8:07:58 AM UTC+1, hadi wrote:
>> Hi
>> I have a question about variable. How to determine if variable is
>> 'undefined'? Thank you
>> Best, Hadi
>
> Try,
>
> PRINT, N_ELEMENTS(x)
>
> or, try
>
> numElements = N_ELEMENTS(x)
> PRINT, numElements
>
> This method of checking whether a variable is defined is in the IDL help.
>
> Regards,
>
> David
>
>
Dear David
Thank you it is working. I want to make command to read DEM.bin file.
How i can do that?
Thank you
Best, Hadi
|
|
|
Re: Define a variable [message #80498 is a reply to message #80352] |
Wed, 13 June 2012 01:12  |
dplatten
Messages: 32 Registered: December 2007
|
Member |
|
|
On Wednesday, June 13, 2012 8:07:58 AM UTC+1, hadi wrote:
> Hi
> I have a question about variable. How to determine if variable is
> 'undefined'? Thank you
> Best, Hadi
Try,
PRINT, N_ELEMENTS(x)
or, try
numElements = N_ELEMENTS(x)
PRINT, numElements
This method of checking whether a variable is defined is in the IDL help.
Regards,
David
|
|
|