Skip to content
Merged

Dev #125

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .zenodo.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"title": "Inver4Geom: 3D geometric gravity inversions",
"title": "Invert4Geom: 3D geometric gravity inversions",
"description": "<p><strong>Invert4Geom</strong> is a Python library for performing 3D geometric gravity inversions, where the aim is to recover the geometry of a density contrast.</p><p><strong>Documentation</strong>: <a href=\"https://invert4geom.readthedocs.io/\">https://invert4geom.readthedocs.io/</a></p><p><strong>Source code</strong>: <a href=\"https://github.com/mdtanker/invert4geom\">https://github.com/mdtanker/invert4geom</a></p>",
"creators": [
{
"name": "The Invert4Geom Community"
"name": "Invert4Geom Community"
},
{
"name": "Tankersley, Matt",
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

This release is a major refactor of code with the goal of simplifying the user experience. Before, most of the code was written as functions, which required passing many parameters between functions, and outputs of one function to be used as input to the next function. This made using the library complicated, leading to easy mistakes and bugs. Most of the code has now been update to use object oriented programming (OOP), where it makes sense. **Unfortunately, this major refactor completely breaks the codebase!** For a small single-developer project like this, it is currently not worth the effort of proper slow deprecation of changed functions! Make sure to go through the documentation and examples and update your code accordingly before your update to this or future versions of the software.
This release is a major refactor of code with the goal of simplifying the user experience. Before, most of the code was written as functions, which required passing many parameters between functions, and outputs of one function to be used as input to the next function. This made using the library complicated, leading to easy mistakes and bugs. Most of the code has now been update to use object oriented programming (OOP), where it makes sense. **Unfortunately, this major refactor breaks part of the codebase!** For a small single-developer project like this, it is currently not worth the effort of proper slow deprecation of changed functions! Make sure to go through the documentation and examples and update your code accordingly before your update to this or future versions of the software.

### ✏️ Changed
- Gravity data inputs should now be in xarray Datasets, instead of pandas DataFrames.
Expand Down
4 changes: 4 additions & 0 deletions src/invert4geom/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ def _nearest_grid_fill(
filled grid
"""

# TODO: also check out rasterio fillnodata() https://rasterio.readthedocs.io/en/latest/api/rasterio.fill.html#rasterio.fill.fillnodata
# uses https://gdal.org/en/stable/api/gdal_alg.html#_CPPv414GDALFillNodata15GDALRasterBandH15GDALRasterBandHdiiPPc16GDALProgressFuncPv
# can fill with nearest neighbor or inverse distance weighting

# get coordinate names
original_dims = list(grid.sizes.keys())

Expand Down
Loading