<p><b>ringler@lanl.gov</b> 2012-03-16 14:50:36 -0600 (Fri, 16 Mar 2012)</p><p><br>
add path to existing grid dx files<br>
</p><hr noshade><pre><font color="gray">Modified: branches/ocean_projects/ocean_test_cases_staging/ocean/baroclinic_channel/viz_tools/matlab/dump_frames_for_OpenDX.m
===================================================================
--- branches/ocean_projects/ocean_test_cases_staging/ocean/baroclinic_channel/viz_tools/matlab/dump_frames_for_OpenDX.m        2012-03-16 19:40:23 UTC (rev 1664)
+++ branches/ocean_projects/ocean_test_cases_staging/ocean/baroclinic_channel/viz_tools/matlab/dump_frames_for_OpenDX.m        2012-03-16 20:50:36 UTC (rev 1665)
@@ -31,19 +31,22 @@
field3D=1 % set to 1 for 3D fields (like temperature) and 0 for 2D
iLevel = 1 % if field3D=1, this the level to be extracted
-var = 'temperature' % this is the variable to be extracted (case sensitive)
+var = 'ke' % this is the variable to be extracted (case sensitive)
-periodic=1 % for channels or any planar re-entrant settings, periodic=1
+periodic=0 % for channels or any planar re-entrant settings, periodic=1
nx=160 % when periodic == 1, must specify nx
ny=500 % when periodic == 1, must specify ny
% path the output netCDF file == resolution + time_step + output
-resolution = '../../1000m_20levs'
-time_step = 'se20_160_4procs'
-output = 'output.0000-01-01_00:00:00.nc'
+resolution = '../..'
+time_step = '/'
+output = 'o.x5.NA.60km_10km.0005-01-01_00:00:00.nc'
file = [resolution '/' time_step '/' output]
+% path to OpenDX basin files
+dxpath = '../../../x5.NA.50km_10km.dx'
+
% if you don't want all time slices in output file, set the bounds here
% default is from 1 to number of time records in netCDF file
% so set nTimeMin<1 to start at beginning of output file
@@ -123,11 +126,11 @@
system('rm -f ../OpenDX/movie/data/*.data')
system('rm -f ../OpenDX/movie/*.dx')
system('rm -f ../OpenDX/movie/*.data')
-str1 = [ 'cp ' resolution '/dx/ocean.dx ../OpenDX/movie/.' ]
-str2 = [ 'cp ' resolution '/dx/ocean.position.data ../OpenDX/movie/.' ]
-str3 = [ 'cp ' resolution '/dx/ocean.face.data ../OpenDX/movie/.' ]
-str4 = [ 'cp ' resolution '/dx/ocean.loop.data ../OpenDX/movie/.' ]
-str5 = [ 'cp ' resolution '/dx/ocean.edge.data ../OpenDX/movie/.' ]
+str1 = [ 'cp ' dxpath '/ocean.dx ../OpenDX/movie/.' ]
+str2 = [ 'cp ' dxpath '/ocean.position.data ../OpenDX/movie/.' ]
+str3 = [ 'cp ' dxpath '/ocean.face.data ../OpenDX/movie/.' ]
+str4 = [ 'cp ' dxpath '/ocean.loop.data ../OpenDX/movie/.' ]
+str5 = [ 'cp ' dxpath '/ocean.edge.data ../OpenDX/movie/.' ]
system(str1)
system(str2)
system(str3)
</font>
</pre>