Skip to content

Commit

Permalink
Merge pull request #1 from sun-data/feature/interpolation-multilinear-1d
Browse files Browse the repository at this point in the history
Added implementation for 1D linear interpolation to `regridding.regrid()`
  • Loading branch information
byrdie committed Dec 4, 2023
2 parents 0181a41 + 9eeb0f2 commit 00ae2dd
Show file tree
Hide file tree
Showing 16 changed files with 738 additions and 467 deletions.
1 change: 0 additions & 1 deletion .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
push:
branches:
- main
pull_request:

permissions:
pages: write
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@

name: tests

on: [push, workflow_dispatch, pull_request]
on:
push:
branches:
- main
pull_request:

jobs:
build:
Expand Down
13 changes: 13 additions & 0 deletions docs/refs.bib
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,16 @@ @article{Kumar2018
keywords = {Axis-crossing, Computational Geometry, Polygons, Point-in-Polygon test, Winding Number},
abstract = {This work is an extension of an axis-crossing algorithm to compute winding number for solving point in polygon for an arbitary polygon. Polygons are popular drawings in computer graphics to represent different types of structures with approximations. Solutions for point-in-polygons are many, like even-odd rule, positive-negative number, and winding number. This paper mainly deals with improvements of ‘A winding number and point in polygon algorithm’. Point in polygon is a fundamental problem and has various applications in ray tracing, computer graphics, image processing, gaming applications, robotics, acoustics, geo-science etc. The main focus of this paper explains about winding number for a closed polygon ‘S’, to test whether point ‘P’ lies either inside or outside with respect to positive and negative axis-crossing algorithm method.}
}
@article{Ramshaw1985,
title = {Conservative rezoning algorithm for generalized two-dimensional meshes},
journal = {Journal of Computational Physics},
volume = {59},
number = {2},
pages = {193-199},
year = {1985},
issn = {0021-9991},
doi = {https://doi.org/10.1016/0021-9991(85)90141-X},
url = {https://www.sciencedirect.com/science/article/pii/002199918590141X},
author = {John D Ramshaw},
abstract = {A method is presented for transferring a conserved quantity Q from one generalized mesh to another when the volumetric density of Q is uniform within each cell of the original mesh.}
}
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ test = [
]
doc = [
"pytest",
"scipy",
"matplotlib",
"graphviz",
"sphinx-autodoc-typehints",
Expand Down
1 change: 1 addition & 0 deletions regridding/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from . import math
from . import geometry
from ._find_indices import *
from ._weights import *
from ._interp_ndarray import *
from ._regrid import *
Loading

0 comments on commit 00ae2dd

Please sign in to comment.