A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

eeweather

Fetch NCDC ISD, TMY3, or CZ2010 weather data that corresponds to ZIP Code Tabulation Areas or Latitude/Longitude.
https://github.com/opendsm/eeweather

Category: Atmosphere
Sub Category: Meteorological Observation and Forecast

Keywords

weather weather-data weather-station

Keywords from Contributors

building-energy efficiency energy-data energy-efficiency

Last synced: about 24 hours ago
JSON representation

Repository metadata

Fetch NCDC ISD, TMY3, or CZ2010 weather data that corresponds to ZIP Code Tabulation Areas or Latitude/Longitude.

README.rst

          EEweather: Weather station wrangling for EEmeter
================================================

.. image:: https://travis-ci.org/openeemeter/eeweather.svg?branch=master
    :target: https://travis-ci.org/openeemeter/eeweather

.. image:: https://img.shields.io/github/license/openeemeter/eeweather.svg
    :target: https://github.com/openeemeter/eeweather

.. image:: https://readthedocs.org/projects/eeweather/badge/?version=latest
    :target: http://eeweather.readthedocs.io/en/latest/?badge=latest

.. image:: https://img.shields.io/pypi/v/eeweather.svg
    :target: https://pypi.python.org/pypi/eeweather

.. image:: https://codecov.io/gh/openeemeter/eeweather/branch/master/graph/badge.svg
  :target: https://codecov.io/gh/openeemeter/eeweather

---------------

**EEweather** — tools for matching to and fetching data from NCEI ISD, TMY3, or CZ2010 weather stations.

EEweather comes with a database of weather station metadata, ZCTA metadata, and GIS data that makes it easier to find the right weather station to use for a particular ZIP code or lat/long coordinate.

`Read the docs. `_

Installation
------------

EEweather is a python package and can be installed with pip.

::

    $ pip install eeweather

Supported Sources of Weather Data
---------------------------------

- NCEI Integrated Surface Database (ISD)
- Global Summary of the Day (GSOD)
- NREL Typical Meteorological Year 3 (TMY3)
- California Energy Commission 1998-2009 Weather Normals (CZ2010)

Features
--------

- Match by ZIP code (ZCTA) or by lat/long coordinates
- Use user-supplied weather station mappings
- Match within climate zones

  - IECC Climate Zones
  - IECC Moisture Regimes
  - Building America Climate Zones
  - California Building Climate Zone Areas

- User-friendly SQLite database of metadata compiled from primary sources

  - US Census Bureau (ZCTAs, county shapefiles)
  - Building America climate zone county lists
  - NOAA NCEI Integrated Surface Database Station History
  - NREL TMY3 site

- Plot maps of outputs

Contributing
------------

Dev installation::

    $ pipenv --python 3.6.4  # create virtualenv with python 3.6.4
    $ pipenv install --dev   # install dev requirements with pipenv
    $ pipenv install -e .    # install package in editable mode
    $ pipenv shell           # activate pipenv virtual environment

Build docs::

    $ make -C docs html

Autobuild docs::

    $ make -C docs livehtml

Check spelling in docs::

    $ make -C docs spelling

Run tests::

    $ pytest

Run tests on multiple python versions::

    $ tox

Upload to pypi (using twine)::

    $ python setup.py upload

Use with Docker
---------------

To use with docker-compose, use the following:

Run a tutorial notebook (copy link w/ token, open tutorial.ipynb)::

    $ docker-compose up jupyter

Live-edit docs::

    $ docker-compose up docs

Open a shell::

    $ docker-compose run --rm shell

Run tests::

    $ docker-compose run --rm test

Run the CLI::

    $ docker-compose run --rm eeweather --help


Notice Regarding CZ2010 Data
----------------------------

There may be conditions placed on their international commercial use.
They can be used within the U.S. or for non-commercial international activities without restriction.
The non-U.S. data cannot be redistributed for commercial purposes.
Re-distribution of these data by others must provide this same notification.

See `further explanation `_ here. 

Metadata Yearly Updates
-----------------------
Every year, the metadata database needs to be updated. This can be done by running:

```
docker-compose run --rm eeweather rebuild-db
```

        

Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 6 days ago

Total Commits: 251
Total Committers: 12
Avg Commits per committer: 20.917
Development Distribution Score (DDS): 0.53

Commits in past year: 15
Committers in past year: 3
Avg Commits per committer in past year: 5.0
Development Distribution Score (DDS) in past year: 0.533

Name Email Commits
Phil Ngo n****l@g****m 118
Stephen Suffian s****e@o****o 57
Stephen Suffian s****n@g****m 47
Jason Chulock j****n@r****m 12
Craig Maloney c****g@d****t 6
Steve s****e@r****m 3
Arpan Kotecha a****n@o****o 3
hshaban h****n@g****m 1
Phil Ngo p****l@r****m 1
Peter Karman p****n@g****m 1
Cody Smith c****y@c****y 1
Vikhyati Singh v****i@o****o 1

Committer domains:


Issue and Pull Request metadata

Last synced: 2 days ago

Total issues: 19
Total pull requests: 78
Average time to close issues: 5 months
Average time to close pull requests: 17 days
Total issue authors: 17
Total pull request authors: 14
Average comments per issue: 3.26
Average comments per pull request: 0.99
Merged pull request: 67
Bot issues: 0
Bot pull requests: 6

Past year issues: 0
Past year pull requests: 8
Past year average time to close issues: N/A
Past year average time to close pull requests: 8 days
Past year issue authors: 0
Past year pull request authors: 3
Past year average comments per issue: 0
Past year average comments per pull request: 0.13
Past year merged pull request: 8
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/opendsm/eeweather

Top Issue Authors

  • craigmaloney (2)
  • jakesherman (2)
  • andrew-mcharg-tendril (1)
  • DLDonaldson (1)
  • zf1990 (1)
  • chrisnmills (1)
  • EthanGoldman (1)
  • OneGeek (1)
  • jfenna (1)
  • knithin3 (1)
  • bhough199 (1)
  • enovity (1)
  • michaelsuhl11 (1)
  • amrutatkulkarni (1)
  • samuelduchesne (1)

Top Pull Request Authors

  • ssuffian (31)
  • philngo (22)
  • jason-recurve (8)
  • dependabot[bot] (6)
  • craigmaloney (2)
  • Philippe06011957 (1)
  • arpankotecha (1)
  • hshaban (1)
  • EnergySRE (1)
  • toshi09 (1)
  • pkarman (1)
  • jfenna (1)
  • philngo-recurve (1)
  • andrew-mcharg-tendril (1)

Top Issue Labels

Top Pull Request Labels

  • dependencies (6)

Dependencies

Pipfile pypi
  • Sphinx * develop
  • black ==18.6b4 develop
  • coverage * develop
  • pytest * develop
  • pytest-cov * develop
  • pytest-xdist * develop
  • snapshottest git://github.com/syrusakbary/snapshottest.git#54117098bd756c0fa6936f3bafab4bf85c58e943 develop
  • sphinx-autobuild * develop
  • sphinxcontrib-spelling * develop
  • tox * develop
  • twine * develop
  • typing * develop
  • Cython *
  • Pillow *
  • SQLAlchemy *
  • Shapely *
  • beautifulsoup4 *
  • matplotlib <3.0.0
  • pandas *
  • pyproj *
  • requests *
  • scipy *
  • simplejson *
docs/rtd-requirements.txt pypi
  • sphinxcontrib-spelling ==4.0.1
Dockerfile docker
  • python 3.6.6-stretch build
docker-compose.yml docker
  • eeweather_shell latest
Pipfile.lock pypi
  • 189 dependencies
setup.py pypi

Score: 6.595780513961312