GithubHelp home page GithubHelp logo

exterex / noaa Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 1.0 325 KB

Python API for NOAA climate data

Home Page: https://exterex.github.io/noaa

License: MIT License

Python 96.86% TOML 2.33% Dockerfile 0.80%
python python3 python-library api api-wrapper noaa-api noaa noaa-data

noaa's Introduction

Hi ๐Ÿ‘‹, I'm Andreas Sagen

A passionate toxicology student from Norway. Work in molecular and cellular toxicology on in vitro studies of the immunotoxic effects from exposure to nanoplastics.

Connect with me:

andreas-sagen exterex

Languages and Tools:

arduino azure bash c cplusplus docker git go jekyll linux matlab opencv pandas python pytorch scikit_learn seaborn tensorflow

Profile summary:

Metrics

noaa's People

Contributors

dependabot[bot] avatar exterex avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

petingo

noaa's Issues

Coverage

Add coverage testing to Github actions.

Bad date parameters in `get_data`

  • Version: main branch head, but looks like it affects v0.1.0rc2 too
  • Platform: Windows 10
  • Subsystem:

The get_data method isn't working because it uses malformed date parameters. This happens within _call_api when _full_time==True because it appends a time stamp here and here onto the ISO-formatted datetime that already includes a timestamp.

For example, datetime.datetime.fromisoformat("2000-01-01").isoformat() returns '2000-01-01T00:00:00', so manually appending a timestamp results in an invalid datetime '2000-01-01T00:00:00T00:00:00' and causes the server to return a 400 error.

Just having get_data call _call_api with _full_time=False fixes the issue, but maybe that option can be removed entirely if there's no need for datetimes without a timestamp. This has been a really helpful package, so I'm happy to make a PR for this is you want.

Whether API

Include an API interface to NOAA's weather services.

Expand documentation

The sphinx documentation needs expansion. Needs to include allowed values, etc. in documentation.rst, and examples of how to use the code. A minimum of one simple example in index.rst and potentially a few more intermediate to advanced uses in examples.rst.

Import broken on main branch

Hi @exTerEX, this is a cool project, but it looks like there's some leftover code in the main branch that breaks imports if you install from source, and might be exposing an API key.

Running import noaa after installing with python -m pip install git+https://github.com/exTerEX/noaa.git#egg=noaa throws:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\Aaron\miniconda3\envs\geostats\lib\site-packages\noaa\__init__.py", line 1, in <module>
    import noaa
  File "C:\Users\Aaron\miniconda3\envs\geostats\lib\site-packages\noaa\climate.py", line 624, in <module>
    noaaobj = NOAA("xxxxxxxxxxxx")
NameError: name 'NOAA' is not defined

I redacted the actual key in the exception above.

Bug in get_data command

There is a known bug in the climate.NOAA function that lead to an error where urllib sends back a HTTP Error 400. Investigating the cause for this error.

Date-time ISO input

Include the other supported format for input in get_data, and add breaks to other functions to force correct behavior.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.