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

Home » Public Forums » archive » Re: cw_field: checking entries
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
Re: cw_field: checking entries [message #38568] Sat, 13 March 2004 00:55
schaa is currently offline  schaa
Messages: 10
Registered: March 2004
Junior Member
David Fanning <david@dfanning.com> wrote:
> I remember this being a LOT harder than it looks. :-)
>
> You can see how I did it in FSC_FIELD. The example
> code at the end of the file (do a .compile of the
> file to see it) gives an example of how to test for
> an undefined value, etc.

Thanks again David.
Who could imagine that it would have been so tough...

A little problem occured in when testing with the Undefined-key:
when testing the field-value with 'Finite' i had always a '1'
returned. The 'Undefined' in FSC_Field was set to -9999.0 as in your
example; only when i set it to 1e39, i had the expected result ...

Kind regards
-Ralf

p.s.: a few days ago, i asked you a about a 'dynamical structure' and
you answered pointers would do. I tried that and it works :-)
Re: cw_field: checking entries [message #38603 is a reply to message #38568] Fri, 12 March 2004 02:40 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ralf Schaa writes:

> you know the feeling of wanna kick your computer...?
> (hmm ,it's not the computer fault, is it?)
>
> so i like to check the validity of the entries in a cw_field,
> when it is not defined , send a message, when it is defined go on.
> actually simple as that, but the thing is, it seems to me the value is
> always defined, no matter if there is someting in the field or not.
> i am sure some of you have fixed this problem 100 years ago, so what
> do you suggest?

I remember this being a LOT harder than it looks. :-)

You can see how I did it in FSC_FIELD. The example
code at the end of the file (do a .compile of the
file to see it) gives an example of how to test for
an undefined value, etc.

http://www.dfanning.com/programs/fsc_field.pro

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Interpreter stack not aligned properly during user return.
Next Topic: Are the field lines the trajectory of a particle with mass M?

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

Current Time: Wed Oct 08 19:20:01 PDT 2025

Total time taken to generate the page: 0.00478 seconds