Reading various HDF files [message #46204] |
Wed, 09 November 2005 02:02  |
Nicola
Messages: 21 Registered: November 2005
|
Junior Member |
|
|
Hi all
I'm facing this problem which deal I think to memory problem.
I've the ouput of numerical simulations which are saved in HDF format.
I've outputs every, lets say 10 time step, which means that I've around
1000 HDF file each of them containig 8 fields which have dimension
(64,128,8, dimension on x,y,z direction. It's a cubic domain
simulation).
Now I want to create a movie of the evolution of one field, let's say.
I choose one of the field of HDF file let's call it field and I choose
one particular plane on z, let's say I want the evolution of
field[*,*,8] as a function of time showing it as a movie.
Is there a good way to do this whitout a for loop for reading all the
files and than saving the only field which I need?
I hope I've been sufficiently clear.
Thanks for all the answer
n
|
|
|
|
|
|
|
|
|
|
|
|
Re: Reading various HDF files [message #46309 is a reply to message #46204] |
Fri, 18 November 2005 13:03  |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
Hi Rick,
perhaps you like to know I have added this format for sequences
to the MoinMoin wiki engine http://moinmoin.wikiwikiweb.de
to my Gallery2 parser
http://moinmoin.wikiwikiweb.de/ParserMarket/Gallery2
It's not idl but we often use this to show idl images to the world.
And by now we could show them in fli format animations too.
cheers
Reimar
Rick Towler wrote:
>
> Nicola wrote:
>> Thank you rick, maybe this will be the faster way avoiding mpeg
>> problems on IDL. Could you suggest me which encoder can I use
>> considering the fact that I would like to have a 24-bit animation.
>> thanks a lot to all of you
>
> Well, I don't know about faster :( You'll inevitably spend time
> learning new software and experimenting with encoding. But in the end
> you should have higher quality and smaller animations :)
>
>
> If you only require Mac and windows support I would recommend:
>
> VP3 encoder - free, info at http://www.vp3.com/ The binaries hosted at
> xiph.org seem to be offline. Don't know the status of the project.
> This codec works with videomach.
>
> Divx - $20 from www.divx.com. A popular encoder for video bootleggers,
> I have had quite good luck with it using it for scientific animations.
> This codec works with videomach. The decoder is also available for
> linux, but the version lags a bit behind the windows and mac ports.
>
> Sorenson codecs (v4 and v5) - These codecs ship with Quicktime Pro
> (www.quicktime.com ~$20 for the windows version). This codec *doesn't*
> work with videomach. You can use videomach to create an uncompressed
> .avi which you can then encode using quicktime pro. The upside is that
> many people have quicktime installed on their PCs.
>
> Windows Media - The windows media *encoder* is available free:
> http://www.microsoft.com/windows/windowsmedia/9series/encode r/default.aspx
> Like the sorenson codecs, this encoder doesn't provide a Video for
> windows (VFW) interface and thus it can't be used directly with
> videomach. You would need to create uncompressed .avi files and encode
> using the WME software. The upside with WM is that anyone with windows
> media player 9+ installed can view the files. Further, if they have
> windows media 7 installed and an internet connection the WM9 decoder
> will be downloaded automatically.
>
>
> Remember that you need the codec installed on any machine you want to
> view the animation on. This includes laptops at conferences. Make sure
> you test before you stand up at the podium!
>
>
> I'll also recommend aviIDL from Ronn Kling's website
> (http://www.kilvarock.com/) which provides an interface to the video for
> windows API from IDL. Using this package you can use any VFW codec and
> go straight from IDL to your animation. No videomach required.
>
> Good luck!
>
> -Rick
|
|
|
Re: Reading various HDF files [message #46315 is a reply to message #46204] |
Fri, 18 November 2005 02:25  |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
I see it does depend on the kind of photos I tried
Reimar Bauer wrote:
> Dear Rick
>
> there is newer version here and I tested it with digital photos and it
> works!
>
> http://vento.pi.tu-berlin.de/fli.html
>
>
> It would need some more work on utf-8 file names but principle it works
> with true color images too.
>
> cheers
> Reimar
>
> Rick Towler wrote:
>
>> Nicola wrote:
>>
>>
>>> Thank you rick, maybe this will be the faster way avoiding mpeg
>>> problems on IDL. Could you suggest me which encoder can I use
>>> considering the fact that I would like to have a 24-bit animation.
>>> thanks a lot to all of you
>>
>>
>> Well, I don't know about faster :( You'll inevitably spend time
>> learning new software and experimenting with encoding. But in the end
>> you should have higher quality and smaller animations :)
>>
>>
>> If you only require Mac and windows support I would recommend:
>>
>> VP3 encoder - free, info at http://www.vp3.com/ The binaries hosted at
>> xiph.org seem to be offline. Don't know the status of the project. This
>> codec works with videomach.
>>
>> Divx - $20 from www.divx.com. A popular encoder for video bootleggers,
>> I have had quite good luck with it using it for scientific animations.
>> This codec works with videomach. The decoder is also available for
>> linux, but the version lags a bit behind the windows and mac ports.
>>
>> Sorenson codecs (v4 and v5) - These codecs ship with Quicktime Pro
>> (www.quicktime.com ~$20 for the windows version). This codec *doesn't*
>> work with videomach. You can use videomach to create an uncompressed
>> .avi which you can then encode using quicktime pro. The upside is that
>> many people have quicktime installed on their PCs.
>>
>> Windows Media - The windows media *encoder* is available free:
>> http://www.microsoft.com/windows/windowsmedia/9series/encode r/default.aspx
>> Like the sorenson codecs, this encoder doesn't provide a Video for
>> windows (VFW) interface and thus it can't be used directly with
>> videomach. You would need to create uncompressed .avi files and encode
>> using the WME software. The upside with WM is that anyone with windows
>> media player 9+ installed can view the files. Further, if they have
>> windows media 7 installed and an internet connection the WM9 decoder
>> will be downloaded automatically.
>>
>>
>> Remember that you need the codec installed on any machine you want to
>> view the animation on. This includes laptops at conferences. Make sure
>> you test before you stand up at the podium!
>>
>>
>> I'll also recommend aviIDL from Ronn Kling's website
>> (http://www.kilvarock.com/) which provides an interface to the video for
>> windows API from IDL. Using this package you can use any VFW codec and
>> go straight from IDL to your animation. No videomach required.
>>
>> Good luck!
>>
>> -Rick
>
>
>
--
Reimar Bauer
Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
============================================================ =======
|
|
|
Re: Reading various HDF files [message #46316 is a reply to message #46204] |
Fri, 18 November 2005 02:19  |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
Dear Rick
there is newer version here and I tested it with digital photos and it
works!
http://vento.pi.tu-berlin.de/fli.html
It would need some more work on utf-8 file names but principle it works
with true color images too.
cheers
Reimar
Rick Towler wrote:
>
> Nicola wrote:
>
>> Thank you rick, maybe this will be the faster way avoiding mpeg
>> problems on IDL. Could you suggest me which encoder can I use
>> considering the fact that I would like to have a 24-bit animation.
>> thanks a lot to all of you
>
>
> Well, I don't know about faster :( You'll inevitably spend time
> learning new software and experimenting with encoding. But in the end
> you should have higher quality and smaller animations :)
>
>
> If you only require Mac and windows support I would recommend:
>
> VP3 encoder - free, info at http://www.vp3.com/ The binaries hosted at
> xiph.org seem to be offline. Don't know the status of the project. This
> codec works with videomach.
>
> Divx - $20 from www.divx.com. A popular encoder for video bootleggers,
> I have had quite good luck with it using it for scientific animations.
> This codec works with videomach. The decoder is also available for
> linux, but the version lags a bit behind the windows and mac ports.
>
> Sorenson codecs (v4 and v5) - These codecs ship with Quicktime Pro
> (www.quicktime.com ~$20 for the windows version). This codec *doesn't*
> work with videomach. You can use videomach to create an uncompressed
> .avi which you can then encode using quicktime pro. The upside is that
> many people have quicktime installed on their PCs.
>
> Windows Media - The windows media *encoder* is available free:
> http://www.microsoft.com/windows/windowsmedia/9series/encode r/default.aspx
> Like the sorenson codecs, this encoder doesn't provide a Video for
> windows (VFW) interface and thus it can't be used directly with
> videomach. You would need to create uncompressed .avi files and encode
> using the WME software. The upside with WM is that anyone with windows
> media player 9+ installed can view the files. Further, if they have
> windows media 7 installed and an internet connection the WM9 decoder
> will be downloaded automatically.
>
>
> Remember that you need the codec installed on any machine you want to
> view the animation on. This includes laptops at conferences. Make sure
> you test before you stand up at the podium!
>
>
> I'll also recommend aviIDL from Ronn Kling's website
> (http://www.kilvarock.com/) which provides an interface to the video for
> windows API from IDL. Using this package you can use any VFW codec and
> go straight from IDL to your animation. No videomach required.
>
> Good luck!
>
> -Rick
--
Reimar Bauer
Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
============================================================ =======
|
|
|
Re: Reading various HDF files [message #46389 is a reply to message #46274] |
Mon, 14 November 2005 15:42  |
Rick Towler
Messages: 821 Registered: August 1998
|
Senior Member |
|
|
Nicola wrote:
> Thank you rick, maybe this will be the faster way avoiding mpeg
> problems on IDL. Could you suggest me which encoder can I use
> considering the fact that I would like to have a 24-bit animation.
> thanks a lot to all of you
Well, I don't know about faster :( You'll inevitably spend time
learning new software and experimenting with encoding. But in the end
you should have higher quality and smaller animations :)
If you only require Mac and windows support I would recommend:
VP3 encoder - free, info at http://www.vp3.com/ The binaries hosted at
xiph.org seem to be offline. Don't know the status of the project.
This codec works with videomach.
Divx - $20 from www.divx.com. A popular encoder for video bootleggers,
I have had quite good luck with it using it for scientific animations.
This codec works with videomach. The decoder is also available for
linux, but the version lags a bit behind the windows and mac ports.
Sorenson codecs (v4 and v5) - These codecs ship with Quicktime Pro
(www.quicktime.com ~$20 for the windows version). This codec *doesn't*
work with videomach. You can use videomach to create an uncompressed
.avi which you can then encode using quicktime pro. The upside is that
many people have quicktime installed on their PCs.
Windows Media - The windows media *encoder* is available free:
http://www.microsoft.com/windows/windowsmedia/9series/encode r/default.aspx
Like the sorenson codecs, this encoder doesn't provide a Video for
windows (VFW) interface and thus it can't be used directly with
videomach. You would need to create uncompressed .avi files and encode
using the WME software. The upside with WM is that anyone with windows
media player 9+ installed can view the files. Further, if they have
windows media 7 installed and an internet connection the WM9 decoder
will be downloaded automatically.
Remember that you need the codec installed on any machine you want to
view the animation on. This includes laptops at conferences. Make sure
you test before you stand up at the podium!
I'll also recommend aviIDL from Ronn Kling's website
(http://www.kilvarock.com/) which provides an interface to the video for
windows API from IDL. Using this package you can use any VFW codec and
go straight from IDL to your animation. No videomach required.
Good luck!
-Rick
|
|
|