Skip to main content

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.

Metadata

Release files for inmet-ws 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for inmet-ws 0.2.0
File Size Uploaded Provenance Actions
inmet_ws-0.2.0.tar.gz 12.9 kB Without provenance Details for inmet_ws-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for inmet-ws 0.2.0
File Interpreter ABI Platform Actions
inmet_ws-0.2.0-py3-none-any.whl Python 3 none any Details for inmet_ws-0.2.0-py3-none-any.whl

Total release size: 29.3 kB

Release files / inmet_ws-0.2.0.tar.gz

Download URL inmet_ws-0.2.0.tar.gz
Size 12.9 kB
Tags Source
SHA-256 checksum
How to use checksums
24cecacb7031fb728df9c2fe03bb1237b2ceb18238008432cb717dafd80026b3
BLAKE2b-256 checksum
How to use checksums
96df5bf56898598e832be335656b7e7b5b4cf3fbaddea160ef0b4333edf1ee28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.12.3 Linux/6.14.0-33-generic

Release files / inmet_ws-0.2.0-py3-none-any.whl

Download URL inmet_ws-0.2.0-py3-none-any.whl
Size 16.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf0816d835d33f04d5a2c74d265842022442488d2563784a882e42e7bd908af2
BLAKE2b-256 checksum
How to use checksums
f91945eae40591a4460b97f19407f49ca818cfe99c09be51b1d3f37fdff7ddcd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.12.3 Linux/6.14.0-33-generic

Security for inmet-ws 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page