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

Home » Public Forums » archive » Re: How to skip lines when reading in a file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: How to skip lines when reading in a file [message #74952 is a reply to message #74951] Mon, 07 February 2011 10:34 Go to previous messageGo to previous message
Ashley Berg is currently offline  Ashley Berg
Messages: 14
Registered: February 2011
Junior Member
On Feb 7, 11:23 am, Gray <grayliketheco...@gmail.com> wrote:
> On Feb 7, 1:10 pm, Ashley Berg <ashley.b...@gmail.com> wrote:
>
>> I have monthly mean temp data from Jan 1958 to Dec 2008 (1 col, 612
>> rows).  I want only the data from the months of December, January, and
>> February in a new array, so the resulting time series will be one
>> column by 153 rows.  I'm not sure how to grab only those three months
>> while ignoring the other 9.  Could someone show me the best way to do
>> this?  Thank you!
>
> Do you have some way of knowing which month corresponds to which
> data?  Like a month array or something?  What are your data types?
> You're going to want to use WHERE().

That's a good idea; since there are no month labels on the data in the
file (just the numbers), I can just create a month array, and where
month[i] is DEC, JAN, or FEB I could have it grab temp[i] from my data
array. That way I'd get a new array with just the temps from those
three months. I'll give that a try.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: How to skip lines when reading in a file
Next Topic: Mock-up of the Book

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

Current Time: Fri Oct 10 07:02:16 PDT 2025

Total time taken to generate the page: 0.00590 seconds