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 #74953 is a reply to message #74952] Mon, 07 February 2011 10:23 Go to previous message
Gray is currently offline  Gray
Messages: 253
Registered: February 2010
Senior Member
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().
[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 16:29:11 PDT 2025

Total time taken to generate the page: 0.32411 seconds