This package aims to make it easier to find the weather station in the INMET database closest to the desired location.
Project description
IWS - Inmet Weather Stations
Python package for processing and analyzing data from INMET weather stations.
📦 Installation
Install the package using pip:
pip install iws
🚀 Basic Usage
from iws import InmetStations, get_climate_data, GeoCoordinates, Distance
stations = InmetStations()
# List available stations
print(stations.list())
# Retrieve data from a specific station
station = stations["A001"] # Replace "A001" with the desired station code
print(station)
data = get_climate_data(station=station, start_date="2023-01-01", end_date="2023-12-31")
print(data.head())
# Find the three nearest operating stations to given coordinates
coords = GeoCoordinates(latitude=-23.55052, longitude=-46.633308, n_nearest=3, only_operating=True)
nearest_stations = stations.find_nearest(coords)
print(nearest_stations)
# Find the stations around given coordinates within a 50 km radius
nearby_stations = stations.find_around(coords, maximum_distance=Distance(50, "km"))
print(nearby_stations)
🌦️ Features
- 📊 Download and process historical data from INMET
- 🌍 Support for multiple weather stations
- ⚡ Optimized functions for analysis with pandas and numpy
- 📈 Ready for integration with notebooks and dashboards
📚 Documentation
- API Reference - Complete API documentation
- Project Wiki - General information and guides
🤝 Contributing
Contributions are welcome!
- Fork the repository
- Create a branch (
git checkout -b feature/new-feature) - Commit your changes (
git commit -m 'Add new feature') - Push to the branch (
git push origin feature/new-feature) - Open a Pull Request
Please ensure the branch name follows the patterns:
feature/your-feature-namefor new featuresbugfix/your-bugfix-namefor bug fixeshotfix/your-hotfix-namefor urgent fixesdocs/your-docs-updatefor documentation updatesimprovement/your-improvement-namefor code improvements
📜 License
Distributed under the MIT License.
See the LICENSE file for more information.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file inmet_ws-0.2.0.tar.gz.
File metadata
- Download URL: inmet_ws-0.2.0.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.12.3 Linux/6.14.0-33-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24cecacb7031fb728df9c2fe03bb1237b2ceb18238008432cb717dafd80026b3
|
|
| MD5 |
2e6fd98795be8cb808dc61b4f7d54716
|
|
| BLAKE2b-256 |
96df5bf56898598e832be335656b7e7b5b4cf3fbaddea160ef0b4333edf1ee28
|
File details
Details for the file inmet_ws-0.2.0-py3-none-any.whl.
File metadata
- Download URL: inmet_ws-0.2.0-py3-none-any.whl
- Upload date:
- Size: 16.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.12.3 Linux/6.14.0-33-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf0816d835d33f04d5a2c74d265842022442488d2563784a882e42e7bd908af2
|
|
| MD5 |
fba992b930202acb12d65a0f749ff449
|
|
| BLAKE2b-256 |
f91945eae40591a4460b97f19407f49ca818cfe99c09be51b1d3f37fdff7ddcd
|