lhmet / inmetr Goto Github PK
View Code? Open in Web Editor NEWDEPRECATED A R-package to Import Historical Data from Brazilian Meteorological Stations
License: Other
DEPRECATED A R-package to Import Historical Data from Brazilian Meteorological Stations
License: Other
Hi,
I'm trying to run the README.md example but I got this error wen trying to import data:
------------------------------
station: 83936
OK (HTTP 200).
Error in (rowheader + 1):(length(x) - 1) : argument of length 0
My code is:
stations <- c("Santa Maria", "Macapá")
stations_rows <- pmatch(stations, bdmep_meta$name)
stns_codes <- bdmep_meta[stations_rows, "id"]
# the line that returns this error
met_data <- bdmep_import(id = stns_codes,
sdate = "01/01/2012",
edate = "01/02/2012",
destdir = 'C:/',
email = "[email protected]",
passwd = "666",
verbose = T)
Is this problem related to the code (in the example)? or with any change in the location or format of the data (I saw that the site has changed its address)?
Thank you,
Daniel
Some stations are not listed in inmetr::bdmep_meta dataset. The stations are missing from original file (http://www.inmet.gov.br/webcdp/climatologia/normais/imagens/normais/planilhas/Relac_Est_Meteo_NC.xls) as well, but they are listed at http://www.inmet.gov.br/sim/sonabra/index.php. The meteorological information is in BDMEP and can be downloaded through the package bypassing "all(id %in% inmetr::bdmep_meta$id)" in bdmep_import.
Hello!
This code it's awesome! It's work to get some information about two stations.
However, when I try to get informations about 10 stations, I received this text:
Error in curl::curl_fetch_memory(url, handle = handle) :
Failed to connect to www.inmet.gov.br port 80: Timed out
Now I can't get mor informations.
Do you know how can I solve this?
Thanks!
Erro ao tentar puxar os dados da estação da cidade do Rio de Janeiro.
info <- bdmep_stations()
start_date <- "01/01/1961"
end_date <- format(Sys.Date(), "%d/%m/%Y")
sm <- import_bdmep(id = 83743,
sdate = start_date,
edate = end_date,
email = "[email protected]",
passwd = "minhasenha")
Login sucessfull.
Erro: `replacement` must be a character vector
I'm getting this message when I try to import:
station: 83579
Bad Request (HTTP 400).
my script:
library(inmetr)
head(bdmep_meta)
sort(unique(bdmep_meta$name))
stations<-c("Araxá")
stations_rows<-pmatch(stations, bdmep_meta$name)
bdmep_meta[stations_rows,]
stns_cods<- bdmep_meta[stations_rows,'id']
start_date <- "01/01/1961"
end_date <- format(Sys.Date(),' %d/%m/%Y')
met_data <- bdmep_import(id=stns_cods, sdate = start_date, edate = end_date, email= "myemail", passwd='mypass', verbose=T)
(just to be clear, my e-mail and password work fine on the BDMEP website)
I get bad request for all stations I've tried.
I followed the instructions, which were very clear... what I am doing wrong?
Thanks
Hello,
Is there a way to tweek a function or a configuration available to download daily or monthly data instead of hourly?
Thanks!
When I use destdir = "path/to/write/files" and open the files downloaded in the specified location. All of the NA values are replaced by the station id.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.