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

Home » Public Forums » archive » Define a 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
Define a variable [message #80352] Wed, 13 June 2012 00:07 Go to next message
hadi is currently offline  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 Go to previous message
dplatten is currently offline  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 Go to previous message
hadi is currently offline  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 Go to previous message
dplatten is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Problem
Next Topic: cgwindow png export and window size

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

Current Time: Wed Oct 08 15:18:03 PDT 2025

Total time taken to generate the page: 0.00690 seconds