Skip to main content

Misc functions for IOOS notebooks

Project description

Copyright (c) 2015 - 2017, Filipe Fernandes
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name of conda-buildall nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


Description: utilities
=========

.. image:: https://travis-ci.org/pyoceans/ioos_tools.svg?branch=master
:target: https://travis-ci.org/pyoceans/ioos_tools
:alt: build status
.. image:: https://zenodo.org/badge/100956238.svg
:target: https://zenodo.org/badge/latestdoi/100956238
:alt: doi
.. image:: https://img.shields.io/pypi/l/ioos_tools.svg
:target: https://github.com/pyoceans/ioos_tools/blob/master/LICENSE.txt
:alt: PyPI - License



IOOS/SECOORA utilities functions.
---------------------------------

A collection of misc functions used in IOOS Data Demo Center `notebooks examples <https://ioos.github.io/notebooks_demos/>`__.

Changelog
---------

Version 1.3.0

* Bugfix release
* Added doctests
* Major code clean ups and Python 3.6 only support

Version 1.2.0

* Removed iris.FUTURE, they are all toggled by default now.
* Better error handling in `z_coord()`.
* Added an option to enter the mesh type `get_surface()`.
(Many datasets do not have the mesh type in the metadata.)

Version 1.1.2

* Use timeout-decorate in `is_station()` to skip URLs that takes longer than 10 s.

Version 1.1.1

* Fix misaligned table index when station name is absent in `collector2table`.

Version 1.1.0

* Use retrying to access SOS servers.

Version 1.0.1

* Fix folium args syntax

Version 1.0.0

* First oficial release

Version 0.5.0

* Faster `is_model`. (Bypass iris cube creation.)
* Using folium `v0.2.0` for maps.
* Re-incorporated tardis.py functions.
* Fixed pandas-syntax bug.
* No longer hard-code the log name in `start_log`.

Version 0.4.1

* Fix bug in simpler `fes_date_filter()` and re-introduced the `overlaps` and
`within` searches.

Version 0.4.0

* Simpler `fes_date_filter()`.
* Update to latest pandas syntax.
* Fix `get_coops_metadata()` to comply with latest Coops SensorML changes.

Version 0.3.0

* Added a new module for Quality Assurance and Quality Control `qaqc.py`:
`has_time_gaps()`, `is_monotonically_increasing()`, `is_flatline()`,
`is_spike()`, `threshold_series()`, `filter_spikes()`, and `tukey53H()`.
* Added `is_station()` for faster checks than`is_model()`.
* Several bug fixes (See https://github.com/ocefpaf/boston_light_swim/issues/5)
* Deprecate `sos_request()` in favor of `collector2table()` to get a list of
available stations in a `pyoos` `collector` object.
* Renamed `coops2df` to the more general `pyoos2df`
(downloads both Coops and NDBC).

Version 0.2.6

* Parse HTML station names strings.
* Added `fetch_range()`, `show_qr()`,`get_nbviewer()`, `save_html()`,
`start_log()`, `apply_skill()`, and `filter_series()`.
* Added `TaylorDiagram()` class.

Version 0.2.5

* Added more CF-names to the velocity list.
* Added ioos module with system-test functions.
* Replaced `get_coops_longName()` with `get_coops_metadata()`
* Added Root Mean Squared Error`rmse()` and all of sklearn.metrics
(`mean_absolute_error`, `mean_squared_error`, `median_absolute_error`,
`r2_score`, `explained_variance_score`).

Version 0.2.4

* Lazy import SciPy.
* Factored `iris_utis.py` out of the module.
* Fixed a bug in `ndbc2df()`.

Version 0.2.3

* `is_model()` now assumes that all "GRID" features that have the word AVHRR
are satellite data and not numerical models.

Version 0.2.2

* In-lining folium maps HTML because embed HTML fails with sub-directories.
* Removed `standardize_fill_value()` (See
https://github.com/SciTools/biggus/issues/94).
* More workarounds for `SciTools/iris#1568`

Version 0.2.1

* Added ESRI map and HF Radar map layers.
* Fixed bug in `subset()` when searching for model titles.
* Added workaround for `SciTools/iris#1568`

Version 0.2.0

* Replaces `get_cubes()` with `quick_load_cubes()` and `proc_cube()`.

Version 0.1.0

* Added a test module.
* style.css as default CSS.
* Many bug fixes.

Version 0.0.1

* First release

Keywords: oceanography,data analysis
Platform: any
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Scientific/Engineering :: Science/Research
Classifier: License :: OSI Approved :: BSD License
Classifier: Development Status :: 4 - Beta

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ioos_tools-1.3.1.tar.gz (44.2 kB view details)

Uploaded Source

Built Distribution

ioos_tools-1.3.1-py3-none-any.whl (26.3 kB view details)

Uploaded Python 3

File details

Details for the file ioos_tools-1.3.1.tar.gz.

File metadata

  • Download URL: ioos_tools-1.3.1.tar.gz
  • Upload date:
  • Size: 44.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6

File hashes

Hashes for ioos_tools-1.3.1.tar.gz
Algorithm Hash digest
SHA256 d4892fd84abec97d040a6565912f61df3fe1e1db016d78b5159a6d83f2558e7e
MD5 8d89f44e1b721e776459bd678b6e1dd8
BLAKE2b-256 dfb786f7935575fc6a7574156b185ca82bd677a2380e079441c3ef920b989eb6

See more details on using hashes here.

File details

Details for the file ioos_tools-1.3.1-py3-none-any.whl.

File metadata

  • Download URL: ioos_tools-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 26.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6

File hashes

Hashes for ioos_tools-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eaf6aa80ad5e37964f73988f7390aef78311242fcb47bb6cbe273e8cb7d4f821
MD5 d919d3657b3a1d48ca3424e88a7ccc40
BLAKE2b-256 85f0dc49f343f6f3432a637bfa9cf3648e62b5bad5b1d66ec07146c94912c193

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page