Obsoper

Latest version: v0.0.8

Safety actively analyzes 613705 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.0.8

Release notes
- `Regular1DGrid` supports both ascending and descending evenly spaced grids

Previous versions assumed that longitude and latitude dimensions increased from low-to-high as a function of array index. This assumption has been relaxed to support regular longitude/latitude grids with ascending/descending dimensions.

0.0.7

Release notes

Made `setup.py` compatible with pip install from PYPI by distributing C code instead of `*.pyx` Cython code.

0.0.6

Release notes

PYPI caches releases so that pip knows which file to download. Version 0.0.5 was not uploaded to PYPI correctly so a new version number has been created.

0.0.5

Release notes
- Added `obsoper.Operator` to allow the user to select `regular`, `regional` or `tripolar` grids with or without a halo.
- This new interface requires users to specify observation locations up front which allows the operator
to precalculate the weights of it's interpolation procedure
- The down side is the constructor now requires a minimum of 4 arguments
- Added `obsoper.domain` module abstracts filtering of observations outside domains
- `obsoper.domain.LatitudeBand` screens observations north/south of particular limits
- `obsoper.domain.Box` screens observations outside a lon/lat box
- `obsoper.domain.Polygon` uses a point in polygon test to deal with irregular shaped domains
- Added `obsoper.cartesian` helper function to map from longitude/latitude space into Cartesian coordinates
- Helps K-D tree search by removing issues with 180th meridian
- Distances in 3D space are more likely to represent true distances than "distance" in latitude/longitude space
- Added `obsoper.grid.CartesianSearch` to perform grid search operations using a KD-Tree in Cartesian coordinates.
- It relies on a wrapper of `scipy.spatial.cKDTree` called `obsoper.grid.CartesianNeighbour`
- Deprecated `obsoper.grid.Search` in favour of more descriptive name `obsoper.grid.TripolarSearch`
- Deprecated `obsoper.grid.NearestNeighbour` to be replaced by `obsoper.grid.LonLatNeighbour`
- Refactored `obsoper.horizontal` module
- Inlined `obsoper.interpolate` into `obsoper.horizontal`
- Extracted `obsoper.horizontal.Regular` horizontal interpolator to fulfill requirements of new `obsoper.Operator` class.
- Extended the [docs](http://obsoper.readthedocs.io)!

0.0.4

Release notes
- Added `obsoper.Section` interpolator to map from series of model water columns returned from
horizontal interpolation to observed depths.
- Fixed bug that prevented non-masked masked arrays being interpolated as masked values
- Added `has_halo` flag to `obsoper.Tripolar` constructor to handle diagnostics which have additional
halo values. Grid locations and values are trimmed using `obsoper.remove_halo()` prior to searching and interpolation.
- Replaced `NorthFold` class with function `obsoper.north_fold()` that generates a dictionary that defines the connection between edges of the northern tri-polar fold.
- Observations further north than northern most grid point return masked values when interpolated by `obsoper.Tripolar`. Technically the north pole can be interpolated on a tri-polar grid but the algorithm adopted here is not suited for that use case.
- Added support to `obsoper.Tripolar` to interpolate 3 dimensional diagnostics.

0.0.3

First release candidate. Contains classes suitable for interpolating regular lat/lon grids and tripolar orca grids.

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.