

[](https://github.com/FilgueirasR/BrazilMet/actions/workflows/R-CMD-check.yaml)
## Overview
**BrazilMet** is an R package designed to facilitate the acquisition and processing of meteorological data from INMET stations. It includes functions for downloading, calculating atmospheric parameters, estimating evapotranspiration, and more. Please, see the package page π https://filgueirasr.github.io/BrazilMet/
---
## π Features
### π₯ Downloading Data
- Automatic weather station data from INMET (daily aggregation).
- Automatic weather station data from INMET (hourly intervals).
- Climatological normals from conventional INMET weather stations.
- Download and Extraction of Maximum Reference Evapotranspiration (ETo) Grids for Brazil (Dias, 2018).
### π€οΈ Atmospheric Parameter Calculations
- Atmospheric pressure calculation based on altitude.
- Psychrometric constant calculation based on atmospheric pressure.
### π§ Evapotranspiration Estimation
- Reference evapotranspiration (ETo) via Hargreaves-Samani.
- Reference evapotranspiration (ETo) via Penman-Monteith FAO-56.
- Potential evapotranspiration (ETp) via Thornthwaite.
- Correction for sunlight hours and the number of days in the month for Thornthwaite ETp.
- Design reference evapotranspiration.
### βοΈ Radiation Parameter Estimation
- Extraterrestrial radiation for daily periods.
- Solar radiation estimation (Angstrom formula & temperature-based methods).
- Clear-sky solar radiation with/without calibrated values.
- Net solar (shortwave) radiation, net longwave radiation, and net radiation.
### π¨ Air Humidity & Wind Speed Parameters
- Mean saturation vapor pressure.
- Actual vapor pressure derived from dew point or relative humidity.
- Vapor pressure deficit and relative humidity calculations.
- Wind speed at 2 meters above ground level.
### π Station Selection & Information
- Automatic weather station (AWS) metadata.
- Selection of AWS stations using an `sf` object.
---
## β‘ Installation
You can install the latest version of **BrazilMet** from GitHub:
wzxhzdk:0
## π Usage Example - ETo estimation
Hereβs a quick example of how to download INMET station data and estimate reference evapotranspiration (ETo) using FAO-56 for multiple stations and years:
wzxhzdk:1
π€ Contributing
We welcome contributions from the community! Whether itβs reporting issues, suggesting improvements, or submitting pull requests, your help is greatly appreciated.
How to contribute:
Fork the repository
Create a new branch (git checkout -b feature-branch)
Make your changes and commit (git commit -m "Description of changes")
Push to your branch (git push origin feature-branch)
Open a pull request
Letβs make BrazilMet even better together! π