Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Video of arrays

Status
Not open for further replies.

Lukejambo

Programmer
Feb 27, 2015
5
GB
Hi,

So I have a programme in fortran 90/95 that writes a large number of arrays to a text/dat file where each array is different than the last.

Is it possible to make a visualisation/video of each the arrays changing?

So for example, the first image will be the first array, then the video will show the next array in place of the first and so on...

I've tried using VMD for this however not sure if it'll work for text/dat files.
 
Which compiler are you using? IVF has something called an array visualizer. What it does I don't know as I've never used it but it may be what you're looking for.
 
Thanks, I'm using silverfrost ftn95 with plato.

Can I use IVF with this?
 
IVF is the Intel compiler (formerly CVF and before that MS Powerstation 4).

With Silverfrost, there is something called Simpleplot. I've read about it but never had any need to use it.

I don't know whether it will give you the dynamics you're looking for.
 
So, how is this related to Fortran, again?


I would write a python script that reads one file at a time, uses matplot lib to create a plot and saves the image file; then, a one-liner at the prompt to run ffmpeg to convert all those files into an avi file or something.

I have done this.
 
Also, if you want to keep it in "Fortran", you can use something like plplot to create the image directly inside your Fortran code; then, the one ffmpeg command to convert the images into a video.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top