All Projects → GClunies → noaa_coops

GClunies / noaa_coops

Licence: GPL-3.0 license
Python wrapper for NOAA CO-OPS Tides & Currents Data

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to noaa coops

vlm
Virtual loup de mer (aka Vlm) is an opensource sailing simulation
Stars: ✭ 25 (-34.21%)
Mutual labels:  noaa
GOESplot
Download and plot GOES satellite PNGs and high-resolution NetCDF4 by date/time
Stars: ✭ 15 (-60.53%)
Mutual labels:  noaa
pygac
A python package to read and calibrate NOAA and Metop AVHRR GAC and LAC data
Stars: ✭ 14 (-63.16%)
Mutual labels:  noaa
nmfspalette
🎨 an R color palette for NOAA Fisheries official colors
Stars: ✭ 19 (-50%)
Mutual labels:  noaa
windy-plugins
🚁extend functionality of Windy.com. Develop your plugin in less than 5 minutes.
Stars: ✭ 147 (+286.84%)
Mutual labels:  noaa
hydrotools
Suite of tools for retrieving USGS NWIS observations and evaluating National Water Model (NWM) data.
Stars: ✭ 36 (-5.26%)
Mutual labels:  noaa
hockeystick
Download and Visualize Essential Global Heating Data in R
Stars: ✭ 42 (+10.53%)
Mutual labels:  noaa
gimic
Gauge-including magnetically induced currents.
Stars: ✭ 19 (-50%)
Mutual labels:  currents
raspberry-noaa
Fully automated ISS SSTV, NOAA and Meteor satellite image downloader using Raspberry PI
Stars: ✭ 155 (+307.89%)
Mutual labels:  noaa
api
Community discussion and documentation for the NWS API
Stars: ✭ 168 (+342.11%)
Mutual labels:  noaa
aprs-weather-submit
Manually submit weather station information to the APRS-IS network.
Stars: ✭ 17 (-55.26%)
Mutual labels:  noaa
goesdump
GOES xRIT Data Dumper for xRIT Demodulator
Stars: ✭ 46 (+21.05%)
Mutual labels:  noaa
noaa-apt-decoder
Automatic picture transmission(APT) protocol decoder for NOAA weather satellites
Stars: ✭ 23 (-39.47%)
Mutual labels:  noaa
SpaceEye
Live satellite imagery for your desktop background
Stars: ✭ 253 (+565.79%)
Mutual labels:  noaa
HydroData
An R 📦 for finding and getting geospatial earth systems data
Stars: ✭ 30 (-21.05%)
Mutual labels:  noaa
erddap
ERDDAP is a scientific data server that gives users a simple, consistent way to download subsets of gridded and tabular scientific datasets in common file formats and make graphs and maps. ERDDAP is a Free and Open Source (Apache and Apache-like) Java Servlet from NOAA NMFS SWFSC Environmental Research Division (ERD).
Stars: ✭ 48 (+26.32%)
Mutual labels:  noaa
Rnightlights
R package to extract data from satellite nightlights.
Stars: ✭ 45 (+18.42%)
Mutual labels:  noaa
get-weather-data
Get weather data for a list of zip codes for a range of dates
Stars: ✭ 32 (-15.79%)
Mutual labels:  noaa
worldtidesinfocustom
world tides info custom component for home assistant
Stars: ✭ 14 (-63.16%)
Mutual labels:  tides

noaa_coops

Build Status PyPI PyPI - Python Version

noaa_coops is a Python wrapper for the NOAA CO-OPS Tides & Currents Data and Metadata APIs.

This package is an evolution of py_noaa, the main addition being the creation of a Station class that is central to noaa_coops and provides distinct advantages over py_noaa.

Use


All data and metadata is handled using a Station class with methods and attributes for retrieving metadata, observed data, and predicted data.

Getting Metadata

All available metadata for a desired station (identifed by unique stationid) is automagically generated when a Station object is initialzed. Station IDs can be found using the mapping interface at https://tidesandcurrents.noaa.gov/. All metadata is stored as a dictionary in the .metadata attribute of a Station object for easy exploration (e.g. seattle.metadata). Additionally, the keys of the metadata attribute dictionary are also assigned as attributes of the station object itself (easily explored using tab-completion in your IDE). For example:

>>> from pprint import pprint  # For pretty printing
>>> import noaa_coops as nc
>>> seattle = nc.Station(9447130)
>>> pprint(seattle.lat_lon['lat'])
47.601944
>>> pprint(seattle.lat_lon['lon'])
-122.339167

Getting Observed or Predicted Data

Station data can be retrieved using the .get_data method on a Station class object. Data is returned as a Pandas DataFrame for easy use and analysis. Data types are listed on the NOAA CO-OPS Data API. The data types currently supported for retrieval with noaa_coops are:

- Currents
- Observed water levels
- Observered daily high and low water levels (use `product="high_low"`)
- Predicted water levels
- Predicted high and low water levels
- Winds
- Air pressure
- Air temperature
- Water temperature

Compatibility with other data products may exist, but is not guaranteed at this time. Feel free to submit a pull request if you would like to add addtional functionality.

In the example below, water level data is retrieved for the Seattle station (stationid=9447130) for a 3 month period.

>>> import noaa_coops as nc
>>> seattle = nc.Station(9447130)
>>> df_water_levels = seattle.get_data(
...     begin_date="20150101",
...     end_date="20150331",
...     product="water_level",
...     datum="MLLW",
...     units="metric",
...     time_zone="gmt")
>>> df_water_levels.head()  # doctest: +NORMALIZE_WHITESPACE
                     water_level  sigma    flags QC
date_time                                          
2015-01-01 00:00:00        1.799  0.023  0,0,0,0  v
2015-01-01 00:06:00        1.718  0.018  0,0,0,0  v
2015-01-01 00:12:00        1.639  0.013  0,0,0,0  v
2015-01-01 00:18:00        1.557  0.012  0,0,0,0  v
2015-01-01 00:24:00        1.473  0.014  0,0,0,0  v

Requirements

For use:

  • requests
  • numpy
  • pandas
  • zeep

For development/contributions:

  • pytest
  • pytest-cov

TODO

See issues for a list of issues and to add issues of your own.

Contribution

All contributions are welcome, feel free to submit a pull request if you have a valuable addition to the package or constructive feedback.

Many thanks to the following contributors!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].