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

Home » Public Forums » archive » Re: Help with creating array and plotting
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: Help with creating array and plotting [message #39337] Fri, 14 May 2004 07:28 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Dennis Lamenti writes:

> Thanks for any suggestions.
> Below is a procedure for reading a structures in the arguments passed to
> procedure.

Oh, dear. :-(

> This is my first attempt at writing anything like this and it took me a long
> time to write and plot it the way i want.

Well, we all start some place. I guess more than a few of
us have started somewhere right along here. :-)

A couple of questions. I presume that you are observing
the same set of stars every night, yes? So the Stars
arrays always have the same star names in them. Is that right?

In other words, when you issue this command:

t=where(star1[I] EQ star2, count)

Is "count" anything other than 1?

Are the star names always in the same order in the Star
arrays? Or is your problem that they are out of order?

Does this describe your problem:

I observe the same X number of stars every night and
record their magnitudes. I would like to plot how
their magnitudes differ each night from magnitudes
I observed the first night.

If we could get some answers to these questions, we might
be able to come up with a little better code for you. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: Help with creating array and plotting [message #39432 is a reply to message #39337] Wed, 19 May 2004 03:29 Go to previous message
Dennis Lamenti is currently offline  Dennis Lamenti
Messages: 4
Registered: November 2003
Junior Member
> I presume that you are observing
> the same set of stars every night, yes? So the Stars
> arrays always have the same star names in them. Is that right?

Some arrays have more stars than others and the starnames are not in the
same location in the file so that is the reason for the t=where(star1[I] EQ
star2, count)

> Or is your problem that they are out of order?

they are out of order.

> I observe the same X number of stars every night and
> record their magnitudes. I would like to plot how
> their magnitudes differ each night from magnitudes
> I observed the first night.

describes the problem except that it is not the same number each night and
some stars may appear the second night that was not on the first not or any
combination like that, so that is why i have a comparison for first night
only, so i can track star1 differences to each night. and here is abit more.
i would like to plot with a line following same star for each of the four
nights (line from data point on first night to follow data point on second
night, etc.)

Thank you for your help Dr. Fanning. I am actually using your book for my
learning process in coming to programming in IDL.

Dennis Lamenti



"David Fanning" <david@dfanning.com> wrote in message
news:MPG.1b0e857b3fde2e6f98975b@news.frii.com...
> Dennis Lamenti writes:
>
>> Thanks for any suggestions.
>> Below is a procedure for reading a structures in the arguments passed to
>> procedure.
>
> Oh, dear. :-(
>
>> This is my first attempt at writing anything like this and it took me a
long
>> time to write and plot it the way i want.
>
> Well, we all start some place. I guess more than a few of
> us have started somewhere right along here. :-)
>
> A couple of questions. I presume that you are observing
> the same set of stars every night, yes? So the Stars
> arrays always have the same star names in them. Is that right?
>
> In other words, when you issue this command:
>
> t=where(star1[I] EQ star2, count)
>
> Is "count" anything other than 1?
>
> Are the star names always in the same order in the Star
> arrays? Or is your problem that they are out of order?
>
> Does this describe your problem:
>
> I observe the same X number of stars every night and
> record their magnitudes. I would like to plot how
> their magnitudes differ each night from magnitudes
> I observed the first night.
>
> If we could get some answers to these questions, we might
> be able to come up with a little better code for you. :-)
>
> 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: VM and Colors (again)
Next Topic: Re: Common block access in DLM

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

Current Time: Wed Oct 08 18:38:50 PDT 2025

Total time taken to generate the page: 0.00660 seconds