{"id":32383305,"url":"https://github.com/gustavobio/brclimate","last_synced_at":"2025-10-25T01:54:39.065Z","repository":{"id":44678913,"uuid":"55720412","full_name":"gustavobio/brclimate","owner":"gustavobio","description":"Scrape Brazilian climate data","archived":false,"fork":false,"pushed_at":"2021-07-05T19:26:06.000Z","size":103,"stargazers_count":20,"open_issues_count":5,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-03-15T13:21:01.096Z","etag":null,"topics":["brazil","climate","climate-data","climatology","inmet","inpe"],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gustavobio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-07T19:02:16.000Z","updated_at":"2024-01-11T15:15:22.000Z","dependencies_parsed_at":"2022-09-07T02:52:27.865Z","dependency_job_id":null,"html_url":"https://github.com/gustavobio/brclimate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gustavobio/brclimate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavobio%2Fbrclimate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavobio%2Fbrclimate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavobio%2Fbrclimate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavobio%2Fbrclimate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gustavobio","download_url":"https://codeload.github.com/gustavobio/brclimate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavobio%2Fbrclimate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280893608,"owners_count":26409279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-24T02:00:06.418Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["brazil","climate","climate-data","climatology","inmet","inpe"],"created_at":"2025-10-25T01:53:57.913Z","updated_at":"2025-10-25T01:54:39.058Z","avatar_url":"https://github.com/gustavobio.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# brclimate\n\nThis R package includes a set of tools for scraping climate data from INPE http://sinda.crn2.inpe.br/PCD/SITE/novo/site/index.php and INMET http://www.inmet.gov.br/portal/. The code here can become outdated quickly due to changes in the source, so please fork it and submit a pull request if you fix anything locally.\n\n## Installation\n```coffee\n## You will need to install the latest R version. You will also need Rtools if\n## running Windows.\ninstall.packages(\"devtools\")\ndevtools::install_github(\"gustavobio/brclimate\")\n```\n\n## Usage:\n\nList all INPE climate stations:\n```coffee\ninpe_stations()\n     ID state             locality\n1 32105    AC         Assis Brasil\n2 32392    AC            Brasileia\n3 32383    AC      Cruzeiro do Sul\n4 32076    AC      Cruzeiro do Sul\n5 32106    AC Fazenda Santo Afonso\n6 32083    AC                Feijo\n...\n        ID state                 locality\n997  30870    TO        Rio Santo Antonio\n998  30873    TO         Rio Sao Martinho\n999  30869    TO                Rio Urubu\n1000 32307    TO           Tocantinopolis\n1001 32549    TO UHE Isamu Ikeda Montante\n1002 32619    TO                  Xambioa\n```\n\nList all INMET climate stations:\n```coffee\ninmet_stations(username, password)\n    ID      locality state    lat   long\n1 82294        ACARAU    CE  -2.88 -40.13\n2 82989   AGUA BRANCA    AL  -9.28 -37.90\n3 83595       AIMORES    MG -19.49 -41.07\n4 83249    ALAGOINHAS    BA -12.28 -38.54\n5 82353      ALTAMIRA    PA  -3.21 -52.21\n6 82970 ALTO PARNAIBA    MA  -9.10 -45.93\n...\n        ID                            locality state    lat   long\n260 82870 VALE DO GURGUEIA (CRISTIANO CASTRO)    PI  -8.41 -43.71\n261 83642                              VICOSA    MG -20.75 -42.85\n262 83648                             VITORIA    ES -20.31 -40.31\n263 83344                VITORIA DA CONQUISTA    BA -14.88 -40.79\n264 83623                         VOTUPORANGA    SP -20.41 -49.98\n265 82376                             ZE DOCA    MA  -3.26 -45.65\n```\n\nGet the coordinates of a given station (INPE only so far):\n```coffee\ninpe_station_coordinates(station_id = 31973)\n    lat    long \n-22.169 -47.893 \n```\n\nOrder stations by their distances to a given coordinate:\n```coffee\nnearest_stations(lat = -22.41, long = -42.01, source = \"both\")\n       ID state               locality     lat    long source  distance\n705  31956    RJ   Santa Maria Madalena -21.953 -42.005   inpe  50.81869\n1209 83718    RJ              CORDEIRO  -22.010 -42.350  inmet  56.59830\n708  31954    RJ            Teresopolis -22.407 -42.793   inpe  80.49186\n707  32655    RJ            Sao Fidelis -21.650 -41.750   inpe  88.65575\n706  32656    RJ Santo Antonio de Padua -21.533 -42.183   inpe  99.13623\n1208 83698    RJ                CAMPOS  -21.750 -41.330  inmet 101.46529\n...\n```\n```coffee\nnearest_stations(lat = -22.41, long = -42.01, source = \"inpe\")\n       ID state               locality     lat    long source  distance\n705 31956    RJ   Santa Maria Madalena -21.953 -42.005   inpe  50.81869\n708 31954    RJ            Teresopolis -22.407 -42.793   inpe  80.49186\n707 32655    RJ            Sao Fidelis -21.650 -41.750   inpe  88.65575\n706 32656    RJ Santo Antonio de Padua -21.533 -42.183   inpe  99.13623\n433 32510    MG             Leopoldina -21.468 -42.723   inpe 127.98307\n695 69151    RJ      Baia de Guanabara -22.891 -43.145   inpe 128.16467\n```\n```coffee\nnearest_stations(lat = -22.41, long = -42.01, source = \"inmet\")\n        ID state                locality    lat   long source distance\n1209 83718    RJ               CORDEIRO  -22.01 -42.35  inmet  56.5983\n1208 83698    RJ                 CAMPOS  -21.75 -41.33  inmet 101.4653\n1212 83743    RJ         RIO DE JANEIRO  -22.88 -43.18  inmet 130.9486\n1210 83695    RJ              ITAPERUNA  -21.20 -41.90  inmet 135.0242\n1207 83049    RJ  AVELAR (P.DO ALFERES)  -22.35 -43.41  inmet 144.1015\n1121 83692    MG           JUIZ DE FORA  -21.76 -43.35  inmet 155.8410\n```\n\nGet the data:\n```coffee\ninpe_station_data(station_id = 31973, start_date = \"2005/01/01\", end_date  = \"2007/02/02\")\n          Data     Hora Bateria ContAguaSolo100 ContAguaSolo200 ContAguaSolo400 CorrPSol DirVelVentoMax DirVento Pluvio PressaoAtm RadSolAcum TempAr TempMax TempMin TempSolo100 TempSolo200 TempSolo400 UmidInt UmidRel VelVento10m VelVentoMax\n252 2005-01-01 00:00:00    12.5            0.45            0.48            0.48        0            150      140      0        929          0   16.5    33.5    10.5          22          23          23       0      76         1.6         6.2\n251 2005-01-01 03:00:00    12.5            0.45            0.48            0.48        0            150      170      0        928          0   16.0    33.5    10.5          22          23          23       0      84         2.9         6.2\n250 2005-01-01 06:00:00    12.5            0.45            0.48            0.48        0            150      140      0        929          0   16.5    33.5    10.5          22          23          23       0      76         1.6         6.2\n249 2005-01-01 09:00:00      NA              NA            0.00              NA       NA             NA      140      0        929          0   16.5      NA      NA          NA          NA           0      NA      76         1.6          NA\n248 2005-01-01 12:00:00    12.5            0.45            0.48            0.48        0            150      140      0        929          0   16.5    33.5    10.5          22          23          23       0      76         1.6         6.2\n247 2005-01-01 15:00:00    12.5            0.45            0.48            0.48        0            150      140      0        929          0   16.5    33.5    10.5          22          23          23       0      76         1.6         6.2\n246 2005-01-01 18:00:00    12.5            0.45            0.48            0.48        0            150      140      0        929          0   16.5    33.5    10.5          22          23          23       0      76         1.6         6.2\n245 2005-01-01 21:00:00    12.5            0.45            0.48            0.48        0            150      140      0        929          0   16.5    33.5    10.5          22          23          23       0      76         1.6         6.2\n244 2005-01-02 00:00:00    12.5            0.45            0.48            0.48        0            150      140      0        929          0   16.5    33.5    10.5          22          23          23       0      76         1.6         6.2\n243 2005-01-02 03:00:00    12.5            0.45            0.48            0.48        0            150      140      0        929          0   16.5    33.5    10.5          22          23          23       0      76         1.6         6.2\n242 2005-01-02 06:00:00    12.5            0.45            0.48            0.48        0            150      140      0        929          0   16.5    33.5    10.5          22          23          23       0      76         1.6         6.2\n241 2005-01-02 09:00:00    12.5            0.45            0.48            0.48        0            150      140      0        929          0   16.5    33.5    10.5          22          23          23       0      76         1.6         6.2\n240 2005-01-02 12:00:00    12.5            0.45            0.48            0.48        0            150      140      0        929          0   16.5    33.5    10.5          22          23          23       0      76         1.6         6.2\n239 2005-01-02 15:00:00    12.5            0.45            0.48            0.48        0            150      140      0        929          0   16.5    33.5    10.5          22          23          23       0      76         1.6         6.2\n238 2005-01-02 18:00:00    12.5            0.45            0.48            0.48        0            150      140      0        929          0   16.5    33.5    10.5          22          23          23       0      76         1.6         6.2\n237 2005-01-02 21:00:00    12.5            0.45            0.48            0.48        0            150      140      0        929          0   16.5    33.5    10.5          22          23          23       0      76         1.6         6.2\n236 2005-01-03 00:00:00    12.5            0.45            0.48            0.48        0            150      140      0        929          0   16.5    33.5    10.5          22          23          23       0      76         1.6         6.2\n235 2005-01-03 03:00:00    12.5            0.45            0.48            0.48        0            150      140      0        929          0   16.5    33.5    10.5          22          23          23       0      76         1.6         6.2\n234 2005-01-03 06:00:00    12.5            0.45            0.48            0.48        0            150      140      0        929          0   16.5    33.5    10.5          22          23          23       0      76         1.6         6.2\n233 2005-01-03 09:00:00    12.5            0.45            0.48            0.48        0            150      140      0        929          0   16.5    33.5    10.5          22          23          23       0      76         1.6         6.2\n232 2005-01-03 12:00:00    12.5            0.45            0.48            0.48        0            150      140      0        929          0   16.5    33.5    10.5          22          23          23       0      76         1.6         6.2\n231 2005-01-03 15:00:00    12.5            0.45            0.48            0.48        0            150      170      0        928          0   16.0    33.5    10.5          22          23          23       0      84         2.9         6.2\n```\n\n```coffee\ninmet_station_data(station_id = 83726, username = username, password = password)\n  Estacao       Data Hora NebulosidadeMedia NumDiasPrecipitacao PrecipitacaoTotal PressaoMedia TempMaximaMedia TempCompensadaMedia TempMinimaMedia UmidadeRelativaMedia\n1   83726 31/01/1961 0000          6.586957                  19             186.7     915.3217        26.86129            22.05742        17.93548             86.25000\n2   83726 28/02/1961 0000          6.571429                  25             284.6     917.2940        26.65357            21.81071        17.80357             81.77679\n3   83726 31/03/1961 0000          5.408602                  14             177.0     918.1570        27.63871            22.20000        17.32258             74.69355\n4   83726 30/04/1961 0000          4.866667                   8              53.1     918.5633        26.77000            21.37133        16.36333             72.09167\n5   83726 31/05/1961 0000          4.010753                   6              78.0     920.5935        24.67097            18.95613        13.53871             70.51613\n6   83726 30/06/1961 0000          4.133333                   3               5.0     922.1756        23.59000            18.08667        13.01333             66.82500\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgustavobio%2Fbrclimate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgustavobio%2Fbrclimate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgustavobio%2Fbrclimate/lists"}