An Interface to the 'CPTEC/INPE' API

Allows to retrieve data from the 'CPTEC/INPE' weather forecast API. 'CPTEC' stands for 'Centro de Previsão de Tempo e Estudos Climáticos' and 'INPE' for 'Instituto Nacional de Pesquisas Espaciais'. 'CPTEC' is the most advanced numerical weather and climate forecasting center in Latin America, with high-precision short and medium-term weather forecasting since the beginning of 1995. See < http://www.cptec.inpe.br/> for more information.


cptec

The goal of cptec is to allows the user to retrieve data from the CPTEC/INPE weather forecast API. CPTEC stands for 'Centro de Previsão de Tempo e Estudos Climáticos' and INPE for 'Instituto Nacional de Pesquisas Espaciais'. CPTEC is the most advanced numerical weather and climate forecasting center in Latin America, with high-precision short and medium-term weather forecasting since the beginning of 1995. See http://www.cptec.inpe.br/ for more information.

Installation

Install the release version from CRAN:

install.packages("cptec")

or the development version from github

devtools::install_github("rpradosiqueira/cptec")

Functions

The "cptec" package contains the functions:

prev4dias          It retrieve 4 days weather forecast data
                   according to the 'id' provided
                   
prev7dias          It retrieve 7 days weather forecast data
                   according to the 'id' provided
                   
listaCidades       It allows the user to discover which are
                   the city`s ID of interest
 
metar              It allows the user to retrieve data from
                   airport surface stations
                   
ondas              It allows the user to retrieve data from
                   sea waves
                   
prevEstendida      It retrieve 14 days weather forecast data
                   according to the 'id' provided
                    
prevLatLon         It retrieve 7 days weather forecast data
                   according to the latitude/longitude provided
                   
estendidaLatLon    It retrieve 14 days weather forecast data
                   according to the latitude/longitude provided
                   
iuv                It retrieve the last updated data from CPTEC/INPE
                   ultra violet index for a determined city
                   
estacoes_metar     List "Metar" initials and descriptions
 
condicoes_tempo    List "tempo" descriptions
 
capitais           It allows the user to retrieve data from
                   current weather conditions of capitals

Example

Let's assume that we want the next 7 days weather forecast for the city of Rio de Janeiro/RJ. To do this simply execute:

library(cptec)
 
prev7days(id = 241)

News

cptec 0.1.0

  • Initial version.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("cptec")

0.1.0 by Renato Prado Siqueira, 2 years ago


http://github.com/rpradosiqueira/cptec


Report a bug at http://github.com/rpradosiqueira/cptec/issues


Browse source code at https://github.com/cran/cptec


Authors: Renato Prado Siqueira [aut, cre]


Documentation:   PDF Manual  


GPL-3 license


Imports magrittr, rvest, xml2

Suggests knitr


See at CRAN