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://zenodo.org/badge/5715/pyoceans/utilities.svg
:target: https://zenodo.org/badge/latestdoi/5715/pyoceans/utilities
:alt: doi
.. image:: http://img.shields.io/travis/pyoceans/utilities/master.svg?style=flat
:target: https://travis-ci.org/pyoceans/utilities
:alt: build status
.. image:: http://img.shields.io/badge/license-MIT-blue.svg?style=flat
:target: https://github.com/pyoceans/utilities/blob/master/LICENSE
:alt: 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.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: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Education
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Education
Classifier: Topic :: Scientific/Engineering

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.2.1.tar.gz (44.4 kB view hashes)

Uploaded Source

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