title: “ratmos model” author: “Sergio Ibarra-Espinosa” date: “7 de Septiembre de 2018” output: html_document —

Travis-CI Build Status AppVeyor Build Status Coverage Status CRAN_Status_Badge CRAN Downloads Package Status Github Stars

Package to process meteorological data. I included converting your data from NetCDF atmospheric models to raster with special functions to WRF and RegCM. Now included some meteorological function such as wind_shear and lcl


ratmos can be installed via github



  • Put the path of your netcdf file.
r <- raster_nc("file.nc")
r <- raster_wrf("file.nc")
r <- raster_regcm("file.nc") #experimental
  • Extract your info in a data.frame in long format.
data(cetesb) #SpatialPointsDataFrame
df <- xtractor(x = r,                      # raster
               points = cetesb,            # SpatialPointsDataFrame
               station = cetesb$Station,   # Name of each point
               start = "2016-04-15 00:00") # First hour
  • Download climate index
b <- get_all_index(olr = FALSE)
ggplot(b, aes(x = Date, y = index, colour = index)) + geom_line()+
facet_wrap(~name, ncol = 2, scales = "free") + theme_bw() +
scale_colour_gradientn(colours = rev(cpt(find_cpt("cb_div_RdB")[2])), limit = c(-4.6, 4.6))

Please, READ THE DOCUMENTATION: https://ibarraespinosa.github.io/ratmos/

Thanks and enjoy ratmos!


If you encounter any issues while using ratmos, please submit your issues to: https://github.com/ibarraespinosa/ratmos/issues/ If you have any suggestions just let me know to sergio.ibarra@usp.br.


Contributions of all sorts are welcome, issues and pull requests are the preferred ways of sharing them. When contributing pull requests, please follow the Google’s R Style Guide. This project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.