-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
regridding yields 0 when there should be no value #63
Comments
Yes, this behavior is discussed in #15 #51 In short, "regridding" is just a sparse matrix multiply; the output matrix from a sparse matrix multiply is zero by default.
Filling unmapped points with non-zeros values will make the entire regridding operation non-linear (not like A side question: how did you make the map plots? They look quite fancy... |
Okay, thank you. I'll have a look on that. The shown maps are a combination of OpenStreetMaps and the image, which I generate like shown above. I use a tool called QGIS which allows me to combine different geo-referenced layers. QGIS allows me to manipulate these layers in color and transparancy etc. |
Setting the unmapped points to nan is solving the whole problem. The rasterio library handles them correctly and the image is generated as wanted! Thank you! |
Great, glad to hear that |
Fix tarball check
I use the following code to:
This works fast as hell and is exactly what I needed.
With one problem: values which are not available in the source are set to 0.0
The results in "shadows" for values outside the source grid.
This is the actual result and this is what I expected.
Can I somehow define, which value is used, if no value can be interpolated?
The text was updated successfully, but these errors were encountered: