-
Notifications
You must be signed in to change notification settings - Fork 37
fix: load_tiff in README was undefined #33
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
base: master
Are you sure you want to change the base?
Conversation
|
It may be better to just add |
|
Yes, good idea. |
| # Write the array | ||
| DataSet.GetRasterBand(band).WriteArray(Array) | ||
| DataSet.GetRasterBand(band).SetNoDataValue(ndv) | ||
| DataSet.GetRasterBand(band).SetNoDataValue(np.float64(ndv)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't forcing a np.float64(ndv) force any dataset to become float, even the ones that are integers and so increasing file size?
|
Doesn't forcing a np.float64(ndv) force any dataset to become float, even the ones that are integers and so increasing file size? |
|
@ozak I didn't test this. I found out that integer numpy matrices can't have None in them, and for integer ones (like ASTER DEM) it's only necessary to have a maksed array, without ndv. It starts being confusing. Let me see how to run tests. |
|
To see the effect of this I'm not sure I understood what you meant with the last comments... When is |
|
Also, how would you have a masked array without an |
fix for #31