Visualizing CE-Qual-W2 output


Creating Color Contours of Model Predictions

The MPEG movies and the .gif images for the Neuse Estuary Eutrophication Model were written using MATLAB, version 5. The color profiles were created with the ".m" scripts, get_xtsr.m and col_prof.m. The script get_xtsr.m reads an array containing the constituent and temperature data from an "extra time series" data file created by CE-Qual-W2. The new subrountine extsr.f was created to write this file. Once the data has been read into the array, the script col_prof.m is run to display the color contours.

Creating .GIF images

The .gif images were created from within the script col_prof.m. The images are saved as .pcx files and then converted to .gif files using Image Alchemy (Download it), a command line image converter for PC's, MAC's and workstations. Unisys has obtained a copyright to the .gif file format, and because of this, .gif files can no longer be written directly from MATLAB, V. 5.

Creating and Playing .MPEG movies

The .mpeg file is also created from within the script col_prof.m. The script uses the User M-file, mpgwrite (Download mpgwrite.tar) to write the .mpeg file. A description of mpgwrite is available under the "Plotting/Graphics" subject of Mathwork's archive of user supplied .m files for version 4. Much more information on the MPEG format is also available elsewhere. To play the MPEG movie from within your web browser (e.g. Netscape Navigator), you will need to install a "helper application" or a "plug-in," if it hasn't been done already. More information is available on playing .mpeg movies.


Links to Other Pages

Author: Jim Bowen
Updated: 7/10/97