Entradas

Fortran: Colocar nombres a los do anidados

Siempre hay que colocar nombre a los do anidados. Este ejemplo es cn Fortran 2008, y lo que quiero decir, es que no se si enlos Fortran antiguos se puede. Pagina 150 libro Fortran for Scientists 2018 - Chapman program nested integer :: i, j, product externo: do i = 1 , 3 interno: do j = 1 , 3 product = i * j write ( * , * ) i, ' * ' , j, ' = ' , product end do interno end do externo ! iempre hay que colocar nomres a los dos que estan NESTED ! Ideal para latitud y longitud end program nested

como rodar screen no ubuntu

1) screen 2) deixa o processo rodando 3) sair: crtl + a d 4) screen -ls 5) screen -r Obrigado Amanda

install ncdf4 with local NetCDF in R

install.packages("ncdf4", configure.args = "--with-nc-config=/home/sibarra/teste_jean/compilados/bin/nc-config") replace  /home/sibarra/teste_jean/compilados/bin/nc-config  with your path  

Compilando Fortran con NETCDF en Ubuntu

Fortran es un super lenguaje y bueno... vamos directamente. Necesitaba compilar un programa Fortran con las librerias NetCDF y me pase la tardeentera investigando. Yo no tengo mucho conocimiento con los flags, pero encontre esta respuesta en StackOverFlow FORTRAN 77 FORTRAN 90

Instalar Julia + Atom en Ubuntu 18.04

Imagen
La promesa de Julia es que permite velocidade de lenguages de nivel bajo como Fortran o C++ usando un lenguaje de alto nivel. Vamos a ver. Pre requisitos: sudo apt-get update sudo apt-get -y install curl sudo apt-get -y install cmake Primero baja Julia para Linux de  https://julialang.org/downloads/index.html Descomprime en cualquier lugar, pero para que se facil, descomprime en tu user. A mi me gusta usar unp para eso cd ~ unp julia-0.6.3-linux-x86_64.tar.gz  Esto crea una carpet julia-XXXXXX. Dentro de ella hay una carpeta bin.  Despues sigue las instrucciones de este  video , que básicamente dicen que tienes que agregar cd julia-d55cadc/bin pwd En mi caso, pwd es /home/sergio/julia-d55cadc350/bin. Copiamos el output y lo pegar en /etc/environment. Yo uso nano y agregamos :/home/sergio/julia-d55cadc350/bin en PATH  sudo nano -c /etc/environment Y ahora exporta la vari...

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

Imagen
So, i got this error: open_aux_u Timing for Writing /scr4/sibarra/masp/health/wrfo for domain        2:    4.14512 elapsed seconds open_aux_u : error opening auxinput5_d02_2013-12-31_00:00:00 for reading. 100 pretty weird because it a met run. According to http://forum.wrfforum.com/viewtopic.php?f=47&t=10003, they recommend diminishing the number of processors. I ran with 32 and got stuck I ran with 16 and appear this error open_aux_u : error opening auxinput5_d02_2013-12-31_00:00:00 for reading. 100 I'm running with  8 and still running. 

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

Imagen
Well, it seems that this problem can be very common. Usually, you have a directory for downloading the meteorology from NCEP/UCAR. Probably, you will have the script for downloading the data in the same directory. If you link the grib files based on the name there won't be any problems ./link_grib.csh /path/GFS* However, it could be possible to link the whole directory. You might do this when you have a whole year of meteorological data. ./link_grib.csh /path/ If you have scripts for downloading the met data in the same directory, THEN you will have the message: ERROR: Grib2 file or date problem, stopping in edition_num To avoid this error, just move the script for downloading the met data elsewhere and link the directory again. Finally, do ungrib.exe UPDATE 2018-12/15 (I mean 15 of December of 2018) I had the same problem again, and with the same data! and this solution did not work till i did this: ./link_grib.csh /path/GFS Yes only the first letters, in ...