Re: journal file contents [message #30022] |
Thu, 04 April 2002 11:42  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Med Bennett (mwbennett@windra.com) writes:
> I am perusing a journal file and have a question about what's included.
> If I issue a 'print' command, the results are saved in the file, but if
> I use a help command, as in
>
> help, where(ots eq 'o' and nnp ge 0 and agp lt 10.)
>
> the answer is not saved in the file. This is somewhat of an
> inconvenience, as it's the answer to the help command that is the value
> that's needed for a particular calculation, and that I would like to be
> able to refer to later on. I don't really want to do a print,where...
> because I don't really care which elements meet the criteria, just how
> many there are. Why is this?
Why is it!? Why do our bodies fail us just when
our minds finally figure out now to hit a down the
line backhand? It's a mystery. :-(
Why don't you try this in your journal file:
I = where(ots eq 'o' and nnp ge 0 and agp lt 10., cnt) & Print, cnt
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
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
|
|
|