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

Home » Public Forums » archive » Re: read data from several files
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: read data from several files [message #37206] Thu, 27 November 2003 00:45
Dennis Lamenti is currently offline  Dennis Lamenti
Messages: 4
Registered: November 2003
Junior Member
HD15532 1Lam Dra 5086 4174 474 745 12.79 52.74 M0III 3.84 2.16

HD14573 1Omi UMa 4993 3962 571 686 348.90 42.30 G5III 3.36 2.07


there are appx 300 lines just like this in each file. from each file i want
IDL to read data from one star subtract column 11 from 10 plot value, go to
next file find same star name, subtract col 11 from 10 plot...the plot will
be subtracted value (y-axis) vs night1, night 2, etc. for four nights right
now and have the symbol connected by line for each star. i know that this
will make my graph look very crowded, but i just want to see if there are
any variances between the nights from and the significant differences will
be immediately visible on this plot. I will need to think further about how
i might want to store pixal locations for stars varying differently by a
factor of app .2 on successive nights.

i have gotten a couple replies that i am anxious to try.

thanks to this group i have some direction on how to approach this problem.

i hope to continue to learn and hopefully contribute to this group in the
future.

Thanks,

Dennis Lamenti


"Thomas Schulze" <tschulze@physik.uni-wuerzburg.de> wrote in message
news:68de8d55.0311260758.28102d4b@posting.google.com...
> "dennis" <am_indian@nospam.hotmail.com> wrote in message
news:<KPicnZQIhpleoVmiXTWc-g@speakeasy.net>...
>> Hi,
>>
>> New to using IDL and I am plotting and comparing magnitudes of stars
over
>> several days.
>>
>> For each image there is a photometry file created with data for stars
>> located.
>>
>> Can anyone suggest how to have IDL read from several files and extract
only
>> data necessary and then plot this data that it extracts?
>>
>> For examply, in four seperate files (text files) each file has 8 columns
and
>> 300 lines. In the first file, the star is in the 67th line and the
>> magnitudes are in the 6th and 7th column (the columns will always be the
>> same). In the next file the star (same star) is in the 169th line...the
star
>> could be in any line, but I want to match up the magnitudes of 6th and
7th
>> columns (columns for that data are always in 6th and 7th column). I want
to
>> have IDL grab only data for that star in each of the four files, do some
>> calculation with it and plot it and then go to another star and doing
the
>> same thing. The star location in the file is random, but the columns of
that
>> info remain the same.
>>
>> I assume that I will have to search for string match for the star names
in
>> each file and then do 'readcol', but that is all I know.
>>
>> Any help would be appreciated.
>>
>> Thanks,
>>
>> Dennis Lamenti
>
> Hi Dennis,
>
> unfortunately i did not understand with what kind of information you
> can identify the star. Is it only the 6th and 7th column that remain
> the same? Are there more pieces of information? What kind of
> information about the star do you have before opening the files?
>
> Thomas
Re: read data from several files [message #37207 is a reply to message #37206] Wed, 26 November 2003 07:58 Go to previous message
tschulze is currently offline  tschulze
Messages: 3
Registered: November 2003
Junior Member
"dennis" <am_indian@nospam.hotmail.com> wrote in message news:<KPicnZQIhpleoVmiXTWc-g@speakeasy.net>...
> Hi,
>
> New to using IDL and I am plotting and comparing magnitudes of stars over
> several days.
>
> For each image there is a photometry file created with data for stars
> located.
>
> Can anyone suggest how to have IDL read from several files and extract only
> data necessary and then plot this data that it extracts?
>
> For examply, in four seperate files (text files) each file has 8 columns and
> 300 lines. In the first file, the star is in the 67th line and the
> magnitudes are in the 6th and 7th column (the columns will always be the
> same). In the next file the star (same star) is in the 169th line...the star
> could be in any line, but I want to match up the magnitudes of 6th and 7th
> columns (columns for that data are always in 6th and 7th column). I want to
> have IDL grab only data for that star in each of the four files, do some
> calculation with it and plot it and then go to another star and doing the
> same thing. The star location in the file is random, but the columns of that
> info remain the same.
>
> I assume that I will have to search for string match for the star names in
> each file and then do 'readcol', but that is all I know.
>
> Any help would be appreciated.
>
> Thanks,
>
> Dennis Lamenti

Hi Dennis,

unfortunately i did not understand with what kind of information you
can identify the star. Is it only the 6th and 7th column that remain
the same? Are there more pieces of information? What kind of
information about the star do you have before opening the files?

Thomas
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: line-following
Next Topic: output width

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

Current Time: Wed Oct 08 15:39:17 PDT 2025

Total time taken to generate the page: 0.00433 seconds