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:

  1. place MM5V3 data sets in ./data_in.
  2. convert.pl requires 4 arguments with a value of 4 or 8, e.g. ./convert.pl 4 4 8 8
  3. mv ./data_out/* <your_data_directory>
  4. ./convert-out contains standard output from the convert program.


To make and run convert by hand:

  1. setenv INTEGER_IN [4,8]
  2. setenv REAL_IN [4,8]
  3. setenv INTEGER_OUT [4,8]
  4. setenv REAL_OUT [4,8]
  5. cd src; make
  6. cd ../data_out
  7. foreach <data_set>
  8. ln -s ../data_in/<data_set> fort.71
  9. ../src/convert-i?r?i?r?
  10. rm fort.71
  11. mv fort.72 <data_set>
Note: Thanks to Wesley Jones at SGI providing the source and script.

 


[Alliance] Alliance NCSA UIUC [NCSA]