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

Home » Public Forums » archive » Re: keyword issue (top 10 IDL request?)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: keyword issue (top 10 IDL request?) [message #20771 is a reply to message #20768] Wed, 19 July 2000 00:00 Go to previous messageGo to previous message
Andy Loughe is currently offline  Andy Loughe
Messages: 174
Registered: November 1995
Senior Member
Kenneth Mankoff wrote:
>
> Hi all,
>
> here is another thing with current versions of IDL that causes problems
> and confuses me:
>
> a keyword set to 0 should not be undefined, it should be defined as zero.
> For example:
>
> IDL> create_globe, lat=90, long=0, ...
> I want create_globe to put longitude 0 at the center of the image (i.e.
> pass "0" to map_set). But if i don't use long= at all, then it should be
> undefined, and the following code should run (inside create_globe)
> IF ( NOT KEYWORD_SET( long ) ) THEN long = 277.5 ;;; geomagnetic pole '98
>
> However, the above line of code runs even if i set long to "0". I have
> been using long=0.1 as a work-around, but this is an ugly hack that others
> might not think to use.
>
> any ideas to fix this are welcome, and if no one has any good ideas, then
> please add this to your top ten list, David Fanning.
>
> Thanks,
> ken.


if ( N_elements(long) eq 0 ) then long = 277.5


Andrew Loughe **********************************************************
NOAA/FSL/AD Mailstop: R/FS5 * Email: loughe@fsl.noaa.gov
325 Broadway * Web: www-ad.fsl.noaa.gov/users/loughe/
Boulder, CO 80303 * Phn/Fax: (303)497-6211 / (303)497-6301
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Hints for optical flow analysis anyone?
Next Topic: keyword issue (top 10 IDL request?)

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

Current Time: Sun Oct 12 02:26:46 PDT 2025

Total time taken to generate the page: 0.88073 seconds