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

Home » Public Forums » archive » Re: RFC 1: Common functions for beginners
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: RFC 1: Common functions for beginners [message #35069] Thu, 15 May 2003 05:47
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Reimar Bauer (R.Bauer@fz-juelich.de) writes:

> the miracle of
> n_elements() (obsolete, new call is SIZE(x,/n_elements)),
> n_params()
> arg_present()
> keyword_set()
> and how to use them

Now we are getting into the esoteric. Millions
of IDL programmers write successful programs
(well, successful enough, apparently) without
having the foggiest notion of how to use
KEYWORD_SET and N_ELEMENTS properly. Learning
about these functions can be put off until (1) You
have lost your job because the critical-it-don't-fail
program failed, or (2) You are desperate to get
the IDL Expert Programmer badge from the IEPA.

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: RFC 1: Common functions for beginners [message #35071 is a reply to message #35069] Thu, 15 May 2003 03:32 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Ed Wright wrote:
> To: IDL guri
> From: Ed Wright
>
> I have a request for comments (just like the IETF).
>
> I learned the basics of IDL use and programming over a long time interval
> while writing the magnum opus of dlms. Rather than have new users repeat my
> learning process, I'd like your suggestions for the twenty or so most common
> IDL functions a new user should understand.
>
> I mean most basic-most used. Open file, read numbers, plot numbers, write
> text, close file.
>
> As always,
> Ed Wright
>


in addition to the other repliers
print,expand_path(!path) & help,!version,/str

index operations e.g.

x=findgen(10)*!pi
print,x[0:9:2]
x[*]=5.


the miracle of
n_elements() (obsolete, new call is SIZE(x,/n_elements)),
n_params()
arg_present()
keyword_set()
and how to use them

regards

Reimar


--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
============================================================ =======
Re: RFC 1: Common functions for beginners [message #35074 is a reply to message #35071] Thu, 15 May 2003 02:24 Go to previous message
Karsten Rodenacker is currently offline  Karsten Rodenacker
Messages: 98
Registered: July 1997
Member
Maybe on 1 retall is better recommended
Regards
Karsten

Pavel Romashkin schrieb:
> First 17 positions - WHERE.
> 18: <, >
> 19: Rebin
> 20: Histogram
>
> Cheers,
> Pavel
>
> Ed Wright wrote:
>
>> I'd like your suggestions for the twenty or so most common
>> IDL functions a new user should understand.
>


--
Karsten Rodenacker
------------------------------------------------------------ -------------:-)
GSF - Forschungszentrum Institute of Biomathematics and Biometry
D-85758 Oberschleissheim Postfach 11 29
Karsten@Rodenacker.de | http://www.gsf.de/ibb/
Tel: +49 89 31873401 | FAX: ...3369
Re: RFC 1: Common functions for beginners [message #35077 is a reply to message #35074] Wed, 14 May 2003 16:23 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ed Wright (ed.wright@jpl.nasa.gov) writes:

> I have a request for comments (just like the IETF).
>
> I learned the basics of IDL use and programming over a long time interval
> while writing the magnum opus of dlms. Rather than have new users repeat my
> learning process, I'd like your suggestions for the twenty or so most common
> IDL functions a new user should understand.
>
> I mean most basic-most used. Open file, read numbers, plot numbers, write
> text, close file.

OK, I'll get us started. The first thing a new user
of IDL should know is DEVICE, DECOMPOSED=0. I taught
an IDL class recently to a group of users who had
been using IDL almost 6 months before I got there.
They didn't know IDL could draw anything except red
lines on a black background. :-(

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: RFC 1: Common functions for beginners [message #35078 is a reply to message #35077] Wed, 14 May 2003 16:10 Go to previous message
Pavel Romashkin is currently offline  Pavel Romashkin
Messages: 166
Registered: April 1999
Senior Member
First 17 positions - WHERE.
18: <, >
19: Rebin
20: Histogram

Cheers,
Pavel

Ed Wright wrote:
>
> I'd like your suggestions for the twenty or so most common
> IDL functions a new user should understand.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: file_search windows problem
Next Topic: FFT confusion

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

Current Time: Wed Oct 08 20:04:40 PDT 2025

Total time taken to generate the page: 0.00595 seconds