VMT_BuildXYZOutput

PURPOSE ^

Takes multiple ensembles and writes them to an xyz data file with columns

SYNOPSIS ^

function xyzdata = VMT_BuildXYZOutput(V)

DESCRIPTION ^

 Takes multiple ensembles and writes them to an xyz data file with columns
 for each variable.

 P.R. Jackson, 3-24-09

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function xyzdata = VMT_BuildXYZOutput(V)
0002 % Takes multiple ensembles and writes them to an xyz data file with columns
0003 % for each variable.
0004 %
0005 % P.R. Jackson, 3-24-09
0006 
0007 format long
0008 xyzdata = [];
0009 
0010 for i = 1:size(V.mcsX,1)
0011     for j = 1:size(V.mcsX,2)
0012         tempvec = [V.mcsX(i,j) V.mcsY(i,j) V.mcsDepth(i,j) V.mcsMag(i,j) V.mcsDir(i,j) V.u(i,j) V.v(i,j) V.w(i,j) V.vp(i,j) V.vs(i,j) V.mcsEast(i,j) V.mcsNorth(i,j) V.mcsDirDevp(i,j) V.mcsBack(i,j)];
0013         if ~isnan(sum(tempvec)) 
0014             xyzdata = [xyzdata; tempvec];
0015         end
0016     end
0017 end
0018 format short

Generated on Thu 21-Aug-2014 10:40:31 by m2html © 2005