Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

knmi-py

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

knmi-py

A Python API wrapper for KNMI data

  • 0.1.10
  • PyPI
  • Socket score

Maintainers
1

KNMI-py

Python wrapper to fetch and parse observations from KNMI, either as csv or Pandas DataFrame

See http://knmi.nl/kennis-en-datacentrum/achtergrond/data-ophalen-vanuit-een-script

Note: This library is not affiliated in any way with KNMI, it only uses the KNMI API to request data.

Currently only daily data is implemented.

Installation

KNMI-py is available via pip.

python -m pip install knmi-py

5 Functions

  • knmi.get_day_data_raw(stations, start, end, inseason, variables)
  • knmi.get_day_data_dataframe(stations, start, end, inseason, variables)
  • knmi.get_hour_data_raw(stations, start, end, inseason, variables)
  • knmi.get_hour_data_dataframe(stations, start, end, inseason, variables)
  • knmi.get_forecast_dataframe(station, conform_values, variables)

Metadata

Don't know which station number you need, or what the variables mean? We got you covered:

  • knmi.stations provides a list of all available stations
  • knmi.variables provides a list of all variables and explanations

Metadata included in DataFrame

All raw data is included as argument to the DataFrame (however, the data is lost once you start manipulating the frame, so you'll have to copy it)

Example

import knmi
df = knmi.get_day_data_dataframe(stations=[260])
print(df.disclaimer)
print(df.stations)
print(df.legend)
df = df.rename(columns=df.legend)
print(df)

Disclaimer

The KNMI-py Python library is not affiliated, created or maintained by KNMI. It merely uses the KNMI API to request data.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc