Skip to main content

This package aims to make it easier to find the weather station in the INMET database closest to the desired location.

Project description

IWS Logo

IWS - Inmet Weather Stations

Python package for processing and analyzing data from INMET weather stations.

Python 3.12+ License: MIT Status: Active Docs: Available


📦 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


🤝 Contributing

Contributions are welcome!

  1. Fork the repository
  2. Create a branch (git checkout -b feature/new-feature)
  3. Commit your changes (git commit -m 'Add new feature')
  4. Push to the branch (git push origin feature/new-feature)
  5. Open a Pull Request

Please ensure the branch name follows the patterns:

  • feature/your-feature-name for new features
  • bugfix/your-bugfix-name for bug fixes
  • hotfix/your-hotfix-name for urgent fixes
  • docs/your-docs-update for documentation updates
  • improvement/your-improvement-name for 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

inmet_ws-0.2.0.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

inmet_ws-0.2.0-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

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

Hashes for inmet_ws-0.2.0.tar.gz
Algorithm Hash digest
SHA256 24cecacb7031fb728df9c2fe03bb1237b2ceb18238008432cb717dafd80026b3
MD5 2e6fd98795be8cb808dc61b4f7d54716
BLAKE2b-256 96df5bf56898598e832be335656b7e7b5b4cf3fbaddea160ef0b4333edf1ee28

See more details on using hashes here.

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

Hashes for inmet_ws-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bf0816d835d33f04d5a2c74d265842022442488d2563784a882e42e7bd908af2
MD5 fba992b930202acb12d65a0f749ff449
BLAKE2b-256 f91945eae40591a4460b97f19407f49ca818cfe99c09be51b1d3f37fdff7ddcd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page