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

Home » Public Forums » archive » Re: journal file contents
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: journal file contents [message #30022] Thu, 04 April 2002 11:42 Go to next message
David Fanning is currently offline  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
Re: journal file contents [message #30170 is a reply to message #30022] Thu, 04 April 2002 12:44 Go to previous message
Med Bennett is currently offline  Med Bennett
Messages: 109
Registered: April 1997
Senior Member
David Fanning wrote:

> 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

well, thanks David . . . I guess I should have said that I knew that there
were ways in this case to get around the problem - but what if there was
information that only the help command could give you that you wanted to show
up in the journal file?


--
----

Remove all w's from my email address to reply!

ICBM Coordinates: 40.027666N, 105.289188W, 1670 m
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Expose Events (easy questions)
Next Topic: Re: sec : U Re: X-windows text events

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

Current Time: Sat Oct 11 00:57:43 PDT 2025

Total time taken to generate the page: 0.48200 seconds