Re: programming in IDL [message #34599] |
Sat, 29 March 2003 13:32 |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
matthias wrote:
> Hi,
>
> My knowledge about programming is very small, so i hope that somebody
> can halp me out.
>
> This is what i'm trying to do. I want to open many binary datasets of
> the AVHRR satelite. They all have the same beginning, namely
>
> "subset_app_s005_1998." Then it counts down from 365 untill 001 (for
> every day of the year)So i have
>
> "subset_app_s005_1998365."
> ...
> "subset_app_s005_1998001."
>
> after that, the files are ending as follows: _0200_temp.v3
> _1400_temp.v3
>
> so i have for exemple :
> subset_app_s005_1998364_1400_temp.v3
> subset_app_s005_1998001_0200_temp.v3
>
Dear Matthias
hope I understand correctly
You should have a look at the online help for file_search
files = FILE_SEARCH(Dir_Specification, Recur_Pattern,count=n)
for i=0,n-1 do begin
x=your_reading_routine(files[i])
result=total(x)/number_of_datasets
print,result
endfor
END
regards
Reimar
> Now I would like to read them in all at once, count all the values of
> the datasets together. After the iteration i then could divide the
> values by the number of datasets zo i'll have a yearly mean.
>
> I think i 'll have to work with ('if...then) and strings but i haven't
> got a clue how to begin....
>
> Could u help me out?
> Thanks,
>
> Matthias
--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
|
|
|