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.0.tar.gz (44.2 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ioos_tools-1.3.0.tar.gz
  • Upload date:
  • Size: 44.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ioos_tools-1.3.0.tar.gz
Algorithm Hash digest
SHA256 a30c5f77b8a90c66c8e5ced666cd1518ee1d5e9011be7ce7e5f3d57c45cdc28e
MD5 ee1a0446780c96d57b0c7efddafc3c88
BLAKE2b-256 efd6cad4ee37801670408fb9113aa0c3f03f7a2af3e25f440629568d8973e279

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ioos_tools-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe86681a61fb798367fdf1af629b196a971ac7ee3e92ff38f12dc70693d8eeca
MD5 557ea9a9f066d47096f3fd8a8313c011
BLAKE2b-256 ee6e38a882248d16271675400eef679bd506333d8ea2b3591056ec800f0d1b9f

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