Collection of things that may help with processing weather data.
Project description
pyIEM
A collection of python code that support various other python projects I have and the Iowa Environmental Mesonet. A goal here is to upstream anything useful into Unidata's MetPy and also remove any redundant code.
Current release info
Name | Downloads | Version | Platforms |
---|---|---|---|
Dependencies
Python 3.9+ is required. Python releases 3.9 through 3.11 are actively tested and supported within this repository.
The codebase currently makes direct database calls with hardcoded assumptions
of the hostname iemdb.local
and database names. Someday, I'll use a proper ORM
and software design techniques to make this more extensible for others!
Installation
Since this library depends on Cartopy
, you likely do not want to let pip
install Cartopy
. So the installation options are either:
- Install
Cartopy
via some other mechanism thanpip
. - Install
pyiem
via pip.
Or:
- Install
pyiem
viaconda
using theconda-forge
channel.
How to use NWS product ingestors
This library provides a number of parsers for various NWS products. The implementation of these parsers can be found with my pyWWA project. The main limitation is that the pyWWA
parsers use Twisted Python and thus have a somewhat steep learning curve. The pyIEM
parsers do not require the usage of Twisted though, so how does one use them?
The general entry point for a text product is the parser
method of pyiem.nws.products
. So given a NWS text file, the code would look like.
from pyiem.nws.products import parser
text = open('MYFILE.txt').read()
prod = parser(text)
print(prod.get_product_id())
The actual methods and attributes on the prod
object above will vary depending on the type of product involved.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pyiem-1.21.0.tar.gz
.
File metadata
- Download URL: pyiem-1.21.0.tar.gz
- Upload date:
- Size: 34.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f8f563ba6e5a96a0ff94aa7455e399ff315ea2cbd74a143cf6179def7d7821f |
|
MD5 | 5ef89b8186d4004d319a267081eb6291 |
|
BLAKE2b-256 | a289f567231da92d5357f068eb4a1e41165555c1d1cd9e755200f5732e9b451f |