Re: newbie question.. again :) [message #35753 is a reply to message #35751] |
Wed, 09 July 2003 06:31  |
Haje Korth
Messages: 651 Registered: May 1997
|
Senior Member |
|
|
Alex,
I am not quite sure what you are trying to do and I for sure do not know
what a .csv file is, but here is an idea: The area you extravt is a 2-d
array with dimensions xdim and ydim if rectangular. If I understand you
correctly your number of collumns x is xdim*ydim. In order to map the 2d
array into a 1d array, which is one row in your file, you use
'reform(2d-array,xdim*ydim)'. In order to process all your files you just
loop through them.
Haje
PS: I curse at IDL all the time, so don't feel bad! :-) (I still think it is
a great product though.)
--
Dr. Haje Korth
Space Physics Group
The Johns Hopkins University
Applied Physics Laboratory
MS MP3-E128
11100 Johns Hopkins Road
Laurel, MD 20723-6099
USA
Phone: 240-228-4033 (Washington), 443-778-4033 (Baltimore)
Fax: 240-228-0386 (Washington), 443-778-0386 (Baltimore)
e-mail: haje.korth@jhuapl.edu
"Alexandra Panton" <alex_panton@hotmail.com> wrote in message
news:dee4362e.0307090052.2ce7f506@posting.google.com...
> This is probably a really obvious question, but I can't find the
> answer to it anywhere :) and I have been cursing my computer, idl and
> the world in general for a couple of days so thought I'd see if anyone
> can help me out!
>
> all i want to do is extract the same area from 500+ images - this i
> can do fine but i want to add each extracted portion to the next line
> in an array so i can generate a .csv file with x columns and y rows =
> to the number of images. see very simple! I can generate the rows and
> columns ok just i get a file with all the same data
>
> if someone can help me out with what function i should be looking for
> i will be eternally grateful!
>
> cheers
>
> alex
|
|
|