WRF-EMS: Compilación en Ubuntu 12.10

Se tiene WRF-EMS http://strc.comet.ucar.edu/software/newrems/

Se pide registra y solicita el script de instalación.

Llega al correo...

Es necesario tener instalado tcsh y csh. Ya es así con esta distro.

Luego de leer un poco y de algunos problemas básicos de ejecución del script perl llego a http://www.wrfems.info/viewtopic.php?f=5&t=15 y hago:

Creo el archivo .cshrc

gedit ~.cshrc

guardo para crear el archivo sólamente, y con ~ cuardo en el home

sudo mv /bin/sh /bin/sh-move-out-of-the-way
sudo ln -s /bin/bash /bin/sh

al ejecutar el script el archivo solicitará la especificación para descargar los archivos con wget o curl
Entonces ejecuto el archivo desde bash


sudo perl /home/sergio/Documentos/ems_install.pl --install 3.2.1.5.45.beta --nowkp --wget
[sudo] password for sergio: 


    Greetings clearly intelligent and devastatingly good-looking WRF EMS user!

    Welcome to the NWS SOO Science and Training Resource Center (SOO/STRC) Weather Research
    and Forecasting (WRF) Environmental Modeling System (EMS) installation and update routine.
    
    Phew! That's more than a mouthful.

    *  Checking http connection to emsdata1.comet.ucar.edu   - Contacted

    *  Connecting to emsdata1.comet.ucar.edu to get requested information


    *  Start with some old-school user interrogation

       Before we begin this rather painless installation process I will need to ask you a few
       questions regarding the location and ownership of the distribution.

       Since you are installing the release as root, the process should go smoothly. You will
       be asked for a user name to assign the ownership of the files and a location for the
       installation. If the user does not exist then an account will be created.
       
       Note that running the EMS currently requires that users run tcsh or csh as their shell.
       This requirement may change someday but it won't be by tomorrow unless you are doing all
       the work.

         Do you wish to continue? [Yes] y

       So let us continue this forbidden EMS dance...


    *  Finding that Perfect Home for the WRF EMS

         So, where would you like to install your WRF EMS? [/usr1] y

       OOPS! y is not a valid directory. Let us try it again.

         So, where would you like to install your WRF EMS? [/usr1] /usr1

       OOPS! /usr1 is not a valid directory. Let us try it again.

         So, where would you like to install your WRF EMS? [/usr1] /usr1

       The WRF EMS distribution will be located in /usr1/wrfems


    *  Checking if T|Cshell is installed on the system

       !  IMPORTANT: The user assigned ownership of the WRF EMS must be running either a T
          or C shell environment.  These shells must also be installed on all systems
          running the EMS.

          *  Is T shell installed? -  Yes
          *  Is C shell installed? -  Yes

    *  Enough About Me. What About ... YOU?

         To whom shall I assign guardianship of the EMS? [emsuser]  

         !  User emsuser does not exist on the system.

       Don't worry, I can create a user account for emsuser. System defaults will be used
       for the user and group IDs, and login shell will be /bin/tcsh.

         Do you want to create an account? [Yes] Yes

         Please specify a password for user emsuser [disable account] 

       User account emsuser created
       !  Password creation failed. Account is currently disabled



    *  Local CPU information for linux       
       
       The EMS installation routine has determined that there are 1 physical CPUs on linux
       with 2 cores per CPU for a grand total of 2 processors.  If these values are not
       correct then this is your opportunity to do something about it.
       
       So, before before we continue you need to verify the correct number of physical
       processors and cores per processor on linux.
       
         1 PHYSICAL CPUs  - Those that you would see if you opened up the computer case
       
         2 CORES per CPU - Just that and not the total number of available processors
       
       Note that if you plan on running the EMS on a cluster then that configuration is
       done manually after the basic installation. All I want is the information for linux.


       Are the values above correct for this machine? [Yes] Yes


    *  There are 1 CPUs * 2 cores for a total of 2 processors on linux.
       
       You can change these values in /usr1/wrfems/EMS.cshrc if necessary.


    *  Some basic information about this system

           System Information for linux
           
               System Date         : Mon Apr  1 15:10:02 2013 UTC
               Linux Release       : VERSION_ID12.10
               Kernel              : 3.5.0-26-generic
               CPU Type            : x32
               CPU Instructions    : piv
               Physical CPUs       : 1             
               Cores per CPU       : 2             
               Total Processors    : 2             
               Hyper-Threading     : Off                
           
               Installed Binaries  : None Installed  


       I will install WRF EMS Version 3.2.1.5.45.beta. Is this OK by you? [OK by me]: 

    *  Reconciling WRF EMS 3.2.1.5.45.beta release installation files

    *  Acquiring the WRF static and land use data sets

         A. Climatological monthly and maximum snow albedo - 0.15 degrees                             

              "DID YOU KNOW?"              
              
              The STRC WRF EMS is an end-to-end forecasting system, from ingesting the data used for model
              initialization to post-processing and exporting the forecasts the their final destination.

            While you were waiting the wrf.geog_albedo.tgz data set was installed


         B. Annual Greenness Fraction - 0.15 degree (~16km; max, min)                                 

              "DID YOU NEED TO KNOW?"              
              
              There are a variety of tools available to EMS users, including:
              
                ems_clean   - Restores run-time directories to a user-specified
                              state. Run "% ems_clean --help" for more information.
              
                ems_domain  - allows users to create new domains without the domain wizard
                              or relocalize existing domains efficiently.
              
                gribnav     - Reads the GDS block of GRIB 1 or 2 files and prints out
                              the navigation information including corner and center
                              points, pole point, grid dimensions and spacing.
              
                netcheck    - A tool for finding potential networking problems when 
                              executing the EMS on a cluster of Linux systems.
              
                sysinfo     - Provides information about your system including the number
                              of CPUs, CPU speed, amount of physical memory, and a whole
                              lot more stuff that you never cared to know about.
              
                runinfo     - Provides details of the run configuration for a selected
                              model domain. Simply run "runinfo" in a domain directory
                              and allow your state of semi-consciousness to be stimulated by
                              the shmorgishborg of valuable information.
              
                grib2cdf   -  Creates standard netCDF and companion cdl files from GRIB 
                              version 1 and 2 files - Enjoy!

            While you were waiting the wrf.geog_greenfrac.tgz data set was installed


         C. USGS Land Use - 30" (~1km), 2' (~3.7km), 5' (~9.2km) and 10' (~18.5km) 24-category dominant type (wetland, water, forest)

              "DID YOU KNOW?"              
              
              That the WRF EMS includes a modified version of the Domain Wizard developed by Earth System
              Research Laboratory (ESRL)? This tool greatly simplifies the task of setting up the
              computational domain for your simulations.
              
              Simply run from the command line:
              
                % dwiz

            While you were waiting the wrf.geog_landuse.tgz data set was installed


         D. USGS Land Use - 30" (~1km), 2' (~3.7km), 5' (~9.2km) and 10' (~18.5km) 24-category dominant type (wetland, water, forest)

              "DID YOU KNOW?"              
              
              That the WRF EMS provides benchmark simulations for both the NMM and ARW cores? This utility
              will allow you to compare the performance of each model on your workstation to that on other
              platforms. In addition running a benchmark will verify that the EMS is working on your
              system.
              
              To run a benchmark case after the install:
              
                1. cd wrfems/util/benchmark 
                2. Read the benchmark.README file
                3. cd to either core directory (arw or nmm)
                4. Run the benchmark case as per the guidance
                5. Send the results of your benchmark simulation to the SOO STRC

            While you were waiting the wrf.geog_landuse_2m.tgz data set was installed


         E. MODIS Land Use - 30" (~1km), 20-category MODIS land-cover classification of the IGBP (NOAH LSM only)

              "DID YOU NEED TO KNOW?"              
              
              The WRF EMS contains an advanced version of the operational NMM core run at NCEP.

            While you were waiting the wrf.geog_modislanduse.tgz data set was installed


         F. Gravity Wave Drag terrain data for use with the ARW core                                  

              "DID YOU KNOW?"              
              
              The WRF EMS includes the much talked about (just by me) option to the ems_install.pl routine
              that allows you to automatically (via cron) download and install patches and updates while
              you sleep. It will even send you email letting you know that the system was updated.

            While you were waiting the wrf.geog_orogwd.tgz data set was installed


         G. Bottom Layer Soil Type - 30" (~1km), 2' (~3.7km), 5' (~9.2km) and 10' (~18.5km) 16-category dominant type (silt, sand, clay, bedrock)

              "DID YOU KNOW?"              
              
              The WRF EMS includes the much talked about (just by me) option to the ems_install.pl routine
              that allows you to automatically (via cron) download and install patches and updates while
              you sleep. It will even send you email letting you know that the system was updated.

            While you were waiting the wrf.geog_soilbot.tgz data set was installed


         H. Top Layer Soil Type - 30" (~1km), 2' (~3.7km), 5' (~9.2km) and 10' (~18.5km) 16-category dominant type (silt, sand, clay, bedrock)

            While you were waiting the wrf.geog_soiltop.tgz data set was installed


         I. USGS Topography - 30" (~1km), 2' (~3.7km), 5' (~9.2km) and 10' (~18.5km) grid average elevation

            While you were waiting the wrf.geog_topo_30s_partA.tgz data set was installed


         J. USGS Topography - 30" (~1km), 2' (~3.7km), 5' (~9.2km) and 10' (~18.5km) grid average elevation

            While you were waiting the wrf.geog_topo_30s_partB.tgz data set was installed


         K. USGS Topography - 30" (~1km), 2' (~3.7km), 5' (~9.2km) and 10' (~18.5km) grid average elevation

            While you were waiting the wrf.geog_topo_30s_partC.tgz data set was installed


         L. USGS Topography - 30" (~1km), 2' (~3.7km), 5' (~9.2km) and 10' (~18.5km) grid average elevation

            While you were waiting the wrf.geog_topo_30s_partD.tgz data set was installed


         M. USGS Topography - 30" (~1km), 2' (~3.7km), 5' (~9.2km) and 10' (~18.5km) grid average elevation

            While you were waiting the wrf.geog_topo_30s_partE.tgz data set was installed


         N. USGS Topography - 30" (~1km), 2' (~3.7km), 5' (~9.2km) and 10' (~18.5km) grid average elevation

            While you were waiting the wrf.geog_topo_30s_partF.tgz data set was installed


         O. USGS Topography - 30" (~1km), 2' (~3.7km), 5' (~9.2km) and 10' (~18.5km) grid average elevation

            While you were waiting the wrf.geog_topo_30s_partG.tgz data set was installed


         P. USGS Topography - 30" (~1km), 2' (~3.7km), 5' (~9.2km) and 10' (~18.5km) grid average elevation

            While you were waiting the wrf.geog_topo_30s_partH.tgz data set was installed


         Q. USGS Topography - 30" (~1km), 2' (~3.7km), 5' (~9.2km) and 10' (~18.5km) grid average elevation

            While you were waiting the wrf.geog_topom.tgz data set was installed


         R. Adjusted Mean Annual Soil Temperatures - 1 degree                                         

            While you were waiting the wrf.geog_tsoil.tgz data set was installed


    *  Acquiring the WRF EMS core package files

          1 of 16 : EMS release.3.2.1.5.45.beta.conf.tbz            -  Downloaded & Installed
          2 of 16 : EMS release.3.2.1.5.45.beta.data.tbz            -  Downloaded & Installed
          3 of 16 : EMS release.3.2.1.5.45.beta.docs.tbz            -  Downloaded & Installed
          4 of 16 : EMS release.3.2.1.5.45.beta.domwiz.tbz          -  Downloaded & Installed
          5 of 16 : EMS release.3.2.1.5.45.beta.grads.tbz           -  Downloaded & Installed
          6 of 16 : EMS release.3.2.1.5.45.beta.nawips_base.tbz     -  Downloaded & Installed
          7 of 16 : EMS release.3.2.1.5.45.beta.nawips_gempak.tbz   -  Downloaded & Installed
          8 of 16 : EMS release.3.2.1.5.45.beta.nawips_maps.tbz     -  Downloaded & Installed
          9 of 16 : EMS release.3.2.1.5.45.beta.nawips_tables.tbz   -  Downloaded & Installed
         10 of 16 : EMS release.3.2.1.5.45.beta.strc.tbz            -  Downloaded & Installed
         11 of 16 : EMS release.3.2.1.5.45.beta.utils.awips.tbz     -  Downloaded & Installed
         12 of 16 : EMS release.3.2.1.5.45.beta.utils.benchmark.tbz -  Downloaded & Installed
         13 of 16 : EMS release.3.2.1.5.45.beta.utils.ncview.tbz    -  Downloaded & Installed
         14 of 16 : EMS release.3.2.1.5.45.beta.utils.scripts.tbz   -  Downloaded & Installed
         15 of 16 : EMS release.3.2.1.5.45.beta.utils.wrfems.tbz    -  Downloaded & Installed
         16 of 16 : EMS release.3.2.1.5.45.beta.wrfems.tbz          -  Downloaded & Installed

    *  Acquiring the WRF EMS package binaries

          1 of 14 : EMS release.3.2.1.5.45.beta.allbin.x32.tbz      -  Downloaded & Installed
          2 of 14 : EMS release.3.2.1.5.45.beta.arwpost.x32.tbz     -  Downloaded & Installed
          3 of 14 : EMS release.3.2.1.5.45.beta.grads.x32.tbz       -  Downloaded & Installed
          4 of 14 : EMS release.3.2.1.5.45.beta.mpich2.x32.tbz      -  Downloaded & Installed
          5 of 14 : EMS release.3.2.1.5.45.beta.nawips.os.partA.x32.tbz -  Downloaded & Installed
          6 of 14 : EMS release.3.2.1.5.45.beta.nawips.os.partB.x32.tbz -  Downloaded & Installed
          7 of 14 : EMS release.3.2.1.5.45.beta.nawips.os.partC.x32.tbz -  Downloaded & Installed
          8 of 14 : EMS release.3.2.1.5.45.beta.nawips.os.partD.x32.tbz -  Downloaded & Installed
          9 of 14 : EMS release.3.2.1.5.45.beta.nawips.os.partE.x32.tbz -  Downloaded & Installed
         10 of 14 : EMS release.3.2.1.5.45.beta.nawips.os.partF.x32.tbz -  Downloaded & Installed
         11 of 14 : EMS release.3.2.1.5.45.beta.nawips.os.partG.x32.tbz -  Downloaded & Installed
         12 of 14 : EMS release.3.2.1.5.45.beta.nawips.os.partH.x32.tbz -  Downloaded & Installed
         13 of 14 : EMS release.3.2.1.5.45.beta.rip.x32.tbz         -  Downloaded & Installed
         14 of 14 : EMS release.3.2.1.5.45.beta.utilbin.x32.tbz     -  Downloaded & Installed

    *  EMS target binaries to be installed - core2 (32-bit)

    *  Acquiring the WRF binaries for core2 systems

           1 of 1 : EMS release.3.2.1.5.45.beta.bin.core2.tbz       -  Downloaded & Installed


    *  Doing WRF EMS post-install configuration

          Setting ownership of WRF EMS distribution to emsuser:emsuser
cp: no se puede efectuar `stat' sobre «//ems_install.pl»: No existe el archivo o el directorio


         Checking for missing system libraries needed to run the Domain Wizard GUI

           -> Checking Java libs -  You're good to go!


         Checking for missing system libs needed for some utility packages

           -> Checking ncview routine  -  Missing System Libraries

              32-bit libnetpbm.so.10

       !  Not critical, but you will need to install the missing system libraries before
          using the ncview routine.


           -> Checking RIP routines  -  Missing System Libraries

              32-bit libg2c.so.0
              32-bit libpgc.so

       !  Not critical, but you will need to install the missing system libraries before
          using RIP routines.


           -> Checking GrADS routines  -  You're good to go!

           -> Checking GEMPAK routines -  Missing System Libraries

              32-bit libg2c.so.0
              32-bit libgfortran.so.1

       !  Not critical, but you will need to install the missing system libraries before
          using NAWIPS/GEMPAK routines.



    *  Almost done - But first recite the following EMS Loyalty Oath:

         "I have read the barely comprehensible and nearly unreadable babble above
          and completely believe in the omnipotent wisdom on the WRF EMS and its
          creator. In addition, I do not hold the EMS responsible for my personal
          failings, which would be few if I had any at all. I also understand that
          running the WRF EMS may result in my becoming more svelte, increasingly
          intelligent, and devastatingly good looking, not necessarily in that order."


       Simply press the Enter key to continue this odyssey [I completely agree with some it]: 


Por tanto, como se me faltan las librerías:

32-bit libnetpbm.so.10

32-bit libg2c.so.0
32-bit libpgc.so

32-bit libg2c.so.0
32-bit libgfortran.so.1


Solución:
32-bit libnetpbm.so.10

sudo apt-get install ncview

32-bit libg2c.so.0

Instalar compilador g77

sudo gedit /etc/apt/sourcer.list

Agregar:
deb http://cl.archive.ubuntu.com/ubuntu hardy-updates main universe

sudo apt-get install update
sudo apt-get install g77

32-bit libpgc.so

Corresponde a la librería de Portland Group. La descargué desde acá
Descomprimí el archivo y lo copié en /usr/lib
Hay un programa muy bueno para descomprimir archivos de todo tipo de extensiones que se llama unp
sudo apt-get install unp

entonces en
cd /home/sergio/Descargas
unp libpgc.so.bz2 
sudo cp libpgc.so /usr/lib

32-bit libgfortran.so.1

Descargar dede http://packages.ubuntu.com/hardy/i386/libgfortran1/download


mkdir malditolibgfortran1
mv libgfortran1_4.1.2-21ubuntu1_i386.deb  malditolibgfortran1/
cd malditolibgfortran1
ar -x libgfortran1_4.1.2-21ubuntu1_i386.deb 

#Deben tener instalado unp, que es para descomprimir archivos cualquier extensión

sudo apt-get install unp

unp data.tar.gz 
sudo cp libgfortran.so.1* /usr/lib



y ahora si =)


-------------

Si tienes que repetir la instalación, lo cual es bien probable y no quieres volver a descargar todos los archivos

La instalación se hace así, reemplazando wget


sudo perl /home/sergio/Documentos/ems_install.pl --install --repodir /usr1/wrfems/releases/3.2.1.5.45.beta/ --nowpk



Comentarios

Entradas populares de este blog

ERROR: Grib2 file or date problem, stopping in edition_num. Can't ungrib.exe SOLVED

ARCGIS: Cálculo de pendiente entre puntos en el espacio xyz

WRF open_aux_u : error opening auxinput5_d02_2013-12-31_00:00:00 for reading. 100