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

Home » Public Forums » archive » "shrink" structures
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
"shrink" structures [message #69767] Mon, 08 February 2010 02:00
Johannes Korn is currently offline  Johannes Korn
Messages: 5
Registered: January 2010
Junior Member
Hi,

I usually read ascii tables using read_ascii with a ascii template which
gives me an anonymous structure with fields of the same length.

for example
d=READ_ASCII('file', TEMPLATE=templ)

afterwards d is d.date, d.time and d.value

I would like to "shrink" d to contain only a specific date.

Something like
ind=where(d.date eq '10052000')
d = d[ind]

This doesn't work of course but I thought at least d.date = d.date[ind]
should. But this doesn't resize d.date but only fills all locations with
the values of d.date[ind].

Is there any other way than to copy everything to arrays?

Regards,

Johannes
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL processed mosaic image of the Moon, 8000x8800 pixels
Next Topic: Re: IDL processed mosaic image of the Moon, 8000x8800 pixels

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

Current Time: Fri Oct 10 11:34:07 PDT 2025

Total time taken to generate the page: 0.31898 seconds