| Home | Trees | Indices | Help |
|
|---|
|
|
A pure Python implementation of geodesy tools for various ellipsoidal and spherical earth models using precision trigonometric, vector-based and approximate methods for geodetic (lat-/longitude) and geocentric cartesian (x/y/z) coordinates.
Transcribed from JavaScript originals by Chris Veness (C) 2005-2016 and several C++ classes by Charles Karney (C) 2008-2017 and published under the same MIT License**.
There are three modules for ellipsoidal earth models, ellipsoidalKarney, -Vincenty and -Nvector and two for spherical ones, sphericalTrigonometry and -Nvector. Each module provides a LatLon class with methods and functions to compute distance, initial and final bearing, intermediate and nearest points, area, perimeter, conversions and unrolling, among other things. For more information and further details see the documentation, the descriptions of Latitude/Longitude, Vincenty and Vector-based geodesy, the original JavaScript source or docs and the Python GeographicLib.
Also included are modules for conversions to and from Cassini-Soldner, UTM (Universal Transverse Mercator), UPS (Universal Polar Stereographic) and Web Mercator (Pseudo-Mercator) coordinates, MGRS (NATO Military Grid Reference System) and OSGR (British Ordinance Survery Grid Reference) grid references and a module for encoding and decoding EPSG, Geohashes, Georefs (WGRS) and Garefs (GARS).
Other modules provide Lambert conformal conic projections and
positions (from John P. Snyder, "Map Projections -- A Working
Manual", 1987, pp 107-109), functions to clip a path or polygon
of LatLon
points using the Cohen–Sutherland and the Sutherland-Hodgman methods, functions to simplify or
linearize a path of LatLon
points (or a NumPy array), including implementations of the Ramer-Douglas-Peucker the Visvalingam-Whyatt and Reumann-Witkam the algorithms and modified versions of
the former and classes to interpolate the height of LatLon
points
and several Geoid
models.
All Python source code has been statically checked with PyChecker, PyFlakes, PyCodeStyle (formerly Pep8) and McCabe using Python 2.7.16 and with Flake8 using Python 3.7.3, both in 64-bit on macOS 10.13.6 High Sierra.
The tests have been run with Python 2.7.16 and 3.7.3 (both with geographiclib 1.49, numpy 1.16.1 and scipy 1.2.1) and with PyPy 6.0.0 (Python 2.7.13 and 3.5.3) on macOS 10.13.6 High Sierra. The results of those tests are included in the distribution files.
The tests also run with Python 2.6.9, 2.7.14, 3.5.6 and 3.6.3 (and geographiclib 1.49) on Ubuntu 14.04 and with Python 3.7.3 (and geographiclib 1.49) on Debian 9 all in 64-bit only and with Python 2.7.15, 3.6.8 and 3.7.2 (all with geographiclib 1.49) on Windows Server 2012R2 in both 32- and 64-bit.
On Python 3.7+, the tests run with and without lazy
import
.
Previously, the tests were run with Python 2.6.9 (and numpy 1.6.2), 2.7.10 (and numpy 1.8.0rc1), 2.7.13, 2.7.14, 2.7.15 (and numpy 1.13.1, 1.14.0 or 1.15.2), 3.5.3, 3.6.2, 3.6.3, 3.6.4, 3.6.5, 3.7.0, 3.7.2 and Intel-Python 3.5.3 (and numpy 1.11.3) on MacOS X 10.10 Yosemite, MacOS X 10.11 El Capitan, macOS 10.12 Sierra, macOS 10.13.5 High Sierra and macOS 10.14 Mojave, with Pythonista 3.1 on iOS 10.3.3, 11.0.3, 11.1.2 and 11.3 on iPad4, with Pythonista 3.2 on iOS 11.4.1 and 12.0 on iPad4, iPhone7 and/or iPhone10, all in 64-bit only and with 32-bit Python 2.6.6 on Windows XP SP3 and with 32-bit Python 2.7.14 on Windows 10 Pro.
In addition to the PyGeodesy package, the distribution files contain the
tests, the test results (on macOS only) and the complete documentation (generated by Epydoc using
command line: epydoc --html --no-private --no-source
--name=PyGeodesy --url=... -v pygeodesy
).
To install PyGeodesy, type pip install PyGeodesy
or
easy_install PyGeodesy
in a terminal or command window.
Alternatively, download PyGeodesy-yy.m.d.zip
from PyPI or GitHub,
unzip
the downloaded file, cd
to directory
Pygeodesy-yy.m.d
and type python setup.py
install
. To run all PyGeodesy tests, type python setup.py
test
before installation.
Installation of GeographicLib, NumPy and SciPy is optional. However, the former is required
for module css
classes CassiniSoldner and Css and function
toCss and
for module ellipsoidalKarney classes LatLon
and
Cartesian
and functions areaOf
and
perimeterOf
. The latter are needed for the
Geoid...
and Height...
interpolators, except
GeoidKarney, HeightIDW, HeightIDW2 and HeightIDW3.
Some function and method names differ from the JavaScript version. In such cases documentation tag JS name: shows the original JavaScript name.
**) Copyright (C) 2016-2019 -- mrJean1 at Gmail dot com
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
(the "Software"), to deal in the Software without
restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the
Software.
 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Version: 19.06.14
| Submodules | |
|
| Classes | |
|
LazyImportError Lazy import is not supported, disabled or failed some other way. |
|
|
CrossError Error raised for zero or near-zero vectorial cross products, occurring for coincident or colinear points, paths or bearings. |
|
|
Epsg EPSG class, sub-class of int .
|
|
|
EPSGError EPSG encode or decode error. |
|
|
Garef Garef class, sub-class of str .
|
|
|
Geohash Geohash class, sub-class of str .
|
|
|
Georef Georef class, sub-class of str .
|
|
|
VincentyError Error raised from Vincenty's direct and inverse methods for coincident points or lack of convergence. |
|
|
CassiniSoldner A Python version of Charles Karney's CassiniSoldner C++ class. |
|
|
Conic Lambert conformal conic projection (1- or 2-SP). |
|
|
Css Cassini-Soldner East-/Northing location. |
|
|
Datum Ellipsoid and transform parameters for an earth model. |
|
|
Ellipsoid Ellipsoid with major and minor radius, semi-axis, (inverse) flattening and other pre-computed, frequently used attributes. |
|
|
Fdot Precision dot product. |
|
|
Fhorner Precision polynomial evaluation using the Horner form. |
|
|
Fpolynomial Precision polynomial evaluation. |
|
|
Fsum Precision summation similar to standard Python function math.fsum .
|
|
|
GeoidError Geoid interpolator or interpolation error. |
|
|
GeoidG2012B Geoid height interpolator for GEOID12B Model grids CONUS, Alaska, Hawaii, Guam and Northern Mariana Islands, Puerto Rico and U.S. Virgin Islands and American Samoa based on SciPy RectBivariateSpline or interp2d interpolation.
|
|
|
GeoidKarney Geoid height interpolator for Charles Karney's GeographicLib Earth Gravitational Model (EGM) geoid egm*.pgm datasets using bilinear or cubic interpolation and caching in pure Python transcribed from Karney's C++ class Geoid. |
|
|
GeoidPGM Geoid height interpolator for Charles Karney's GeographicLib Earth Gravitational Model (EGM) geoid egm*.pgm datasets but based on SciPy
RectBivariateSpline or interp2d interpolation.
|
|
|
HeightCubic Height interpolator based on SciPy interp2d kind='cubic' .
|
|
|
HeightError Height interpolator or interpolation error. |
|
|
HeightIDW Height interpolator using Inverse Distance Weighting (IDW) and the angular Euclidean distance from function euclidean_.
|
|
|
HeightIDW2 Height interpolator using Inverse Distance Weighting (IDW) and the equirectangular distance (in radians squared) like
function equirectangular_.
|
|
|
HeightIDW3 Height interpolator using Inverse Distance Weighting (IDW) and the angular Haversine distance from function haversine_.
|
|
|
HeightLSQBiSpline Height interpolator using SciPy LSQSphereBivariateSpline.
|
|
|
HeightLinear Height interpolator based on SciPy interp2d kind='linear] .
|
|
|
HeightSmoothBiSpline Height interpolator using SciPy SmoothSphereBivariateSpline.
|
|
|
LatLon2psxy Wrapper for LatLon points as "on-the-fly"
pseudo-xy coordinates.
|
|
|
LatLonHeightBase (INTERNAL) Base class for LatLon points on spherical
or ellipsiodal earth models.
|
|
|
LatLon_ Low-overhead LatLon class for Numpy2LatLon and Tuple2LatLon.
|
|
|
Lcc Lambert conformal conic East-/Northing location. |
|
|
LimitError Error raised for lat- or longitudinal deltas exceeding the limit in functions equirectangular and equirectangular_. |
|
|
Mgrs Military Grid Reference System (MGRS/NATO) references, with method to convert to UTM coordinates. |
|
|
Numpy2LatLon Wrapper for NumPy arrays as "on-the-fly"
LatLon points.
|
|
|
Osgr Ordinance Survey Grid References (OSGR) coordinate. |
|
|
PGMError Error parsing or cropping an egm*.pgm geoid dataset.
|
|
|
RangeError Error raised for lat- or longitude values outside the clip, clipLat, clipLon or limit range in function clipDMS, parse3llh, parseDMS or parseDMS2. |
|
|
SciPyError Error raised for SciPy errors.
|
|
|
SciPyWarning Exception thrown for SciPy warnings.
|
|
|
Transform Helmert transformation. |
|
|
Tuple2LatLon Wrapper for tuple sequences as "on-the-fly" LatLon points.
|
|
|
UPSError UPS parse or other error. |
|
|
UTMError UTM parse or other error. |
|
|
UTMUPSError UTM/UPS parse, validate or other error. |
|
|
Ups Universal Polar Stereographic (UPS) coordinate. |
|
|
Utm Universal Transverse Mercator (UTM) coordinate. |
|
|
Wm Web Mercator (WM) coordinate. |
|
|
_Based (INTERNAL) Base class with name. |
|
|
_Enum (INTERNAL) Enum-like dict sub-class.
|
|
|
_GeoidBase (INTERNAL) Base class for Geoid... s.
|
|
|
_Named (INTERNAL) Base class for named objects. |
|
|
_Registered (INTERNAL) Base class for registered instances. |
|
|
_VectorBased (INTERNAL) Base class for Vector3d. |
| Functions | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| value |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| bool |
|
||
|
|||
| bool |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
| Variables | |
pygeodesy_abspath =
Fully qualified pygeodesy directory name
(str ).
|
|
version =
Normalized PyGeodesy version (str ).
|
|
Conics = Conics.Be08Lb: Conic(name='Be08Lb', lat0=50.797815, l Registered conics ( enum-like ).
|
|
Datums = Datums.BD72: Datum(name='BD72', ellipsoid=Ellipsoids. Registered datums ( enum-like ).
|
|
EPS = 2.22044604925e-16 System's epsilon ≈2.22e-16 ( float ).
|
|
EPS1 = 1.0 1 - EPS ≈0.9999999999999998 ( float ).
|
|
EPS1_2 = 1.0 1 - EPS / 2 ≈0.9999999999999999 ( float ).
|
|
Ellipsoids = Ellipsoids.Airy1830: Ellipsoid(name='Airy1830', a Registered ellipsoids ( enum-like ).
|
|
F_D =
Format degrees as "deg°" ( str ).
|
|
F_DEG =
Format degrees as "[D]DD" without symbol ( str ).
|
|
F_DM =
Format degrees as "deg°min′" ( str ).
|
|
F_DMS =
Format degrees as "deg°min′sec″" ( str ).
|
|
F_MIN =
Format degrees as "[D]DDMM" without symbols ( str ).
|
|
F_RAD =
Convert degrees to radians and format as "RR" ( str ).
|
|
F_SEC =
Format degrees as "[D]DDMMSS" without symbols ( str ).
|
|
INF = inf Infinity ( float ), see isinf ,
isfinite .
|
|
MANTIS = 53 System's mantissa bits ≈53 ( int ).
|
|
MAX = 1.79769313486e+308 System's float max ≈1.798e+308 ( float ).
|
|
MIN = 2.22507385851e-308 System's float min ≈2.225e-308 ( float ).
|
|
NAN = nan Not-A-Number ( float ), see isnan .
|
|
NEG0 = -0.0 Negative 0.0 ( float ), see isneg0 .
|
|
OK =
Unique OK object ( str ).
|
|
PI = 3.14159265359 Constant math.pi ( float ).
|
|
PI2 = 6.28318530718 Two PI, math.pi * 2 ( float ).
|
|
PI_2 = 1.57079632679 Half PI, math.pi / 2 ( float ).
|
|
PI_4 = 0.785398163397 Quarter PI, PI / 4 ( float ).
|
|
R_FM = 6371000.0 Former FAI Sphere earth radius ( meter ).
|
|
R_KM = 6371.00877142 Mean (spherical) earth radius ( km , kilometer).
|
|
R_M = 6371008.77141 Mean (spherical) earth radius ( meter ).
|
|
R_MA = 6378137.0 Major (equatorial) earth radius ( meter ) WGS84,
EPSG:3785.
|
|
R_MB = 6356752.0 Minor (polar) earth radius ( meter ) WGS84, EPSG:3785.
|
|
R_NM = 3440.06953447 Mean (spherical) earth radius ( NM , nautical miles).
|
|
R_SM = 3958.75339537 Mean (spherical) earth radius ( SM , statute miles).
|
|
R_VM = 6366707.01949 Aviation/Navigation earth radius ( meter ).
|
|
S_DEG =
Degrees symbol "°" ( str ).
|
|
S_MIN =
Minutes symbol "′" ( str ).
|
|
S_RAD =
Radians symbol "" ( str ).
|
|
S_SEC =
Seconds symbol "″" ( str ).
|
|
S_SEP =
Separator between deg°, min′ and sec″ "" ( str ).
|
|
Transforms = Transforms.BD72: Transform(name='BD72', tx=106.86 Registered transforms ( enum-like ).
|
|
isLazy = None hash(x) |
| Function Details |
Get/set raising of vectorial cross product errors.
|
Class-like function to create a UTM/UPS coordinate.
|
Make a valid name of alphanumeric and OKd characters.
Note: Leading and trailing whitespace characters are removed and intermediate whitespace characters are coalesced and substituted. |
Return the antipode, the point diametrically opposite to a given point.
See Also: Geosphere. |
Approximate the area of a polygon.
Note: This is an area approximation with limited accuracy, ill-suited for regions exceeding several hundred Km or Miles or with near-polar latitudes. See Also: sphericalNvector.areaOf, sphericalTrigonometry.areaOf and ellipsoidalKarney.areaOf. |
Compute the initial or final bearing (forward or reverse azimuth) between a (spherical) start and end point.
|
Convert bearing to a string.
JS name: toBrng. |
Compute the initial or final bearing (forward or reverse azimuth) between a (spherical) start and end point.
|
Determine the lower-left SW and upper-right NE corners of a path or polygon.
Example: >>> b = LatLon(45,1), LatLon(45,2), LatLon(46,2), LatLon(46,1) >>> boundsOf(b) # False >>> 45.0, 1.0, 46.0, 2.0 |
Compute the cubic root x**(1/3).
|
Compute the cubic root squared x**(2/3).
|
Determine the centroid of a polygon.
See Also: Centroid and Calculating The Area And Centroid Of A Polygon. |
Return an instance' module and class name.
|
Set the default class naming for
|
Clip a path against a rectangular clip box using the Cohen-Sutherland algorithm.
|
Clip a lat- or longitude to the given range.
|
Clip a polygon against a clip region or box using the Sutherland_Hodgman algorithm.
|
Clip a polygon against a clip region or box using the Sutherland_Hodgman algorithm.
|
Clip a string to the given length limit.
|
Return the angle from North for the direction vector (lon2 - lon1, lat2 - lat1) between two points. Suitable only for short, non-near-polar vectors up to a few hundred Km or Miles. Use function bearing for longer vectors.
Note: Courtesy Martin Schultz. See Also: Local, flat earth approximation. |
Convert bearing to a string suffixed with compass point.
|
Convert bearing to a compass point.
See Also: Dms.compassPoint and Compass rose. Example: >>> p = compassPoint(24, 1) # 'N' >>> p = compassPoint(24, 2) # 'NE' >>> p = compassPoint(24, 3) # 'NNE' >>> p = compassPoint(24) # 'NNE' >>> p = compassPoint(11, 4) # 'NbE' >>> p = compassPoint(30, 4) # 'NEbN' >>> p = compassPoint(11.249) # 'N' >>> p = compassPoint(11.25) # 'NNE' >>> p = compassPoint(-11.25) # 'N' >>> p = compassPoint(348.749) # 'NNW' |
Convert degrees to a string in degrees, minutes or seconds.
|
Convert radians to degrees and wrap [-180..+180].
|
Convert angle to distance along the equator or along a parallel at an other latitude.
|
Convert radians to degrees and wrap [0..+360).
|
Convert radians to degrees and wrap [-270..+90].
|
Generate geoid egm*.pgm height tests from GeoidHeights.dat Test data for Geoids.
Note:
Function egmGeoidHeights is used to test geoids GeoidKarney and GeoidPGM, see PyGeodesy module
|
Get the geoid elevation at an
Note:
The returned See Also: USGS National Map, the FAQ, geoid.py, module geoids, classes GeoidG2012B, GeoidKarney and GeoidPGM. |
Return easting, northing string representations.
|
Compute the distance between two points using the Equirectangular Approximation / Projection.
See Also: Function equirectangular_ for more details, the available options, errors, restrictions and other, approximate or accurate distance functions. |
DEPRECATED, use function
|
Compute the distance between two points using the Equirectangular Approximation / Projection. This approximation is valid for short distance of several hundred Km or Miles, see the limit keyword argument and the LimitError.
See Also:
Local, flat earth approximation, functions equirectangular, euclidean, haversine and vincentys and methods Ellipsoid.distance2, |
Approximate the
See Also:
Distance between two (spherical) points,
functions equirectangular, haversine and vincentys and methods Ellipsoid.distance2, |
Approximate the angular
See Also: Functions euclidean, equirectangular_, haversine_ and vincentys_. |
Convert floats to string, optionally with trailing zero decimals stripped.
|
Strip trailing zero decimals from a float string.
|
Convert a false east-/northing to non-negative float.
|
Return the weighted average of two values.
|
Return the precision dot product sum(a[i] * b[i] for i=0..len(a)).
See Also: Class Fdot. |
Return the precision dot product start + sum(a[i] * b[i] * c[i] for i=0..len(a)).
|
Evaluate the polynomial sum(cs[i] * x**i for i=0..len(cs)) using the Horner form.
See Also: Function fpolynomial and class Fhorner. |
Compute the accurate mean sum(xs[i] for i=0..len(xs)) / len(xs).
|
Evaluate the polynomial sum(cs[i] * x**i for i=0..len(cs)).
See Also: Function fhorner and class Fpolynomial. |
Return a series of powers [x**i for i=1..n].
|
Iterable product, like
See Also: NumPy.prod. |
Generate a range of
See Also: NumPy.prod. |
Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items of the sequence in the calculation, and serves as a default when the sequence is empty.
|
Return an accurate floating point sum of values in the iterable. Assumes IEEE-754 floating point arithmetic. |
Precision summation of the positional argument vulues.
|
Convert International feet to meter (m).
|
Get the
Note:
The returned See Also: NOAA National Geodetic Survey, Geoid, USGS10mElev.py, module geoids, classes GeoidG2012B, GeoidKarney and GeoidPGM. |
Split a string in 2 halfs.
|
Compute the distance between two (spherical) points using the Haversine formula.
See Also:
Distance between two (spherical) points,
functions equirectangular, euclidean and vincentys and methods Ellipsoid.distance2, |
Compute the angular distance between two (spherical) points using the Haversine formula.
See Also: Functions haversine, equirectangular_, euclidean_ and vincentys_. |
Determine the height above the (spherical) earth after traveling along a straight line at a given tilt.
|
Determine the distance to the horizon from a given altitude above the (spherical) earth.
See Also: Distance to horizon. |
Compute the norm sqrt(1 + x**2).
|
Compute the norm sqrt(x**2 + y**2 + z**2).
|
Return the string representation of an instance.
|
Check for an Numpy2LatLon points wrapper.
|
Check for an LatLon2psxy points wrapper.
|
Check for an Tuple2LatLon points wrapper.
|
Check whether two points are antipodal, on diametrically opposite sides of the earth.
See Also: Geosphere. |
Determine the direction of a path or polygon.
Example: >>> f = LatLon(45,1), LatLon(45,2), LatLon(46,2), LatLon(46,1) >>> isclockwise(f) # False >>> isclockwise(reversed(f)) # True |
Determine whether a polygon is convex.
Example: >>> t = LatLon(45,1), LatLon(46,1), LatLon(46,2) >>> isconvex(t) # True >>> f = LatLon(45,1), LatLon(46,2), LatLon(45,2), LatLon(46,1) >>> isconvex(f) # False |
Determine whether a polygon is convex and clockwise.
Example: >>> t = LatLon(45,1), LatLon(46,1), LatLon(46,2) >>> isconvex_(t) # +1 >>> f = LatLon(45,1), LatLon(46,2), LatLon(45,2), LatLon(46,1) >>> isconvex_(f) # 0 |
Determine whether a point is enclosed by a polygon.
|
Check for
|
Check for integer type or integer value.
|
Check for NEG0, negative 0.0.
|
Check whether a polygon encloses a pole.
|
Check for scalar types.
|
Check for sequence types.
Note:
Excluding |
Iterate over Numpy2 wrappers or other sequences exceeding the threshold.
|
Get or set the iterNumpy2 threshold.
|
Convert latitude to a string suffixed with N or S.
JS name: toLat. |
Make built-in function
|
Get/set the raising of limit errors.
|
Convert longitude to a string suffixed with E or W.
JS name: toLon. |
Convert meter to nautical miles (NM).
|
Convert meter to statute miles (SM).
|
Convert distance to angle along equator.
|
Convert meter to International feet (ft).
|
Convert meter to kilo meter (km).
|
Apply each argument to a single-argument function and return a tuple of results.
|
Apply arguments to a function and return a tuple of results. Unlike Python 2's built-in
|
DEPRECATED, use function nearestOn5.
|
DEPRECATED, use function nearestOn5.
|
Locate the point on a path or polygon closest to an other point. If the given point is within the extent of a polygon edge, the closest point is on that edge, otherwise the closest point is the nearest of that edge's end points. Distances are approximated by function equirectangular_, subject to the supplied options.
See Also:
Function degrees2m to convert |
Normalize all degree ˚, minute ' and second " symbols in a string to the default symbols °, ′ and ″.
|
Parse a string representing lat-, longitude and height point. The lat- and longitude value must be separated by a separator character. If height is present it must follow, separated by another separator. The lat- and longitude values may be swapped, provided at least one ends with the proper compass point.
|
Parse a string representing deg°min′sec″ to degrees. This is very flexible on formats, allowing signed decimal degrees, degrees and minutes or degrees minutes and seconds optionally suffixed by compass direction NSEW. A variety of symbols, separators and suffixes are accepted, for example 3° 37′ 09″W. Minutes and seconds may be omitted.
See Also: Function parse3llh to parse a string with lat-, longitude and height values. |
Parse lat- and longitude representions.
|
Parse a string representing a MGRS grid reference, consisting of zoneBand, grid, easting and northing.
Example: >>> m = parseMGRS('31U DQ 48251 11932') >>> str(m) # 31U DQ 48251 11932 >>> m = parseMGRS('31UDQ4825111932') >>> repr(m) # [Z:31U, G:DQ, E:48251, N:11932] |
Parse an OSGR coordinate string to an Osgr instance. Accepts standard OS Grid References like 'SU 387 148', with or without whitespace separators, from 2- up to 10-digit references (1 m × 1 m square), or fully numeric, comma-separated references in metres, for example '438700,114800'.
Example: >>> g = parseOSGR('TG 51409 13177') >>> str(g) # TG 51409 13177 >>> g = parseOSGR('TG5140913177') >>> str(g) # TG 51409 13177 >>> g = parseOSGR('TG51409 13177') >>> str(g) # TG 51409 13177 >>> g = parseOSGR('651409,313177') >>> str(g) # TG 51409 13177 >>> g.toStr(prec=0) # 651409,313177 |
Parse a string representing a UPS coordinate, consisting of "[zone][band] pole easting northing" where zone is pseudo zone "00"|"0"|"" and band is 'A'|'B'|'Y'|'Z'|''. |
DEPRECATED, use function parseUTM5.
|
Parse a string representing a UTM coordinate, consisting of "zone[band] hemisphere easting northing".
Example: >>> u = parseUTM('31 N<PHONE_NUMBER>932') >>> u.toStr2() # [Z:31, H:N, E:448251, N:5411932] >>> u = parseUTM('31 N 448251.8 5411932.7') >>> u.toStr() # 31 N<PHONE_NUMBER>933 |
Parse a string representing a UTM or UPS coordinate, consisting of "zone[band] hemisphere/pole easting northing".
|
Parse a string representing a WM coordinate, consisting of easting, northing and an optional radius.
Example: >>> u = parseWM('448251 5411932') >>> u.toStr2() # [E:448251, N:5411932] |
Approximate the perimeter of a path or polygon.
Note: This perimeter is based on the equirectangular_ distance approximation and is ill-suited for regions exceeding several hundred Km or Miles or with near-polar latitudes. See Also: sphericalTrigonometry.perimeterOf and ellipsoidalKarney.perimeterOf. |
Check a polygon represented by points.
|
Set the default precison for a given F_ form.
|
Decorator for
Note:
Like standard Python |
Convert and wrap degrees to radians [-PI..+PI].
|
Convert and wrap degrees to radians [0..+2PI).
|
Convert and wrap degrees to radians [-3PI/2..+PI/2].
|
Gert/set raising of range errors.
Note: Out-of-range lat- and longitude values are always clipped to the nearest range limit. |
Validate a scalar.
|
Basic simplification of a path of Eliminates any points closer together than the given distance tolerance.
|
Ramer-Douglas-Peucker (RDP) simplification of a path of
Eliminates any points too close together or closer to an edge than the given distance tolerance. This RDP method exhaustively searches for the point with the largest distance, resulting in worst-case complexity O(n**2) where n is the number of points.
|
Modified Ramer-Douglas-Peucker (RDPm) simplification of a path of
Eliminates any points too close together or closer to an edge than the given distance tolerance. This RDP method stops at the first point farther than the given distance tolerance, significantly reducing the run time (but producing results different from the original RDP method).
|
Reumann-Witkam (RW) simplification of a path of Eliminates any points too close together or within the given pipe tolerance along an edge.
|
Visvalingam-Whyatt (VW) simplification of a path of
Eliminates any points too close together or with a triangular area not exceeding the given area tolerance (squared). This VW method exhaustively searches for the single point with the smallest triangular area, resulting in worst-case complexity O(n**2) where n is the number of points.
|
Modified Visvalingam-Whyatt (VWm) simplification of a path of
Eliminates any points too close together or with a triangular area not exceeding the given area tolerance (squared). This VW method removes all points with a triangular area below the tolerance each iteration, significantly reducing the run time (but producing results different from the original VW method).
|
Return the
See Also: GeographicLib function sincosd and C++ sincosd. |
Return the
See Also: GeographicLib function sincosd and C++ sincosd. |
Split an iterable into
Note:
Each generated slice is a Example: >>> from pygeodesy import splice >>> a, b = splice(range(10)) >>> a, b ((0, 2, 4, 6, 8), (1, 3, 5, 7, 9)) >>> a, b, c = splice(range(10), n=3) >>> a, b, c ((0, 3, 6, 9), (1, 4, 7], [2, 5, 8)) >>> a, b, c = splice(range(10), n=3, fill=-1) >>> a, b, c ((0, 3, 6, 9), (1, 4, 7, -1), (2, 5, 8, -1)) >>> list(splice(range(12), n=5)) [(0, 5, 10), (1, 6, 11), (2, 7), (3, 8), (4, 9)] >>> splice(range(9), n=1) <generator object splice at 0x0...> |
Compute the square root cubed sqrt(x)**3 or sqrt(x**3).
|
Compute the tangent of half angle, 90 degrees rotated.
|
Compute the tangent of half angle.
|
Convert an (ellipsoidal) geodetic point to a Cassini-Soldner location.
|
Convert signed degrees to string, without suffix.
|
Convert an (ellipsoidal) geodetic point to a Lambert location.
|
Convert a UTM coordinate to an MGRS grid reference.
Example: >>> u = Utm(31, 'N', 448251, 5411932) >>> m = u.toMgrs() # 31U DQ 48251 11932 |
Convert a lat-/longitude point to an OSGR coordinate.
Example: >>> p = LatLon(52.65798, 1.71605) >>> r = toOsgr(p) # TG 51409 13177 >>> # for conversion of (historical) OSGB36 lat-/longitude: >>> r = toOsgr(52.65757, 1.71791, datum=Datums.OSGB36) |
Convert a lat-/longitude point to a UPS coordinate.
See Also: Karney's C++ class UPS. |
DEPRECATED, use function toUtm8.
|
Convert a lat-/longitude point to a UTM coordinate.
Note: Implements Karney’s method, using 8-th order Krüger series, giving results accurate to 5 nm (or better) for distances up to 3900 km from the central meridian. Example: >>> p = LatLon(48.8582, 2.2945) # 31 N 448251.8 5411932.7 >>> u = toUtm(p) # 31 N<PHONE_NUMBER>933 >>> p = LatLon(13.4125, 103.8667) # 48 N 377302.4 1483034.8 >>> u = toUtm(p) # 48 N<PHONE_NUMBER>035 |
Convert a lat-/longitude point to a UTM or UPS coordinate.
|
Convert a lat-/longitude point to a WM coordinate.
Example: >>> p = LatLon(48.8582, 2.2945) # 448251.8 5411932.7 >>> w = toWm(p) #<PHONE_NUMBER>933 >>> p = LatLon(13.4125, 103.8667) # 377302.4 1483034.8 >>> w = toWm(p) #<PHONE_NUMBER>035 |
Return the string representation of an invokation.
|
Unroll longitudinal delta and wrap longitude in degrees.
See Also: Capability LONG_UNROLL in GeographicLib. |
Unroll longitudinal delta and wrap longitude in radians.
See Also: Capability LONG_UNROLL in GeographicLib. |
Return the UTM/UPS zone number, (polar) Band letter, pole and clipped lat- and longitude for a given location.
|
Return the UTM zone number, Band letter, hemisphere and clipped lat- and longitude for a given location.
|
Check a UTM or UPS coordinate.
See Also: Function utmupsValidateOK. |
Check a UTM or UPS coordinate.
See Also: Function utmupsValidate. |
Return the UTM/UPS zone number, Band letter, hemisphere/pole and clipped lat- and longitude for a given location.
See Also: Functions utmZoneBand5 and upsZoneBand5. |
Compute the distance between two (spherical) points using Vincenty's spherical formula.
See Also:
Functions equirectangular, euclidean and haversine and methods Ellipsoid.distance2, Note: See note under vincentys_. |
Compute the angular distance between two (spherical) points using Vincenty's spherical formula.
See Also: Functions vincentys, equirectangular_, euclidean_ and haversine_. Note: Functions vincentys_ and haversine_ produce equivalent results, but vincentys_ is suitable for antipodal points and slightly more expensive than haversine_ (3 cos, 3 sin, 1 hypot, 1 atan2, 7 mul, 2 add versus 2 cos, 2 sin, 2 sqrt, 1 atan2, 5 mul, 1 add). |
Wrap degrees to [-180..+180].
|
Wrap degrees to [0..+360).
|
Wrap degrees to [-270..+90].
|
Wrap radians to [-PI..+PI].
|
Wrap radians to [0..+2PI).
|
Wrap radians to [-3PI/2..+PI/2].
|
| Variables Details |
pygeodesy_abspathFully qualifiedpygeodesy directory name (str ).
|
ConicsRegistered conics (enum-like ).
|
DatumsRegistered datums (enum-like ).
|
EllipsoidsRegistered ellipsoids (enum-like ).
|
TransformsRegistered transforms (enum-like ).
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sat Jun 15 13:13:17 2019 | http://epydoc.sourceforge.net |


{% extends "base.html" %} {% import "bootstrap_wtf.html" as wtf %} {%block title%}Login!{%endblock%} {%block main_content%}


NLS_LOWER
converts all alphabetic characters in a text expression to lowercase. The data type of the return value is the same as the original text.
CHAR | NCHAR | VARCHAR2 | NVARCHAR2
NLS_LOWER (char [, 'nlsparam' ])
char
can be any text expression.
nlsparam
is a linguistic sort sequence in the form NLS_SORT =
sort
[_ai |_ci]
, where sort
is an NLS language. You can add a suffix to the language to modify the sort: _ai
for an accent-insensitive sort, or _ci
for a case-insensitive sort.
NLS_LOWER('STOP SHOUTING')
returns the string stop shouting
.


SHADOW MAGIC A film review by Steve Rhodes Copyright 2001 Steve Rhodes RATING (0 TO ****): ** 1/2
"There are mountains behind the mountains," remarks one of the viewers of the first motion picture to be shown in Peking. The images show a Western world that is indeed far behind and beyond the Chinese mountain ranges. With the eager help of young photographer Liu Jinlun (Xia Yu), Englishman Raymond Wallace (Jared Harris), an artistic P.T. Barnum-type character, opens a "Shadow Magic" extravaganza to display his combination of home movies and English travelogue. Soon these two entrepreneurs are packing them into the old warehouse that serves as their picture palace.
Set amidst the turmoil of a changing era as China reluctantly welcomes the twentieth century, SHADOW MAGIC, which was "inspired by a true story," is a good-spirited movie written and directed by Ann Hu. A stunningly gorgeous costume drama, the movie suffers from its nearly two hour length and its threadbare scripting. The lushness of Nancy Schreiber's cinematography almost makes up for the thinness of the characterizations. Liu, the central character, has a large, silly grin plastered on his face through most of the movie. When Liu runs into trouble, it's hard to empathize with him since he is such a stick figure. Raymond isn't much better. He's the classic dreamer whose wife left him for another man, which is easy to understand.
What really works in the movie, other than the authentic and nostalgic sets, is the wonderment of seeing a new technology so entrance a populace. The movie effectively reminds us how revolutionary some of today's gadgets were just a century ago. The world changes more rapidly than we would ever believe. "They say the time will come when men will cut off their pigtails and women will unbind their feet," Liu tells his photography studio employer, Master Ren (Lu Liping), who finds it quite hard to believe.
SHADOW MAGIC runs 1:55. The film is in Mandarin with English subtitles and in English. It is rated PG for brief mild language and would be acceptable for kids old enough to read subtitles.
Web: http://www.InternetReviews.com Email<EMAIL_ADDRESS>Want free reviews and weekly movie and video recommendations via Email? Just send me a letter with the word "subscribe" in the subject line.
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


updated result schema (added model_design table with settings and added attrition table)
updated shiny app for new database result schema
removed C++ code for AUC and Rcpp dependency, now using pROC instead as faster
made covariate summary optional when externally validating
PatientLevelPrediction 5.0.2
updated json structure for specifying study design (made it friendlier to read)
includes smooth calibration plot fix (done by Alex)
fixed bug with multiple sample methods or feature engineering settings causing invalid error
PatientLevelPrediction 5.0.0
plpModel now saved as json files when possible
Updated runPlp to make more modular
now possible to customise data splitting, feature engineering, sampling (over/under) and learning algorithm
added function for extracting cohort covariates
updated evalaution to evaluate per strata (evaluation column)
updated plpModel structure
updated runPlp structure
updated shiny and package to use tidyr and not reshape2
sklearn learning algorithms share the same fit function
r learning algorithms share the same fit function
interface to cyclops code revised
ensemble learning removed (will be in separate package)
deep learning removed (will be in DeepPatientLevelPrediction package)
PatientLevelPrediction 4.4.2
revised toSparseM() to do conversion in one go but check RAM availablility beforehand.
removed temporal plpData conversion in toSparseM (this will be done in DeepPatientLevelPrediction)
PatientLevelPrediction 4.4.1
shiny can now read csv results
objects loaded via loadPlpFromCsv() can be saved using savePlpResult()
PatientLevelPrediction 4.4.0
added database result storage
added interface to database results in shiny
merged in shinyRepo that changed the shiny app to make it modular and added new features
removed deep learning as this is being added into new OHDSI package DeepPatientLevelPrediction
PatientLevelPrediction 4.3.10
save xgboost model as json file for transparency
set connectionDetails to NULL in getPlpData
PatientLevelPrediction 4.3.9
updated andromeda functions - restrict to pop and tidy covs for speed
quick fix for GBM survival predicting negative values
fixed occasional demoSum error for survival models
updated index creation to use Andromeda function
PatientLevelPrediction 4.3.8
fixed bug when normalize data is false
fixed bugs when single feature (gbm + python)
updated GBM
PatientLevelPrediction 4.3.7
updated calibration slope
fixed missing age/gender in prediction
fixed shiny intercept bug
fixed diagnostic
fixed missing covariateSettings in load cvs plp
PatientLevelPrediction 4.3.6
Removed plpData from evaluation
Added recalibration into externalVal
Updated shiny app for recalibration
Added population creation setting to use cohortEndDate as timeAtRisk end
fixed tests
PatientLevelPrediction 4.3.3
Reduced imports by adding code to install some dependencies when used
PatientLevelPrediction 4.3.2
fixed csv result saving bug when no model param
PatientLevelPrediction 4.3.1
fixed r check vignette issues
added conda install to test
PatientLevelPrediction 4.3.0
finalised permutation feature importance
PatientLevelPrediction 4.2.10
fixed deepNN index issue (reported on github - thanks dapritchard)
add compression to python pickles
removed requirement to have outcomeCount for prediction with python models
PatientLevelPrediction 4.2.9
cleaned all checks
fixed bug in python toSparseMatrix
fixed warning in studyPop
PatientLevelPrediction 4.2.8
fixed bug (identified by Chungsoo) in covariateSummary
fixed bug with thresholdSummary
edited threshold summary function to make it cleaner
added to ensemble where you can combine multiple models into an ensemble
cleaned up the notes and tests
updated simulated data covariateId in tests to use integer64
fixed description imports (and sorted them)
PatientLevelPrediction 4.2.7
fixed Cox model calibration plots
fixed int64 conversion bug
PatientLevelPrediction 4.2.6
added baseline risk to Cox model
PatientLevelPrediction 4.2.3
updated shiny: added attrition and hyper-parameter grid search into settings
PatientLevelPrediction 4.2.2
updated shiny app added 95% CI to AUC in summary, size is now complete data size and there is a column valPercent that tells what percentage of the data were used for validation
PatientLevelPrediction 4.2.1
updated GBMsurvival to use survival metrics and c-stat
PatientLevelPrediction 4.2.0
added survival metrics
PatientLevelPrediction 4.1.0
added updates and fixes into master from development branch
PatientLevelPrediction 4.0.6
fixed bug with pdw data extraction due to multiple person_id columns
fixed bug in shiny app converting covariate values due to tibble
PatientLevelPrediction 4.0.5
added calibration updates: cal-in-large, weak cal
updated smooth cal plot (sample for speed in big data)
defaulted to 100 values in calibrationSummary + updated cal plot
PatientLevelPrediction 4.0.4
fixed backwards compat with normalization
fixed python joblib dependancy
PatientLevelPrediction 4.0.2
fixed bug in preprocessing
added cross validation aucs to LR, GBM, RF and MLP
added more settings into MLP
added threads option in LR
PatientLevelPrediction 4.0.1
fixed minor bug with shiny dependency
fixed some tests
added standardizedMeanDiff to covariatesummary
updated createStudyPopulation to make it cleaner to read and count outcome per TAR
PatientLevelPrediction 4.0.0
Andromeda replaced ff data objects
added age/gender into cohort
fixed python warnings
updated shiny plp viewer
PatientLevelPrediction 3.0.16
Fixed bug when running multiple analyses using a data extraction sample with multiple covariate settings
PatientLevelPrediction 3.0.15
improved shiny PLP viewer
added diagnostic shiny viewer
PatientLevelPrediction 3.0.14
updated external validate code to enable custom covariates using ATLAS cohorts
fixed issues with startAnchor and endAnchor
PatientLevelPrediction 3.0.13
Deprecating addExposureDaysToStart and addExposureDaysToEnd arguments in createStudyPopulation, adding new arguments called startAnchor and endAnchor. The hope is this is less confusing.
fixed transfer learning code (can now transfer or fine-tune model)
made view plp shiny apps work when some results are missing
PatientLevelPrediction 3.0.12
set up testing
fixed build warnings
PatientLevelPrediction 3.0.11
added tests to get >70% coverage (keras tests too slow for travis)
Fixed minor bugs
Fixed deep learning code and removed pythonInR dependancy
combined shiny into one file with one interface
PatientLevelPrediction 3.0.10
added recalibration using 25% sample in existing models
added option to provide score to probabilities for existing models
fixed warnings with some plots
PatientLevelPrediction 3.0.9
Small bug fixes:
added analysisId into model saving/loading
made external validation saving recursive
added removal of patients with negative TAR when creating population
added option to apply model without preprocessing settings (make them NULL)
updated create study population to remove patients with negative time-at-risk
PatientLevelPrediction 3.0.8
Changes:
merged in bug fix from Martijn - fixed AUC bug causing crash with big data
update SQL code to be compatible with v6.0 OMOP CDM
added save option to external validate PLP
PatientLevelPrediction 3.0.7
Changes:
Updated splitting functions to include a splitby subject and renamed personSplitter to randomSplitter
Cast indices to integer in python functions to fix bug with non integer sparse matrix indices
PatientLevelPrediction 3.0.5
Changes:
Added GLM status to log (will now inform about any fitting issue in log)
Added GBM survival model (still under development)
Added RF quantile regression (still under development)
Updated viewMultiplePlp() to match PLP skeleton package app
Updated single plp vignette with additional example


FEDERAL HILL A film review by James Berardinelli Copyright 1994 James Berardinelli Rating (0 to 10): 5.8
Date Released: 12/9/94 (NY) Running Length: 1:40 Rated: R (Language, mature themes, sex, violence)
Starring: Nicholas Turturro, Anthony De Sando, Libby Langdon, Michael Raynor, Jason Andrews, Robert Turano, Frank Vincent Director: Michael Corrente Producer: Michael Corrente Screenplay: Michael Corrente Cinematography: Richard Crudo Music: David Bravo and Bob Held Distributed by Trimark Pictures
Those leaving FEDERAL HILL with a strong sense of deja vu can be forgiven for that impression. With the possible exception of utilizing an atypical location (Providence, Rhode Island's Federal Hill as opposed to New York City or Long Island), there is little in this film that hasn't been done before, and better.
With a moody score and crisp black-and-white cinematography, the opening scene of FEDERAL HILL, which features the burglary of an upscale Providence residence, promises a lot more than the rest of the film is able to deliver. From this point on, the movie quickly degenerates into an amalgamation of situations and characters pilfered from such efforts as AMONGST FRIENDS, A BRONX TALE, and others.
The story centers around a group of five twenty-something friends: Ralph (Nicholas Turturro), Nicky (Anthony De Sando), Frank (Michael Raynor), Bobby (Jason Andrews), and Joey (Robert Turano), each of whom is given a subplot that contributes to the whole. Ralph, the son of a mentally ill bricklayer, does his work by night, getting both his kicks and his income from robbing rich people's houses. Nicky, Ralph's best friend and cousin, is a small-time cocaine dealer. Frank, the son of a local mobster (GOODFELLAS' Frank Vincent), is constantly trying to prove his worth. Bobby is a loser in debt for $30,000 to a loan shark, and Joey is an ex-con trying to deal with a nagging wife. Also thrown into the mix is Wendy (Libby Langdon), a Brown University student who becomes involved with Nicky.
The interaction of these characters, which is intended to form the backbone of FEDERAL HILL, is more than passingly reminiscent of what went on in Rob Weiss' AMONGST FRIENDS, a far better chronicle of fractured friendships and criminal appeal. Moments of originality are scarce here. Apparently, writer/director Michael Corrente found it less demanding to plunder previous genre entries than strike out in a new direction.
Character development is sketchy at best, with no real growth apparent in anyone. This is certainly due in large part to a script that is more concerned with a story than with those the story is about, but the weak (and largely inexperienced) cast cannot be completely absolved. With the exceptions of Nicholas Turturro, whose performance as Ralph is suitably manic, and the vastly-underused Frank Vincent, none of the actors excel. Especially disappointing are Anthony De Sando and Libby Langdon, who are frequently unconvincing in central roles. The supposed chemistry between them never gives off more than fitful sparks.
It has been repeatedly proven that, when a connection is made with the audience, unpleasant characters often make the most fascinating protagonists (for a recent example, take a look at Quentin Tarantino's PULP FICTION). In FEDERAL HILL, however, Corrente's attempts to forge that link are largely unsuccessful, resulting in a bunch of small-time hoods that it's difficult to care about one way or another.
It's somewhat mystifying why this film has received acclaim at several international film festivals. Perhaps there is a fascination with certain, admittedly-colorful elements of the Italian-American community (this is no GODFATHER or GOODFELLAS, but vestiges of those pictures' "flavor" has been retained). Regardless, despite a solidly- constructed story line, FEDERAL HILL is one of the least innovative or interesting American independent films to come along this year.
- James Berardinelli<EMAIL_ADDRESS>.
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


Terms and Conditions ("Terms")
Effective date: July 29, 2021
Please read these Terms and Conditions ("Terms", "Terms and Conditions") carefully before using Medis (the "Service") operated by Medis ("us", "we", or "our").
Your access to and use of the Service is conditioned on your acceptance of and compliance with these Terms. These Terms apply to all visitors, users and others who access or use the Service.
By accessing or using the Service you agree to be bound by these Terms. If you disagree with any part of the terms then you may not access the Service.
Subscriptions
Some parts of the Service are billed on a subscription basis ("Subscription(s)"). You will be billed in advance on a recurring and periodic basis ("Billing Cycle"). Billing cycles are set either on a monthly or annual basis, depending on the type of subscription plan you select when purchasing a Subscription.
At the end of each Billing Cycle, your Subscription will automatically renew under the exact same conditions unless you cancel it or we cancel it. You may cancel your Subscription renewal through your online account management page.
A valid payment method, including credit card, is required to process the payment for your Subscription. You shall provide us with accurate and complete billing information including full name, address, state, zip code, telephone number, and a valid payment method information. By submitting such payment information, you automatically authorize Medis to charge all Subscription fees incurred through your account to any such payment instruments.
Should automatic billing fail to occur for any reason, we will issue an electronic invoice indicating that you must proceed manually, within a certain deadline date, with the full payment corresponding to the billing period as indicated on the invoice.
Free Trial
Medis may, at its sole discretion, offer a Subscription with a free trial for a limited period of time ("Free Trial").
You may be required to enter your billing information in order to sign up for the Free Trial.
If you do enter your billing information when signing up for the Free Trial, you will not be charged by Medis until the Free Trial has expired. On the last day of the Free Trial period, unless you cancelled your Subscription, you will be automatically charged the applicable Subscription fees for the type of Subscription you have selected.
At any time and without notice, Medis reserves the right to (i) modify the terms and conditions of the Free Trial offer, or (ii) cancel such Free Trial offer.
Fee Changes
Medis, in its sole discretion and at any time, may modify the Subscription fees for the Subscriptions. Any Subscription fee change will become effective at the end of the then-current Billing Cycle.
Medis will provide you with a reasonable prior notice of any change in Subscription fees to give you an opportunity to terminate your Subscription before such change becomes effective.
Your continued use of the Service after the Subscription fee change comes into effect constitutes your agreement to pay the modified Subscription fee amount.
Refunds
Except when required by law, paid Subscription fees are non-refundable.
Intellectual Property
The Service and its original content, features and functionality are and will remain the exclusive property of Medis and its licensors. The Service is protected by copyright, trademark, and other laws of both the Italy and foreign countries. Our trademarks and trade dress may not be used in connection with any product or service without the prior written consent of Medis
Links To Other Web Sites
Our Service may contain links to third-party web sites or services that are not owned or controlled by Medis
Medis has no control over, and assumes no responsibility for, the content, privacy policies, or practices of any third party web sites or services. You further acknowledge and agree that we shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with use of or reliance on any such content, goods or services available on or through any such web sites or services.
We strongly advise you to read the terms and conditions and privacy policies of any third-party web sites or services that you visit.
Termination
We may terminate or suspend your account immediately, without prior notice or liability, for any reason whatsoever, including without limitation if you breach the Terms.
Upon termination, your right to use the Service will immediately cease.
Limitation Of Liability
In no event shall Medis, nor its directors, employees, partners, agents, suppliers, or affiliates, be liable for any indirect, incidental, special, consequential or punitive damages, including without limitation, loss of profits, data, use, goodwill, or other intangible losses, resulting from (i) your access to or use of or inability to access or use the Service; (ii) any conduct or content of any third party on the Service; (iii) any content obtained from the Service; and (iv) unauthorized access, use or alteration of your transmissions or content, whether based on warranty, contract, tort (including negligence) or any other legal theory, whether or not we have been informed of the possibility of such damage, and even if a remedy set forth herein is found to have failed of its essential purpose.
Disclaimer
Your use of the Service is at your sole risk. The Service is provided on an "AS IS" and "AS AVAILABLE" basis. The Service is provided without warranties of any kind, whether express or implied, including, but not limited to, implied warranties of merchantability, fitness for a particular purpose, non-infringement or course of performance.
Medis its subsidiaries, affiliates, and its licensors do not warrant that a) the Service will function uninterrupted, secure or available at any particular time or location; b) any errors or defects will be corrected; c) the Service is free of viruses or other harmful components; or d) the results of using the Service will meet your requirements.
Governing Law
These Terms shall be governed and construed in accordance with the laws of United States, without regard to its conflict of law provisions.
Our failure to enforce any right or provision of these Terms will not be considered a waiver of those rights. If any provision of these Terms is held to be invalid or unenforceable by a court, the remaining provisions of these Terms will remain in effect. These Terms constitute the entire agreement between us regarding our Service, and supersede and replace any prior agreements we might have between us regarding the Service.
Changes
We reserve the right, at our sole discretion, to modify or replace these Terms at any time. If a revision is material we will try to provide at least 30 days notice prior to any new terms taking effect. What constitutes a material change will be determined at our sole discretion.
By continuing to access or use our Service after those revisions become effective, you agree to be bound by the revised terms. If you do not agree to the new terms, please stop using the Service.
Contact Us
If you have any questions about this Privacy Policy, please contact us:
- By email: medis@zihua.li


Renewals Status
Due Books
{% for foo in items %}
{% if foo.issue_status == 1 %}
{% elif foo.issue_status == 2 %}
{% elif foo.issue_status == 3 %}
{% endif %}
{% endfor %}
{# #} Your Renewal Request for book " {{ foo.book.book_name }} " is pending
{{ foo.due_date }}
{# #} Your Renewal Request for book " {{ foo.book.book_name }} " is approved
{{ foo.due_date }}
{# #} Your Renewal Request for book " {{ foo.book.book_name }} " is denied
{{ foo.due_date }}
{% for foo in due_passed %}
{% endfor %}


photofilters library
Classes
- AddictiveBlueFilter
- AddictiveColorSubFilter
-
The AddictiveColorSubFilter class is a SubFilter class to emphasize a color using red, green and
b
values. - AddictiveRedFilter
- AdenFilter
- AmaroFilter
- AshbyFilter
- BrannanFilter
- BrightnessSubFilter
- The BrightnessSubFilter class is a SubFilter class to apply brightness to an image.
- BrooklynFilter
- CharmesFilter
- ClarendonFilter
- ContrastSubFilter
- The ContrastSubFilter class is a SubFilter class to apply contrast to an image.
- CremaFilter
- DogpatchFilter
- EarlybirdFilter
- F1977Filter
- Filter
- The Filter class to define a Filter consists of multiple SubFilters
- GinghamFilter
- GinzaFilter
- GrayScaleSubFilter
- The GrayScaleSubFilter class is a SubFilter class to apply GrayScale to an image.
- HefeFilter
- HelenaFilter
- HudsonFilter
- HueRotationSubFilter
- The HueRotationSubFilter class is a SubFilter class to rotate hue in degrees.
- InkwellFilter
- InvertSubFilter
- The InvertSubFilter class is a SubFilter class to invert an image.
- JunoFilter
- KelvinFilter
- LarkFilter
- LoFiFilter
- LudwigFilter
- MavenFilter
- MayfairFilter
- MoonFilter
- NashvilleFilter
- NoFilter
- PerpetuaFilter
- PhotoFilter
- PhotoFilterSelector
- The PhotoFilterSelector Widget for apply filter from a selected set of filters
- ReyesFilter
- RGBOverlaySubFilter
- The RGBOverlaySubFilter class is a SubFilter class to apply an overlay to an image.
- RGBScaleSubFilter
- The RGBScaleSubFilter class is a SubFilter class to scale RGB values of every pixels in an image.
- RiseFilter
- SaturationSubFilter
- The SaturationSubFilter class is a SubFilter class to apply saturation to an image.
- SepiaSubFilter
- The SepiaSubFilter class is a SubFilter class to apply sepia to an image.
- SierraFilter
- SkylineFilter
- SlumberFilter
- StinsonFilter
- SubFilter
- The SubFilter class is the abstract class to define any SubFilter.
- SutroFilter
- ToasterFilter
- ValenciaFilter
- VesperFilter
- WaldenFilter
- WillowFilter
- XProIIFilter
Properties
-
presetFitersList
↔ List<
Filter> -
read / write
Functions
-
applyFilter(
Map< String, dynamic> params) → List<int> - The global applyfilter function
-
buildThumbnail(
Map< String, dynamic> params) → List<int> - The global buildThumbnail function


Covid-19 herd immunity
Find out how many days it takes until your country reaches covid-19 herd immunity.
Updated at 12:00 (London time) daily.
Country
Daily Average Vaccinations
70% receive first dose in
70% receive second dose in
Last updated
{{row[0]}}
{{row[1]}}
{{row[2]}} days
{{row[3]}} days
{{row[4]}}


Political vandal arrested for tearing down candidate posters in Fingal, Dublin
Exclusive: Gardai watched him cut down one poster and then followed him as he made his way by bicycle to another location
by Ferghal BlaneyA political vandal has been arrested for tearing down candidate posters.
Gardai nabbed the man after he had already damaged up to 50 posters in the Dublin Fingal by-election constituency on Friday night.
The cops watched him cut down one poster with pincers, then followed him as he made his way by bicycle to another location where he was at it again with the snippers.
They subsequently moved in and arrested him, detained him and questioned him at Balbriggan Garda station.
The gardai established that the man was acting alone through questioning, but they found out that he had already done 50 posters.
Most of the posters were left hanging dangerously in the wind, with the potential to cause accidents for motorists or injure pedestrians.
Tearing down the posters of rivals is generally regarded as part of the rough and tumble of electioneering – but nobody ever gets caught.
This is the first time in a long time anyone in political circles can remember somebody actually getting nicked for the offence.
Labour hopeful Duncan Smith was one of those targeted and he told the Irish Mirror that he isn’t bothered personally at being attacked – it means he’s doing well in the race.
But he said that the “malicious” acts have left posters half-hanging and posing dangers to the general public.
He said: “I got a call from the gardai to tell me that I was one of the candidates that has been targeted by a vandal.
“This type of behavior is part of what you’d expect, I wouldn’t be too upset myself.
“But this was a particularly malicious act, there were over 50 posters damaged and they were left hanging dangerously for the most part.
“He seems not to have snipped the last cable tie, so they are left swinging.
“I have a team out tidying them up at the moment.
“People might say it’s a bit of horseplay, but it’s obviously dangerous too and I suppose I’d just like to warn people of that.”
The other candidates targeted in the vandal’s campaign were Lorraine Clifford-Lee of Fianna Fail and Fine Gael’s James Reilly.
How to follow the Irish Mirror on social media
You can like our main Facebook page here.
Our Irish Mirror Sports page - which brings you all your Irish and UK sports news - can be found here.
You can also check out our Irish Mirror GAA sports page.
The Irish Mirror Twitter account is @IrishMirror while our sports account is @MirrorSportIE.
Our Instagram account can be found here.


Charlotte,NC
Tuesday 11 November 2020
15
°C
Sunny
13°C/16°C
Humidity 45%
WindSpeed 12 meters per sec


MongoCollection
public struct MongoCollection<T> where T : Decodable, T : Encodable
A MongoDB collection.
-
Encoder used by this collection for BSON conversions. (e.g. converting
CollectionType
s, indexes, and options to documents).Declaration
Swift
public var encoder: BSONEncoder { get }
-
Decoder used by this collection for BSON conversions (e.g. converting documents to
CollectionType
s).Declaration
Swift
public var decoder: BSONDecoder { get }
-
A
Codable
type associated with thisMongoCollection
instance. This allowsCollectionType
values to be directly inserted into and retrieved from the collection, by encoding/decoding them using theBSONEncoder
andBSONDecoder
. The strategies to be used by the encoder and decoder for certain types can be configured by setting the coding strategies on the options used to create this collection instance. The default strategies are inherited from those set on the database this collection derived from.This type association only exists in the context of this particular
MongoCollection
instance. It is the responsibility of the user to ensure that any data already stored in the collection was encoded from this same type and according to the coding strategies set on this instance.Declaration
Swift
public typealias CollectionType = T
-
The namespace for this collection.
Declaration
Swift
public var namespace: MongoNamespace { get }
-
The name of this collection.
Declaration
Swift
public var name: String { get }
-
The
ReadConcern
set on this collection, ornil
if one is not set.Declaration
Swift
public var readConcern: ReadConcern? { get }
-
The
ReadPreference
set on this collection.Declaration
Swift
public var readPreference: ReadPreference { get }
-
The
WriteConcern
set on this collection, or nil if one is not set.Declaration
Swift
public var writeConcern: WriteConcern? { get }
-
Drops this collection from its parent database.
Throws
Throws:
CommandError
if an error occurs that prevents the command from executing.
Declaration
Swift
public func drop(options: DropCollectionOptions? = nil, session: ClientSession? = nil) throws
-
Starts a
ChangeStream
on a collection. TheCollectionType
will be associated with thefullDocument
field inChangeStreamEvent
s emitted by the returnedChangeStream
. The server will return an error if this method is called on a system collection.Throws
Throws:
CommandError
if an error occurs on the server while creating the change stream.InvalidArgumentError
if the options passed formed an invalid combination.InvalidArgumentError
if the_id
field is projected out of the change stream documents by the pipeline.
Declaration
Swift
public func watch( _ pipeline: [Document] = [], options: ChangeStreamOptions? = nil, session: ClientSession? = nil ) throws -> ChangeStream<ChangeStreamEvent<CollectionType>>
Parameters
pipeline
An array of aggregation pipeline stages to apply to the events returned by the change stream.
options
An optional
ChangeStreamOptions
to use when constructing the change stream.session
An optional
ClientSession
to use with this change stream.Return Value
A
ChangeStream
on a specific collection. -
Starts a
ChangeStream
on a collection. Associates the specifiedCodable
typeT
with thefullDocument
field in theChangeStreamEvent
s emitted by the returnedChangeStream
. The server will return an error if this method is called on a system collection.Throws
Throws:
CommandError
if an error occurs on the server while creating the change stream.InvalidArgumentError
if the options passed formed an invalid combination.InvalidArgumentError
if the_id
field is projected out of the change stream documents by the pipeline.
Declaration
Swift
public func watch<FullDocType: Codable>( _ pipeline: [Document] = [], options: ChangeStreamOptions? = nil, session: ClientSession? = nil, withFullDocumentType _: FullDocType.Type ) throws -> ChangeStream<ChangeStreamEvent<FullDocType>>
Parameters
pipeline
An array of aggregation pipeline stages to apply to the events returned by the change stream.
options
An optional
ChangeStreamOptions
to use when constructing the change stream.session
An optional
ClientSession
to use with this change stream.withFullDocumentType
The type that the
fullDocument
field of the emittedChangeStreamEvent
s will be decoded to.Return Value
A
ChangeStream
on a specific collection. -
Starts a
ChangeStream
on a collection. Associates the specifiedCodable
typeT
with the returnedChangeStream
. The server will return an error if this method is called on a system collection.Throws
Throws:
CommandError
if an error occurs on the server while creating the change stream.InvalidArgumentError
if the options passed formed an invalid combination.InvalidArgumentError
if the_id
field is projected out of the change stream documents by the pipeline.
Declaration
Swift
public func watch<EventType: Codable>( _ pipeline: [Document] = [], options: ChangeStreamOptions? = nil, session: ClientSession? = nil, withEventType _: EventType.Type ) throws -> ChangeStream<EventType>
Parameters
pipeline
An array of aggregation pipeline stages to apply to the events returned by the change stream.
options
An optional
ChangeStreamOptions
to use when constructing the change stream.session
An optional
ClientSession
to use with this change stream.withEventType
The type that the entire change stream response will be decoded to and that will be returned when iterating through the change stream.
Return Value
A
ChangeStream
on a specific collection. -
Finds a single document and deletes it, returning the original.
Throws
Throws:
InvalidArgumentError
if any of the provided options are invalid.LogicError
if the provided session is inactive.CommandError
if an error occurs that prevents the command from executing.WriteError
if an error occurs while executing the command.DecodingError
if the deleted document cannot be decoded to aCollectionType
value.
Declaration
Swift
@discardableResult public func findOneAndDelete( _ filter: Document, options: FindOneAndDeleteOptions? = nil, session: ClientSession? = nil ) throws -> CollectionType?
Parameters
filter
Document
representing the match criteriaoptions
Optional
FindOneAndDeleteOptions
to use when executing the commandsession
Optional
ClientSession
to use when executing this commandReturn Value
The deleted document, represented as a
CollectionType
, ornil
if no document was deleted. -
Finds a single document and replaces it, returning either the original or the replaced document.
Throws
Throws:
InvalidArgumentError
if any of the provided options are invalid.LogicError
if the provided session is inactive.CommandError
if an error occurs that prevents the command from executing.WriteError
if an error occurs while executing the command.DecodingError
if the replaced document cannot be decoded to aCollectionType
value.EncodingError
ifreplacement
cannot be encoded to aDocument
.
Declaration
Swift
@discardableResult public func findOneAndReplace( filter: Document, replacement: CollectionType, options: FindOneAndReplaceOptions? = nil, session: ClientSession? = nil ) throws -> CollectionType?
Parameters
filter
Document
representing the match criteriareplacement
a
CollectionType
to replace the found documentoptions
Optional
FindOneAndReplaceOptions
to use when executing the commandsession
Optional
ClientSession
to use when executing this commandReturn Value
A
CollectionType
, representing either the original document or its replacement, depending on selected options, ornil
if there was no match. -
Finds a single document and updates it, returning either the original or the updated document.
Throws
Throws:
InvalidArgumentError
if any of the provided options are invalid.LogicError
if the provided session is inactive.CommandError
if an error occurs that prevents the command from executing.WriteError
if an error occurs while executing the command.DecodingError
if the updated document cannot be decoded to aCollectionType
value.
Declaration
Swift
@discardableResult public func findOneAndUpdate( filter: Document, update: Document, options: FindOneAndUpdateOptions? = nil, session: ClientSession? = nil ) throws -> CollectionType?
Parameters
filter
Document
representing the match criteriaupdate
a
Document
containing updates to applyoptions
Optional
FindOneAndUpdateOptions
to use when executing the commandsession
Optional
ClientSession
to use when executing this commandReturn Value
A
CollectionType
representing either the original or updated document, depending on selected options, ornil
if there was no match. -
Creates an index over the collection for the provided keys with the provided options.
Throws
Throws:
WriteError
if an error occurs while performing the write.CommandError
if an error occurs that prevents the command from executing.InvalidArgumentError
if the options passed in form an invalid combination.LogicError
if the provided session is inactive.EncodingError
if an error occurs while encoding the index specification or options.
Declaration
Swift
@discardableResult public func createIndex( _ keys: Document, indexOptions: IndexOptions? = nil, options: CreateIndexOptions? = nil, session: ClientSession? = nil ) throws -> String
Parameters
keys
a
Document
specifing the keys for the indexindexOptions
Optional
IndexOptions
to use for the indexoptions
Optional
CreateIndexOptions
to use for the commandsession
Optional
ClientSession
to use when executing this commandReturn Value
The name of the created index.
-
Creates an index over the collection for the provided keys with the provided options.
Throws
Throws:
WriteError
if an error occurs while performing the write.CommandError
if an error occurs that prevents the command from executing.InvalidArgumentError
if the options passed in form an invalid combination.LogicError
if the provided session is inactive.EncodingError
if an error occurs while encoding the index specification or options.
Declaration
Swift
@discardableResult public func createIndex( _ model: IndexModel, options: CreateIndexOptions? = nil, session: ClientSession? = nil ) throws -> String
Parameters
model
An
IndexModel
representing the keys and options for the indexoptions
Optional
CreateIndexOptions
to use for the commandsession
Optional
ClientSession
to use when executing this commandReturn Value
The name of the created index.
-
Creates multiple indexes in the collection.
Throws
Throws:
WriteError
if an error occurs while performing the write.CommandError
if an error occurs that prevents the command from executing.InvalidArgumentError
if the options passed in form an invalid combination.LogicError
if the provided session is inactive.EncodingError
if an error occurs while encoding the index specifications or options.
Declaration
Swift
@discardableResult public func createIndexes( _ models: [IndexModel], options: CreateIndexOptions? = nil, session: ClientSession? = nil ) throws -> [String]
Parameters
models
An
[IndexModel]
specifying the indexes to createoptions
Optional
CreateIndexOptions
to use for the commandsession
Optional
ClientSession
to use when executing this commandReturn Value
An
[String]
containing the names of all the indexes that were created. -
Drops a single index from the collection by the index name.
Throws
Throws:
WriteError
if an error occurs while performing the command.CommandError
if an error occurs that prevents the command from executing.InvalidArgumentError
if the options passed in form an invalid combination.EncodingError
if an error occurs while encoding the options.
Declaration
Swift
public func dropIndex( _ name: String, options: DropIndexOptions? = nil, session: ClientSession? = nil ) throws
Parameters
name
The name of the index to drop
options
Optional
DropIndexOptions
to use for the commandsession
Optional
ClientSession
to use when executing this command -
Attempts to drop a single index from the collection given the keys describing it.
Throws
Throws:
WriteError
if an error occurs while performing the command.CommandError
if an error occurs that prevents the command from executing.InvalidArgumentError
if the options passed in form an invalid combination.LogicError
if the provided session is inactive.EncodingError
if an error occurs while encoding the options.
Declaration
Swift
public func dropIndex( _ keys: Document, options: DropIndexOptions? = nil, session: ClientSession? = nil ) throws
Parameters
keys
a
Document
containing the keys for the index to dropoptions
Optional
DropIndexOptions
to use for the commandsession
Optional
ClientSession
to use when executing this command -
Attempts to drop a single index from the collection given an
IndexModel
describing it.Throws
Throws:
WriteError
if an error occurs while performing the command.CommandError
if an error occurs that prevents the command from executing.InvalidArgumentError
if the options passed in form an invalid combination.LogicError
if the provided session is inactive.EncodingError
if an error occurs while encoding the options.
Declaration
Swift
public func dropIndex( _ model: IndexModel, options: DropIndexOptions? = nil, session: ClientSession? = nil ) throws
Parameters
model
An
IndexModel
describing the index to dropoptions
Optional
DropIndexOptions
to use for the commandsession
Optional
ClientSession
to use when executing this command -
Drops all indexes in the collection.
Throws
Throws:
WriteError
if an error occurs while performing the command.CommandError
if an error occurs that prevents the command from executing.InvalidArgumentError
if the options passed in form an invalid combination.LogicError
if the provided session is inactive.EncodingError
if an error occurs while encoding the options.
Declaration
Swift
public func dropIndexes( options: DropIndexOptions? = nil, session: ClientSession? = nil ) throws
Parameters
options
Optional
DropIndexOptions
to use for the commandsession
Optional
ClientSession
to use when executing this command -
Retrieves a list of the indexes currently on this collection.
Throws
LogicError
if the provided session is inactive.Declaration
Swift
public func listIndexes(session: ClientSession? = nil) throws -> MongoCursor<IndexModel>
Parameters
session
Optional
ClientSession
to use when executing this commandReturn Value
A
MongoCursor
over theIndexModel
s. -
Retrieves a list of names of the indexes currently on this collection.
Throws
LogicError
if the provided session is inactive.Declaration
Swift
public func listIndexNames(session: ClientSession? = nil) throws -> [String]
Parameters
session
Optional
ClientSession
to use when executing this commandReturn Value
A
MongoCursor
over the index names. -
Finds the documents in this collection which match the provided filter.
Throws
Throws:
InvalidArgumentError
if the options passed are an invalid combination.LogicError
if the provided session is inactive.EncodingError
if an error occurs while encoding the options to BSON.
Declaration
Swift
public func find( _ filter: Document = [:], options: FindOptions? = nil, session: ClientSession? = nil ) throws -> MongoCursor<CollectionType>
Parameters
filter
A
Document
that should match the queryoptions
Optional
FindOptions
to use when executing the commandsession
Optional
ClientSession
to use when executing this commandReturn Value
A
MongoCursor
over the resultingDocument
s -
Finds a single document in this collection that matches the provided filter.
Throws
Throws:
InvalidArgumentError
if the options passed are an invalid combination.LogicError
if the provided session is inactive.EncodingError
if an error occurs while encoding the options to BSON.
Declaration
Swift
public func findOne( _ filter: Document = [:], options: FindOneOptions? = nil, session: ClientSession? = nil ) throws -> T?
Parameters
filter
A
Document
that should match the queryoptions
Optional
FindOneOptions
to use when executing the commandsession
Optional
ClientSession
to use when executing this commandReturn Value
the resulting
Document
, or nil if there is no match -
Runs an aggregation framework pipeline against this collection.
Throws
Throws:
InvalidArgumentError
if the options passed are an invalid combination.LogicError
if the provided session is inactive.EncodingError
if an error occurs while encoding the options to BSON.
Declaration
Swift
public func aggregate( _ pipeline: [Document], options: AggregateOptions? = nil, session: ClientSession? = nil ) throws -> MongoCursor<Document>
Parameters
pipeline
an
[Document]
containing the pipeline of aggregation operations to performoptions
Optional
AggregateOptions
to use when executing the commandsession
Optional
ClientSession
to use when executing this commandReturn Value
A
MongoCursor
over the resultingDocument
s -
Counts the number of documents in this collection matching the provided filter. Note that an empty filter will force a scan of the entire collection. For a fast count of the total documents in a collection see
estimatedDocumentCount
.Declaration
Swift
public func countDocuments( _ filter: Document = [:], options: CountDocumentsOptions? = nil, session: ClientSession? = nil ) throws -> Int
Parameters
filter
a
Document
, the filter that documents must match in order to be countedoptions
Optional
CountDocumentsOptions
to use when executing the commandsession
Optional
ClientSession
to use when executing this commandReturn Value
The count of the documents that matched the filter
-
Gets an estimate of the count of documents in this collection using collection metadata.
Declaration
Swift
public func estimatedDocumentCount( options: EstimatedDocumentCountOptions? = nil, session: ClientSession? = nil ) throws -> Int
Parameters
options
Optional
EstimatedDocumentCountOptions
to use when executing the commandsession
Optional
ClientSession
to use when executing this commandReturn Value
an estimate of the count of documents in this collection
-
Finds the distinct values for a specified field across the collection.
Throws
Throws:
CommandError
if an error occurs that prevents the command from executing.InvalidArgumentError
if the options passed in form an invalid combination.LogicError
if the provided session is inactive.EncodingError
if an error occurs while encoding the options to BSON.
Declaration
Swift
public func distinct( fieldName: String, filter: Document = [:], options: DistinctOptions? = nil, session: ClientSession? = nil ) throws -> [BSON]
Parameters
fieldName
The field for which the distinct values will be found
filter
a
Document
representing the filter documents must match in order to be considered for the operationoptions
Optional
DistinctOptions
to use when executing the commandsession
Optional
ClientSession
to use when executing this commandReturn Value
A
[BSONValue]
containing the distinct values for the specified criteria -
Encodes the provided value to BSON and inserts it. If the value is missing an identifier, one will be generated for it.
Throws
Throws:
WriteError
if an error occurs while performing the command.CommandError
if an error occurs that prevents the command from executing.InvalidArgumentError
if the options passed in form an invalid combination.LogicError
if the provided session is inactive.EncodingError
if an error occurs while encoding theCollectionType
to BSON.
Declaration
Swift
@discardableResult public func insertOne( _ value: CollectionType, options: InsertOneOptions? = nil, session: ClientSession? = nil ) throws -> InsertOneResult?
Parameters
value
A
CollectionType
value to encode and insertoptions
Optional
InsertOneOptions
to use when executing the commandsession
Optional
ClientSession
to use when executing this commandReturn Value
The optional result of attempting to perform the insert. If the
WriteConcern
is unacknowledged,nil
is returned. -
Encodes the provided values to BSON and inserts them. If any values are missing identifiers, the driver will generate them.
Throws
Throws:
BulkWriteError
if an error occurs while performing any of the writes.CommandError
if an error occurs that prevents the command from executing.InvalidArgumentError
if the options passed in form an invalid combination.LogicError
if the provided session is inactive.EncodingError
if an error occurs while encoding theCollectionType
or options to BSON.
Declaration
Swift
@discardableResult public func insertMany( _ values: [CollectionType], options: InsertManyOptions? = nil, session: ClientSession? = nil ) throws -> InsertManyResult?
Parameters
values
The
CollectionType
values to insertoptions
optional
InsertManyOptions
to use while executing the operationsession
Optional
ClientSession
to use when executing this commandReturn Value
an
InsertManyResult
, ornil
if the write concern is unacknowledged. -
Replaces a single document matching the provided filter in this collection.
Throws
Throws:
WriteError
if an error occurs while performing the command.CommandError
if an error occurs that prevents the command from executing.InvalidArgumentError
if the options passed in form an invalid combination.LogicError
if the provided session is inactive.EncodingError
if an error occurs while encoding theCollectionType
or options to BSON.
Declaration
Swift
@discardableResult public func replaceOne( filter: Document, replacement: CollectionType, options: ReplaceOptions? = nil, session: ClientSession? = nil ) throws -> UpdateResult?
Parameters
filter
A
Document
representing the match criteriareplacement
The replacement value, a
CollectionType
value to be encoded and insertedoptions
Optional
ReplaceOptions
to use when executing the commandsession
Optional
ClientSession
to use when executing this commandReturn Value
The optional result of attempting to replace a document. If the
WriteConcern
is unacknowledged,nil
is returned. -
Updates a single document matching the provided filter in this collection.
Throws
Throws:
WriteError
if an error occurs while performing the command.CommandError
if an error occurs that prevents the command from executing.InvalidArgumentError
if the options passed in form an invalid combination.LogicError
if the provided session is inactive.EncodingError
if an error occurs while encoding the options to BSON.
Declaration
Swift
@discardableResult public func updateOne( filter: Document, update: Document, options: UpdateOptions? = nil, session: ClientSession? = nil ) throws -> UpdateResult?
Parameters
filter
A
Document
representing the match criteriaupdate
A
Document
representing the update to be applied to a matching documentoptions
Optional
UpdateOptions
to use when executing the commandsession
Optional
ClientSession
to use when executing this commandReturn Value
The optional result of attempting to update a document. If the
WriteConcern
is unacknowledged,nil
is returned. -
Updates multiple documents matching the provided filter in this collection.
Throws
Throws:
WriteError
if an error occurs while performing the command.CommandError
if an error occurs that prevents the command from executing.InvalidArgumentError
if the options passed in form an invalid combination.LogicError
if the provided session is inactive.EncodingError
if an error occurs while encoding the options to BSON.
Declaration
Swift
@discardableResult public func updateMany( filter: Document, update: Document, options: UpdateOptions? = nil, session: ClientSession? = nil ) throws -> UpdateResult?
Parameters
filter
A
Document
representing the match criteriaupdate
A
Document
representing the update to be applied to matching documentsoptions
Optional
UpdateOptions
to use when executing the commandsession
Optional
ClientSession
to use when executing this commandReturn Value
The optional result of attempting to update multiple documents. If the write concern is unacknowledged, nil is returned
-
Deletes a single matching document from the collection.
Throws
Throws:
WriteError
if an error occurs while performing the command.CommandError
if an error occurs that prevents the command from executing.InvalidArgumentError
if the options passed in form an invalid combination.LogicError
if the provided session is inactive.EncodingError
if an error occurs while encoding the options to BSON.
Declaration
Swift
@discardableResult public func deleteOne( _ filter: Document, options: DeleteOptions? = nil, session: ClientSession? = nil ) throws -> DeleteResult?
Parameters
filter
A
Document
representing the match criteriaoptions
Optional
DeleteOptions
to use when executing the commandsession
Optional
ClientSession
to use when executing this commandReturn Value
The optional result of performing the deletion. If the
WriteConcern
is unacknowledged,nil
is returned. -
Deletes multiple documents
Throws
Throws:
WriteError
if an error occurs while performing the command.CommandError
if an error occurs that prevents the command from executing.InvalidArgumentError
if the options passed in form an invalid combination.LogicError
if the provided session is inactive.EncodingError
if an error occurs while encoding the options to BSON.
Declaration
Swift
@discardableResult public func deleteMany( _ filter: Document, options: DeleteOptions? = nil, session: ClientSession? = nil ) throws -> DeleteResult?
Parameters
filter
Document representing the match criteria
options
Optional
DeleteOptions
to use when executing the commandsession
Optional
ClientSession
to use when executing this commandReturn Value
The optional result of performing the deletion. If the
WriteConcern
is unacknowledged,nil
is returned. -
Execute multiple write operations.
Throws
Throws:
InvalidArgumentError
ifrequests
is empty.LogicError
if the provided session is inactive.BulkWriteError
if any error occurs while performing the writes. This includes errors that would typically be thrown asRuntimeError
s orCommandError
s elsewhere.EncodingError
if an error occurs while encoding theCollectionType
or the options to BSON.
Declaration
Swift
@discardableResult public func bulkWrite( _ requests: [WriteModel<T>], options: BulkWriteOptions? = nil, session: ClientSession? = nil ) throws -> BulkWriteResult?
Parameters
requests
a
[WriteModel]
containing the writes to perform.options
optional
BulkWriteOptions
to use while executing the operation.session
Optional
ClientSession
to use when executing this commandReturn Value
a
BulkWriteResult
, ornil
if the write concern is unacknowledged.


Home
About Me
My Art Works
My Projects
How To Reach Me
Contact
Me
This is how you can reach me...
Email:
<EMAIL_ADDRESS>Phone:
9880087187
Address:
New Horizon College of Engineering, Outer ring road, Bangalore- 560017
Let's get in touch
Name
Organisation
Email Address
Phone Number
Message
SUBMIT


A nanoscopic progress bar. Featuring realistic trickle animations to convince your users that something is happening!


Features
The below list is not always up-to-date.
If you cannot find the features you need here, then please contact us.
Features of the sites created using Yanel
- search (full-text similar to Google, respectful of access rights)
- internationalized pages
- error pages are customizable
- images and videos can be presented in a gallery
- RSS and Atom feeds support
- contact page with spam protection
- statistics
- compatible with major browsers (Internet Explorer, Firefox, Chrome, Safari) (when using the supported editors)
- search engine optimization (SEO)
- complete control over URLs used
- in progress: Google sitemap support
Content creation
- create/edit/delete static pages
- Web-based editor (TinyMCE, Xinha) with management facilities for:
- text
- images or other assets (PDF documents, Flash videos, or other binary files)
- lists
- links (incl. external sites, anchors, and redirections)
- simple wiki editor (JSPwiki syntax) for quick editing
- planned: create/edit/delete navigation links
- create/edit/delete custom element
Access control
- secure access (SSL)
- login/logout using username and password or OpenID
- everything except the password can optionally be remembered for each user by Yanel
- forgotten passwords handling
- SSO using CAS
- create/edit/delete users
- create/edit/delete groups or sub-groups of users
- create/edit/delete access policies for groups
Content management
- page administration
- site administration
- archival/migration/backup facilities (import/export, easy zipping and downloading of a content tree)
- versioning (with creator, creation date, editor, and publisher metadata)
- workflow (incl. draft, approved and published states and validity range)
- metadata management (incl. keywords and description)
- task scheduler


This is a page for running javascript snippets that CBC-MAC hash to 296b8d7cb78a243dda4d0a61d33bbdd1 only


| DOSE: |
|
oral |
Pharms - Zaleplon |
(pill / tablet) |
My experiments with zaleplon were over a year ago. Some background: at the time I was 18 y/o with extensive experience with Tryptamines, Phenethylamines, and Dissociatives... As well as the various uppers and downers so commonly abused my people my age (alcohol, opiates, benzos, etc.). I was not on any other medication at the time of any of these experiences (herbal or otherwise).
Anyway. Around December of '04 I was prescribed Zaleplon for 'insomnia.' I had tried Ambien (Zolpidem) before without much luck. Being the bored 18 year old that I was at the time, the first thing I did when I got home with my bottle of Sonata (around noon or so), was pop one of the 10 mg caps. That first experience was rather uneventful. After a half hour or so I began to see slight visual distortions, very similar to the 'waves' I experienced during various tryptamine experiences. In addition to the distortion, I felt a little dreamy and 'out of it' which I (at the time) attributed the the hypnotic properties of Sonata (after all its a sleeping med).
The next day around 3 pm I ingested 20 mg dissolved in de-caf tea (chamomile I believe it was). After about 15 minutes, I noticed the same kind of visual distortion I experienced the previous day. However they continued to increase in intensity until my entire scope of vision was an undulating wave. At about T+30 this abrubtly ceased, and the real fun started. It is important to understand that there is a large amount of amnesia associated with the effects of this drug, so bits and pieces are missing, but the important memories have stuck with me to this day. Within 45 minutes of ingestion, I began to experience a very calm, warm feeling of contentedness (much like the feeling I got with upper level DXM and LSD). This feeling quickly gave way to a host of hallucinations that I can only begin to describe.
Now first things first, I have experienced roughly 20 different hallucinogens in my short life and with the exception of 2 (Dextromethorphan HBR and Ketamine) I had never recieved 'true hallucinations,' only visual distortion and Closed eye images and the likes. And even those 'true' hallucinations I had experienced up until then, they were quick and fleeting. With Zaleplon however, I had a good 2 hours of 'true' hallucinations. (non stop as far as I can remember... excluding my amnesia... so a solid 90 minutes that I recall).
One after another... I SAW things that WERE NOT THERE. Open eyed with interaction. From tiny gnomes running all over my house to a neon green web on my floor that I could manipulate with my hands. And many things in between. I can safely and honestly say that Zaleplon blew away LSD, 2CE, DXM and every other 'hallucinogen' I have ever tried. The irony obviously being that Zaleplon was given to me by a pharmacist and a doctor.
I had been prescribed 30 10mg pills, and over the following 6 days I proceeded to ingest all the remaining 270mg. The majority of those 6 days is gone as far as memory. I experienced far more severe amnesia than I had up until then (Even ETOH blackouts I could 'sort of' piece together). My behavior was very bizarre and erratic according to everyone I interacted with during that time. Many of the people in my social group knew nothing of my chemical experimentation up until then. One thing I do remember is that my use of Zaleplon was completely compulsive with no regards to any consequences (thank god... or whoever... that I didnt hallucinate an empty highway during rush hour).
After I came to and realized the power of Zaleplon, I was compelled to discover the cause of my 'odd' reaction. I did very much research, including conversing with experienced pharmacologists.

Honestly the only reason I posted this is to perhaps inspire a study of this class of drugs as hallucinogens. If only one could produce a chemical that would cause this reaction in everyone.
A Final Note: The Irony surrounding this group of experiences is astounding. 1.Zaleplon is touted as a 'safe' sleeping med, while benzos are far safer in my case.
2.This is only sched. IV and it is far more powerful than any other illegal or legal drug for me.
3.To top it all off it didnt even make me tired, if anything it paradoxically made it impossible for me to sleep (I tried to sleep right after taking 20mgs once and woke up tripping heavily an hour later). So much for 'safe' Pharmies.
Experience Reports are the writings and opinions of the individual authors who submit them.
Some of the activities described are dangerous and/or illegal and none are recommended by Erowid.


{% extends "layout.html" %} {% block page_title %} Money Claims Prototype {% endblock %} {% block proposition_header %} {% set my_account="2" %} {% include "includes/propositional_navigation.html" %} {% endblock %} {% block content %} {% include "includes/phase_banner_beta.html" %} Back Explain why you can't pay now {% if data['som'] == 1 %} {% elif data['som'] == 2 %} {% else %} {% endif %} Use the box to explain Enter your reasons {{data['non-payment-reason']}} {% if data['som'] == 1 %} You'll also need to answer some questions about your finances {% elif data['som'] == 2 %} {% else %} You'll also need to answer some questions about your finances {% endif %}


We have a bug. On your first connection of speaker module, your phone will redial your last caller.
To ensure this only happens once go to settings -> connections -> bluetooth, then select Moduware Speaker and switch off "call audio"