https://github.com/geodynamics/citcoms
Revision baea5603cd84af5382915a4955729936ef79d67e authored by Eh Tan on 21 January 2005, 06:29:50 UTC, committed by Eh Tan on 21 January 2005, 06:29:50 UTC
1 parent ca3e40e
Tip revision: baea5603cd84af5382915a4955729936ef79d67e authored by Eh Tan on 21 January 2005, 06:29:50 UTC
removed 'tracer' and 'tracer_file' properties from Param class (these properties are moved to Tracer class)
removed 'tracer' and 'tracer_file' properties from Param class (these properties are moved to Tracer class)
Tip revision: baea560
dxgeneral.sh
#!/bin/sh
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# <LicenseText>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Create OpenDX .general file for combined Citcom Data
#
if [ -z $1 ]; then
echo " usage:" `basename $0` file1 [file2 ...]
exit
fi
for i; do
if [ ! -f $i ]; then
echo file \'$1\' not exist
exit
fi
echo processing $i ...
output=$i.general
grid=`head -1 $i | awk '{print $3, $2, $1, $4, $5}'`
echo file = $i > $output
echo grid = $grid >> $output
echo format = ascii >> $output
echo interleaving = field >> $output
echo majority = row >> $output
echo header = lines 1 >> $output
echo field = locations, velocity, temperature, viscosity >> $output
echo structure = 3-vector, 3-vector, scalar, scalar >> $output
echo type = float, float, float, float >> $output
echo >> $output
echo end >> $output
done
# version
# $Id: dxgeneral.sh,v 1.3 2004/05/12 19:01:39 tan2 Exp $
# End of file
Computing file changes ...