Comments (1)
Hi @zaarcvon thank you for reporting this! Good catch! You'll see that in the rest of the function we avoid using the dimension names precisely for this reason but that line must have slipped past our tests.
The fix you suggests would work and so would something like:
da_filter.loc[{dims[0]=0, dims[1]=0}] = 0
Would you be interested in contributing this fix? If so, have a look at our Contributing Guide. A good test for this would be to change the name the coordinates in one of our test datasets and then run the filter to make sure it doesn't produce an error.
from harmonica.
Related Issues (20)
- Add progress bar to tesseroid forward modelling
- Remove the depth_type argument from equivalent sources
- Better default for depth in equivalent sources HOT 4
- Better default for window_size in EquivalentSourcesGB
- Equivalent sources specifically for magnetic data HOT 1
- Clarify project overview
- Significant differences in topography free gravity disturbance when extending the dem by 156km beyond the gravity data HOT 4
- Source magnetization direction should not be optional in reduction to the pole
- Issue with prism_magnetic - unwanted asymmetry in solution HOT 6
- Add functions to calculate admittance and coherence flexural properties of the lithosphere HOT 2
- Change the shape of the magnetization in magnetic forward functions
- Merge magnetic forward functions into a single one
- Replace `color` for `fill` in PyGMT plots
- Update magnetic forward functions for dipoles
- Raise error when GRD file is corrupted HOT 1
- Inverted sign in upward derivative filter HOT 1
- Total gradient amplitude transformation HOT 7
- PyGMT figures are not being showed in the latest docs HOT 3
- Attributes with trailing underscore are not properly shown in docs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from harmonica.