Skip to content

Commit 4d76259

Browse files
authored
Merge pull request #1 from pelson/code
Initial addition of code.
2 parents bc8bede + abce9b9 commit 4d76259

File tree

5 files changed

+620
-0
lines changed

5 files changed

+620
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*.pyc
2+
*.so
3+
__pycache__
4+
.egg-info
5+

setup.py

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
from __future__ import absolute_import, division, print_function
2+
3+
from distutils.core import setup
4+
import os
5+
6+
import numpy as np
7+
import setuptools
8+
9+
from Cython.Build import cythonize
10+
11+
12+
extensions = [setuptools.Extension('stratify._vinterp',
13+
['stratify/_vinterp.pyx'],
14+
include_dirs=[np.get_include()])]
15+
16+
setup(
17+
name='stratify',
18+
description='Vectorized interpolators that are especially useful for Nd vertical interpolation/stratification of atmospheric and oceanographic datasets',
19+
version='0.2.0',
20+
ext_modules=cythonize(extensions),
21+
packages=['stratify', 'stratify.tests'],
22+
classifiers=[
23+
'Development Status :: 3 - Alpha',
24+
('License :: OSI Approved :: '
25+
'License :: OSI Approved :: BSD License'),
26+
'Operating System :: MacOS :: MacOS X',
27+
'Operating System :: POSIX',
28+
'Operating System :: POSIX :: AIX',
29+
'Operating System :: POSIX :: Linux',
30+
'Operating System :: Microsoft :: Windows',
31+
'Programming Language :: Python',
32+
'Programming Language :: Python :: 2',
33+
'Programming Language :: Python :: 2.7',
34+
'Programming Language :: Python :: 3',
35+
'Programming Language :: Python :: 3.4',
36+
'Programming Language :: Python :: 3.5',
37+
'Topic :: Scientific/Engineering',
38+
'Topic :: Scientific/Engineering :: GIS',
39+
],
40+
)

stratify/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from __future__ import absolute_import
2+
3+
from ._vinterp import (interpolate,
4+
INTERPOLATE_LINEAR, INTERPOLATE_NEAREST,
5+
EXTRAPOLATE_NAN, EXTRAPOLATE_NEAREST)
6+

0 commit comments

Comments
 (0)