diff --git a/.zenodo.json b/.zenodo.json index 47dc8ba..cf2f112 100644 --- a/.zenodo.json +++ b/.zenodo.json @@ -1,9 +1,9 @@ { - "title": "Inver4Geom: 3D geometric gravity inversions", + "title": "Invert4Geom: 3D geometric gravity inversions", "description": "
Invert4Geom is a Python library for performing 3D geometric gravity inversions, where the aim is to recover the geometry of a density contrast.
Documentation: https://invert4geom.readthedocs.io/
Source code: https://github.com/mdtanker/invert4geom
", "creators": [ { - "name": "The Invert4Geom Community" + "name": "Invert4Geom Community" }, { "name": "Tankersley, Matt", diff --git a/CHANGELOG.md b/CHANGELOG.md index d5822f6..b2a62b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/src/invert4geom/utils.py b/src/invert4geom/utils.py index 9b605c8..b997625 100644 --- a/src/invert4geom/utils.py +++ b/src/invert4geom/utils.py @@ -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())