File Conversion Utility for MM5 V3 Model on SGI Origin 2000
Download
convert.pl [4,8] [4,8] [4,8] [4,8]
convert.pl is used to convert MM5V3 output data sets with integers of
length $ARVG[0] and floating point numbers with size $ARGV[1] bytes to
data sets with integers of size $ARVG[2] bytes and floating point numbers
with size $ARGV[3] bytes.
convert.pl makes an executable if required. It uses this executable
to read in all of the files in $PWD/data_in attempting to convert them
and places the converted data sets in $PWD/data_out.
To convert data sets with convert.pl:
-
place MM5V3 data sets in ./data_in.
-
convert.pl requires 4 arguments with a value of 4 or 8, e.g. ./convert.pl
4 4 8 8
-
mv ./data_out/* <your_data_directory>
-
./convert-out contains standard output from the convert program.
To make and run convert by hand:
-
setenv INTEGER_IN [4,8]
-
setenv REAL_IN [4,8]
-
setenv INTEGER_OUT [4,8]
-
setenv REAL_OUT [4,8]
-
cd src; make
-
cd ../data_out
-
foreach <data_set>
-
ln -s ../data_in/<data_set> fort.71
-
../src/convert-i?r?i?r?
-
rm fort.71
-
mv fort.72 <data_set>
Note: Thanks to Wesley Jones at SGI providing the source and script.