All Projects → lhmet → inmetr

lhmet / inmetr

Licence: other
DEPRECATED A R-package to Import Historical Data from Brazilian Meteorological Stations

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to inmetr

nasapower
API Client for NASA POWER Global Meteorology, Surface Solar Energy and Climatology in R
Stars: ✭ 79 (+338.89%)
Mutual labels:  weather-data, data-access
getCRUCLdata
CRU CL v. 2.0 Climatology Client for R
Stars: ✭ 17 (-5.56%)
Mutual labels:  climate-data, data-access
aprs-weather-submit
Manually submit weather station information to the APRS-IS network.
Stars: ✭ 17 (-5.56%)
Mutual labels:  weather-data, weather-station
acuparse
Captures, stores, and displays data from an AcuRite ‎Iris/Atlas weather station and towers via an Access/smartHUB. Uploads data to Weather Underground, CWOP, Weathercloud, PWS Weather, Windy, Windguru, and OpenWeatherMap. *** MIRROR REPO | See: https://gitlab.com/acuparse/acuparse ***
Stars: ✭ 57 (+216.67%)
Mutual labels:  weather-data, weather-station
hockeystick
Download and Visualize Essential Global Heating Data in R
Stars: ✭ 42 (+133.33%)
Mutual labels:  climate-data
superacao-app
Aplicativo para o projeto "Anjos do SuperAção"
Stars: ✭ 17 (-5.56%)
Mutual labels:  brazil
enredo
Linguagem de programação moderna em portugues, baseada em JS
Stars: ✭ 35 (+94.44%)
Mutual labels:  brazil
OWM-JAPIs
Java APIs for OpenWeatherMap.org
Stars: ✭ 14 (-22.22%)
Mutual labels:  weather-data
dwdweather2
Python client to access weather data from Deutscher Wetterdienst (DWD), the federal meteorological service in Germany.
Stars: ✭ 68 (+277.78%)
Mutual labels:  weather-data
rb3
A bunch of downloaders and parsers for data delivered from B3
Stars: ✭ 52 (+188.89%)
Mutual labels:  brazil
api
Community discussion and documentation for the NWS API
Stars: ✭ 168 (+833.33%)
Mutual labels:  weather-data
nuvem-candidatos
🇧🇷 Nuvem de palavras com os planos de governo dos candidatos à presidência em 2018
Stars: ✭ 20 (+11.11%)
Mutual labels:  brazil
INMET-API-temperature
Crawler dos dados metereológicos de estações convencionais do INMET (BDMEP)
Stars: ✭ 32 (+77.78%)
Mutual labels:  inmet
WeatherHub
Home weather station based on esp8266
Stars: ✭ 19 (+5.56%)
Mutual labels:  weather-station
2019 egu workshop jupyter notebooks
Short course on interactive analysis of Big Earth Data with Jupyter Notebooks
Stars: ✭ 29 (+61.11%)
Mutual labels:  climate-data
era5 in gee
Functions and Python scripts to ingest ERA5 data into Google Earth Engine
Stars: ✭ 63 (+250%)
Mutual labels:  climate-data
python-support.nvim
[DEPRECATED] use a single command :PythonSupportInit to initialize python support for neovim.
Stars: ✭ 25 (+38.89%)
Mutual labels:  deprecated-repo
brazil-civil-registry-data
Raw scrapings of ARPEN https://transparencia.registrocivil.org.br/
Stars: ✭ 35 (+94.44%)
Mutual labels:  brazil
Manual-Iniciante-JavaScript
📗 📒 (PT-BR Tradução) 2020 Edition
Stars: ✭ 33 (+83.33%)
Mutual labels:  brazil
AZ-Touch-Pi0-Weather
AZ-Touch PiZero Weatherstation
Stars: ✭ 31 (+72.22%)
Mutual labels:  weather-station

DEPRECATED - no longer actively maintained

Due to changes in access to the BDMEP-INMET data acquisition system, {inmetr} is no longer supported. See https://portal.inmet.gov.br/noticias/inmet-lan%C3%A7a-novo-portal and consider using https://bdmep.inmet.gov.br/ instead.

inmetr: Historical Data from Brazilian Meteorological Stations in R

DOI Build Status

Overview

inmetr provide access to historical data measured by meteorological stations available in the Meteorological Database for Education and Research (BDMEP) from National Institute of Meteorology (Instituto Nacional de Meteorologia - INMET), Brazil.

Installation

inmetr is easy to install from Git Hub using the devtools package.

library(devtools)
install_github('lhmet/inmetr')

Load package

library(inmetr)

Stations ID

To search a meteorological station from INMET we can use metadata of INMET stations included in inmetr package as bdmep_meta.

head(bdmep_meta)
tail(bdmep_meta)

bdmep_meta is a data frame providing the id of stations, a numeric code defined by OMM. This id is a necessary argument to bdmep_import() function which allows to download data from meteorological stations into R.

Here, we show how to find the OMM code for meteorological stations at two cities (randomly sampled).

#stations <- c("Santa Maria", "Macapá")
stations <- c("Rio de Janeiro", "Goiás")
# random sample of two stations names 
#stations <- sample(bdmep_meta$name, 2)
stations_rows <- pmatch(stations, bdmep_meta$name)
bdmep_meta[stations_rows, ]
stns_codes <- bdmep_meta[stations_rows, "id"] 
stns_codes

Import data

Now we can import data for the two cities from 1961 to the current date.

start_date <- "01/01/1961"
end_date <- format(Sys.Date(), "%d/%m/%Y")
met_data <- bdmep_import(id = stns_codes,
                         sdate = start_date, 
                         edate = end_date, 
                         email = "your-email",
                         passwd = "your-password",
                         verbose = TRUE)
# check de start date
head(met_data)
# check de end date
tail(met_data)

You can save data in a CSV file setting argument destdir = "path/to/write/files" in bdmep_import function. Data will be save one file per station.

A description of meteorological variables can be obtained by:

bdmep_description()

Eventually, if the request failed a message will be prompted with the HTTP status code, for example:

------------------------
station: `r stns_codes[1]`
Bad Gateway (HTTP 502).
------------------------
station: `r stns_codes[2]`
Bad Gateway (HTTP 502).

In this case the outcome data frame will be filled with NA, except for request_status which will return information on the request status.

To cite this software

citation("inmetr")

To cite package 'inmetr' in publications use:

  Tatsch, J.D. 2020. inmetr R package (v 0.2.5): Historical Data from
  Brazilian Meteorological Stations in R. Zenodo.
  https://doi.org/10.5281/zenodo.580813.

A BibTeX entry for LaTeX users is

  @Manual{,
    title = {inmetr: Historical Data from Brazilian Meteorological Stations in R},
    author = {Jonatan Tatsch},
    year = {2020},
    note = {R package version 0.2.5},
    doi = {https://doi.org/10.5281/zenodo.580813},
    institution = {Universidade Federal de Santa Maria-UFSM},
    url = {https://github.com/lhmet/inmetr},
  }
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].