MBUFRTOOLS /MBUFR-ADT 

Tools and module to Encode/Decode meteorological data in the FM-94 BUFR

 

 

1 Installing 

 

1.1 - Unpack mbufrttols_unx.tar.gz file

      Example:

           

            gunzip mbufrtools_unx.tar.gz

            tar -xvf mbufrtools_unx.tar

 

           

 

1.2 - Configuring MBUFR_TABLES Environment Variable

            Edit the .login or .bashrc file and add the MBUFR_TABLES variable

            The MBUFR_TABLES must have the path to the folder where BUFR tables are

 

            Examples in csh:: 

           

            setenv MBUFR_TABLES  ${HOME}/mbufrtools/bufrtables/

 

 

1.3 - Compiling MBURFTOOLS

 

           

            Choose the adequate Makefile. 

           

            Examples: 

            make -f Makefile_g95 ( for g95 gnu compiler)

            make -f Makefile_ifort ( for Intel compiler)

            make -f Makefile_dec   (for Dec-alfa f90 compiler)

 

            If you don't have any Fortran 90 compiler, we recommended g95 compiler

            It's free available in <http://www.g95.org>

 

 

            For a others Fortran 90 compiler, edit one of the “makefile” available and modify the parameters in the first line.  

             Consult the manual of your compiler and check the correct parameters witch define the “byte” as unit to read/write (byterecl option).

   

             

           

2 - TESTING AND USING THE SYSTEM

 

            For facility, copy the executable programs from  ${HOME}/bufrtools/bin to  ${HOME}/bin.

            Use the BUFR files in the data_examples folder.           

Examples:

 

a) To convert bufrfile in text file (1 message and 1 subset)

                        bufrdump <BUFR file > < Text file > 1 1

 

b) To convert txt file in BUFR file

                        bufrgen <Text file > < New BUFR file >

 

  c) To list generals information about a Bufrfile on screen

                        bufrlist <BUFR file >

 

           

 

For more information, contact sergioh@cptec.inpe.br