Instalación de ARWPost y GrADS

4 de mayo de 2012

VIDEO QUE DA CÓMO COMPILAR  ARWPost http://youtu.be/zXvfQ4i0IJE

ARWpost:
ARWpost, is a Fortran program that reads WRF ARW input and output file and generate GrADS output files.

Once the output files have been generated, GrADS can be used to producing horizontal or vertical cross section plots of scalar fields (contours) or vector fields (barbs or arrows), vertical profiles and soundings.

$ tar -xvzf ARWpost_V3.tar.gz
$ cd ARWpost
$ ./configure

** WARNING: No path to NETCDF and environment variable NETCDF not set.
** would you like me to try to fix? [y]
y
Enter full path to NetCDF include directory on your system
/usr/local/include
Enter full path to NetCDF library directory on your system
/usr/local/lib
created new ./netcdf_links directory
total 0
lrwxrwxrwx. 1 angelv angelv 18 abr 18 15:41 include -> /usr/local/include/
lrwxrwxrwx. 1 angelv angelv 14 abr 18 15:41 lib -> /usr/local/lib/
Will use NETCDF in dir: /home/angelv/ARWpost/netcdf_links
------------------------------------------------------------------------
Please select from among the following supported platforms.

   1.  PC Linux i486 i586 i686 x86_64, PGI compiler   
   2.  PC Linux i486 i586 i686 x86_64, Intel compiler   
   3.  PC Linux i486 i586 i686 x86_64, gfortran compiler

Enter selection [1-3] : 2  
------------------------------------------------------------------------
Configuration successful. To build the ARWpost, type: compile
------------------------------------------------------------------------

$ ./compile

Se dió el siguiente error:

    module_interp.f:(.text+0x6ece): undefined reference to `ncvgt_'
    collect2: ld devolvió el estado de salida 1
    make: [ARWpost.exe] Error 1 (no tiene efecto)

Instalación de Vis5D

Descargar desde la página web oficial: http://www.ssec.wisc.edu/~billh/vis5d.html

$ tar -xvzf vis5d+-1.3.0-beta.tar.gz
$ cd vis5d+-1.3.0-beta
$ ./configure --with-mixkit=/usr/lib64/

****************************************************
You need to install a 3D graphics library, preferably
the free OpenGL replacement, Mesa.  You can download
Mesa from the Mesa home page:
          http://www.mesa3d.org/
and install it by running:
       ./configure && make && su -c 'make install'
in the Mesa directory.
You may also need to run /sbin/ldconfig as root
to update the system after installing Mesa.
(First, add '/usr/local/lib' to /etc/ld.so.conf if
you installed Mesa under /usr/local, the default.)
****************************************************

Nota: Para borrar un repositorio en GNU/Linux fedora http://www.ibm.com/developerworks/ssa/linux/library/l-lpic1-v3-102-5/index.html

Hay que instalar Mesa

# yum install mesa-libGLU-devel

Luego de eso de nuevo (para instalar vis5d)

$ ./configure

.
.
.
checking for fcntl.h... yes
configure: creating ./config.status
config.status: creating vis5d+.pc
config.status: creating gtk/vis5dgtk.pc
config.status: creating gtk/gradients/Makefile
config.status: creating gtk/Makefile
config.status: creating po/Makefile.in
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating lui5/Makefile
config.status: creating util/Makefile
config.status: creating m4/Makefile
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: creating src/api-config.h
config.status: src/api-config.h is unchanged
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: creating po/POTFILES
config.status: creating po/Makefile

$ make
$ make check
# make install

Para instalar MixLib http://pkgs.org/centos-6-rhel-6/puias-computational-x86_64/MixKit-2.1-3.puias6.x86_64.rpm.html

1. Instalar puias release http://mirror.yandex.ru/fedora/russianfedora/russianfedora/free/el/releases/6/Everything/i386/os/
2. Instalar puias core http://puias.math.ias.edu/wiki/YumRepositories6
3. Instalar puias addon http://pkgs.org/centos-6-rhel-6/puias-i386/puias-addons-6-1.puias6.6.noarch.rpm.html
4. Instalar puias en sí como root rpm -Uvh puias-computational*rpm

# rpm -Uvh puias-computational*rpm
advertencia:puias-computational-6-1.puias6.5.noarch.rpm: CabeceraV3 RSA/SHA256 Signature, ID de clave 41a40948: NOKEY
Preparando...               ########################################### [100%]
   1:puias-computational    ########################################### [100%]

# yum install MixKit

Otra vez con la instalación de vis5d+-1.2.1

$ ./configure --with-mixkit=/usr/lib64/
$ make

Finalmente no se pudo instalar ARWPost en la máquina Scientific Linux donde tenemos WRF por problemas, pienso yo, de algunas librerías.

Se procede a instalar entonces en una máquina virtual con la distribución GNU/Linux Ubuntu. La intalación se realiza de la siguiente manera (http://youtu.be/zXvfQ4i0IJE):

Descargar ARWPost desde la página http://www.mmm.ucar.edu/wrf/users/download/get_sources.html

Nota: Para la descarga hay que suscribirse de manera gratuita al sitio.

El link de descarga de la versión 3.1 es la siguiente: http://www.mmm.ucar.edu/wrf/src/ARWpost_V3.tar.gz

Una vez descargado el paquete de ARWPost se realizan los siguientes pasos:

Nota: Se debe tener compilado NetCDF en la máquina en la que se piensa instalar ARWPost.

$ tar -xvzf ARWpost_V3.tar.gz
$ cd ARWpost
$ ./configure

** WARNING: No path to NETCDF and environment variable NETCDF not set.
** would you like me to try to fix? [y]
y
Enter full path to NetCDF include directory on your system
/usr/local/include
Enter full path to NetCDF library directory on your system
/usr/local/lib
created new ./netcdf_links directory
total 0
lrwxrwxrwx. 1 angelv angelv 18 abr 18 15:41 include -> /usr/local/include/
lrwxrwxrwx. 1 angelv angelv 14 abr 18 15:41 lib -> /usr/local/lib/
Will use NETCDF in dir: /home/angelv/ARWpost/netcdf_links
------------------------------------------------------------------------
Please select from among the following supported platforms.

   1.  PC Linux i486 i586 i686 x86_64, PGI compiler   
   2.  PC Linux i486 i586 i686 x86_64, Intel compiler   
   3.  PC Linux i486 i586 i686 x86_64, gfortran compiler

Enter selection [1-3] : 2  
------------------------------------------------------------------------
Configuration successful. To build the ARWpost, type: compile
------------------------------------------------------------------------

$ ./compile

******************************************************************************************
GrADS
******************************************************************************************

Instalación de GrADS (He seguido los pasos que se muestran en "Como instalar GrADS"  http://youtu.be/e4s92fer85s)


Descargar de la página oficial el código fuente (source) para compilarlo. http://www.iges.org/grads/downloads.html

Nota: Los pasos a seguir están mostrados en el archivo INSTALL en el archivo comprimido en source.tar.gz.
Nota: Tutorial en español con un ejemplo de uso de GrADS está en: http://www.iges.org/grads/gadoc/

$ tar -xvzf grads-2.0.1-src.tar.gz
$ cd grads-2.0.1
$ ./configure

.
.
.

- OPeNDAP for station data disabled

  +=========================================================================+
   GrADS 2.0.1 : Built Wed May 2 17:53:35 ECT 2012 for x86_64-unknown-linux-gnu
  +=========================================================================+

  +-------------------------------+
  |                               |
  |  GrADS will be built with:    |
  |                               |
  |  - GUI disabled               |
  |  - readline disabled          |
  |  - geotiff disabled           |
  |  - shapefile disabled         |
  |  - printim disabled           |
  |  - grib2 disabled             |
  |  - hdf4 disabled              |
  |  - hdf5 disabled              |
  |  - netcdf disabled            |
  |  - OPeNDAP disabled           |
  |                               |
  |  gxtran will not be built     |
  |  grib2scan will not be built  |
  |                               |
  +-------------------------------+
configure: creating src/VERSION
configure: creating src/buildinfo.h
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/config.h

Run 'make && make install' to build GrADS.
Executables will be installed to bin/ in current dir, unless prefix was specified.

# make && make install

Cuando se manda make && make install sale el siguiente error:

.
.
.
gxdxwd.c:16:29: error: X11/Xmu/WinUtil.h: No existe el fichero o el directorio
make[2]: *** [gxdxwd.o] Error 1
make[2]: se sale del directorio `/home/angelv/Descargas/grads-2.0.1/src'
make[1]: *** [all] Error 2
make[1]: se sale del directorio `/home/angelv/Descargas/grads-2.0.1/src'
make: *** [all-recursive] Error 1

En la siguiente página se da la solución a este problema: http://dougsland.livejournal.com/54995.html

Se debe instalar libxmu-dev

Ahora mandamos a instalar make && make install ([root@localhost grads-2.0.1]# make && make install)

$ make
$ make check
# make install

Una vez que está compilado GrADS, pasamos todos los ejecutables (los que se generan luego de la compilación) que están en el directorio bin hacia el directorio /usr/local/bin.

Cuando ya se va a abrir una salida de WRF y si no están instalados datos 2, sale esto:

.
.
.
Error opening stroke character data set
  Data set names = /usr/local/lib/grads/font0.dat ; font0.dat
Error opening stroke character data set
  Data set names = /usr/local/lib/grads/font0.dat ; font0.dat

Instalación de datos (datos2.tar.gz)
------------------------------------

Se debe instalar el archivo datos2.tar.gz desde la página web http://grads.iges.org/grads/downloads.html

Nota: Los pasos a seguir están mostrados en el archivo INSTALL en el archivo comprimido en source.tar.gz.

Todos los archivos que están empoquetados se copian a un directorio del sistema llamado /usr/local/lib/grads (el directorio grads dentro de lib se debe crear).

Una vez instalados GrADS y sus respectivos datos (datos2.tar.gz), se puede hacer una prueba con la salida de ARWPost.

Copiamos los archivos de salida de ARWPost (salida.ctl y salida.dat) al directorio de GrADS y en la terminal del sistema ponemos

$ grads
ga> open salida.ctl
ga> d t2
ga> d t
ga> d u10m

Si le gustó esta entrada, ¡podría invítame a un café!

0 comentarios:

Related Posts with Thumbnails