Entradas

Leave your addictions... using Ubuntu

Imagen
Well, this is awkward, and kind of funny. It turns out that i've got a lot of work in my PhD in meteorology at USP... that's cool... but i've also been playing this really OLD (prehistoric) game called warzone2100. It's a strategy and military game for Ubuntu... so old and so addictive... that i was spending more time playing than studying, Well, i decided to put an end (After a passed all levels, and only the last one cheating) i decided forbid it in Ubuntu, it means, i cannot install it anymore.... and this is the way: and the result

Error If you REALLY want Grib2 output from WRF, modify the arch/Config_new.pl - WRF 3.7 in Ubuntu (Elementary)

Imagen
Well, i was installing WRF Chem in a server and also in my local machine, following this great tutorial, and when i did ./configure, i had the following error. I had all the libraries installed and environmental variables declared. If you REALLY want Grib2 output from WRF, modify the arch/Config_new.pl script. Right now you are not getting the Jasper lib, from the environment, compiled into WRF. I searched and searched and lots of dudes had the same problem. The solution was ridiculous, was change  one line in VRFV3/arch/Config_new.pl, the line 223, from  $I_really_want_to_output_grib2_from_WRF = "FALSE" ; to  $I_really_want_to_output_grib2_from_WRF = "TRUE" ; and ./configure in WRFV3 and, voilá The funny was, when i was searching for the answer, lots of people had the same problem. I hope it helps

instalar netcdf, rgdal y rgeos en R con Elementary (Ubuntu 14)

Imagen
Creé este post por que me dio mas problemas de lo que me imaginaría hay que instalar las librerías netcdf Luego instalar los paquetes en R y listo

Open Street Map data em Qgis

Imagen
Bom, eu trabalho com +OpenStreetMap   e +QGIS   faz tempo, e eu sempre baixaba dados de Geofabrik. Mas hj aprendi como fazer o proceso direitamente em qgis..... e é tão fácil!!!! Nossa, mais rápido e melhor que baixar um shapefile... Preciso dados OSM de varias cidades de America do Sul, então, primeiro seleciono o complemento Web -> Open Layer  ->  Open Street Map . Fazer sum na cidade, Lima neste caso ir pra Vetor  ->  Open Street Map e baixar dados do OpenStreetMap com Extensão a partir do mapa na tela .  O nome de arquivo de saida tem que ter a estensão .osm, lima.osm neste caso. Agora, ir para Vetor  ->  Open Street Map  ->  importar Topologia de XML  e procurar o arquivo lima.osm ir para  Vetor  ->  Open Street Map  ->  Exportar Topologia para Spatialite  e procurar o arquivo lima.osm.db, marcar arquivos de polylinhas (neste caso estou proc...

#QGIS Criar Mapa Simple com QGIS

Imagen
1._ Baixar shapefiles de http://www.mapcruzin.com/free-mozambique-maps.htm ou http://www.mapmakerdata.co.uk.s3-website-eu-west-1.amazonaws.com/library/stacks/Africa/Mozambique/index.htm ou http://www.diva-gis.org/gdata 2._ Abrir os shapefiles com QGIS 3._ Selecionar o SRC,  neste caso é Lat Lon WGS 84, EPSG: 4326 (mas em outro caso pode ser coordenadas projetadas em UTM 36 S) 4._ Baixar complemento de Open Layers 5._ Selecionar Open Street Map / OCM LandScape e logo fazer sum na camada de MOZ_boundaries com botom dereito acima da camada 6._ Selecionar escala 1:9.000.000  7._ Clicar um novo compositor de impressão e escrever nome de mapa 8._ Clicar em OK, isto abre nova janela de compositor de impressão 9._ Selecionar em Adicionar mapa 10._ Ajustar o mapa 11._ Adicionar o título 12._ Adicionar escala 13._ Adicionar seta 14._ Exportar o mapa  jpg, png ou otro formato 15._ Olhar mapa 17._ Melhorar...

#ggplot2 e #RColorBrewer. Grafico com escala invertida

Imagen
Para uma apresentação tinha que mostrar uma imagem de fatores de emissão e queria mostrar uma escala com os fatores mais poluentes a os menos com ggplot2 e para a escala usei RColorBrewer .

#ggplot2 #R Simple histograma com media de grupos

Imagen
Soo uma forma simple de fazer um histograma agrupado em ggplot2 para cegos de cores ( Cookbook ).