Skip to main content

metloom

https://img.shields.io/pypi/v/metloom.svg Testing Status Documentation Status Code Coverage

Location Oriented Observed Meteorology

metloom is a python library created with the goal of consistent, simple sampling of meteorology and snow related point measurments from a variety of datasources across the Western US.

Warning - This software is provided as is (see the license), so use at your own risk. This is an opensource package with the goal of making data wrangling easier. We make no guarantees about the quality or accuracy of the data and any interpretation of the meaning of the data is up to you.

  • Free software: BSD license

Features

  • Sampling of daily, hourly, and snow course data

  • Searching for stations from a datasource within a shapefile

  • Current data sources:

Requirements

python >= 3.7

Install

python3 -m pip install metloom

Local install for dev

The recommendation is to use virtualenv, but other local python environment isolation tools will work (pipenv, conda) .. code-block:: bash

python3 -m pip install –upgrade pip python3 -m pip install -r requirements_dev python3 -m pip install .

Testing

pytest

If contributing to the codebase, code coverage should not decrease from the contributions. Make sure to check code coverage before opening a pull request.

pytest --cov=metloom

Documentation

readthedocs coming soon

https://metloom.readthedocs.io.

Usage Notes

See usage documentation https://metloom.readthedocs.io/en/latest/usage.html

NOTES: PointData methods that get point data return a GeoDataFrame indexed on both datetime and station code. To reset the index simply run df.reset_index(inplace=True)

Extending classes for your own variables

Not all of the available variables for each datasource are implemented within this package. It is easy to extend the classes to add more variables

from datetime import datetime
from metloom.variables import CDECStationVariables:
from metloom.pointdata import CDECPointData


class MyVariables(CDEcStationVariables):
    DEWPT = SensorDescription("36", "Dew Point", "TEMPERATURE, DEW POINT")


class MyCDECPointData(CDECPointData):
    ALLOWED_VARIABLES = MyVariables


MyCDECPointData("TNY", "Tenaya Lake").get_daily_data(
    datetime(2020, 1, 3), datetime(2020, 1, 7), [MyVariables.DEWPT]
)

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2021-09-17)

  • First release on PyPI.

Metadata

Release files for metloom 0.1.3

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

Source distribution (sdist)

Source distribution for metloom 0.1.3
File Size Uploaded Provenance Actions
metloom-0.1.3.tar.gz 28.8 kB Without provenance Details for metloom-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for metloom 0.1.3
File Interpreter ABI Platform Actions
metloom-0.1.3-py2.py3-none-any.whl Python 3, Python 2 none any Details for metloom-0.1.3-py2.py3-none-any.whl

Total release size: 48.8 kB

Release files / metloom-0.1.3.tar.gz

Download URL metloom-0.1.3.tar.gz
Size 28.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4b8a6eade762048dcedfd639bc816ac8c96c300e57a6bd9756bfe35b0c33653c
BLAKE2b-256 checksum
How to use checksums
1cfb1020fd598d1878343d37180303d64b7254a12ffd21700f8b875297fbf29c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / metloom-0.1.3-py2.py3-none-any.whl

Download URL metloom-0.1.3-py2.py3-none-any.whl
Size 19.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
e3d263adda6c98a70c4c012478133c866ee7842e95371a2c2c1f29c3f98fc1c0
BLAKE2b-256 checksum
How to use checksums
a1f28415f785e87c0cd335a81a7d2f593bf1661b646b093cf402bebe81060e78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Security for metloom 0.1.3

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.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files No provenance

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