-
Notifications
You must be signed in to change notification settings - Fork 85
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
Keep in memory original data type for writing #305
Labels
bug
Something isn't working
Comments
That is a really good idea. I think this discussion should start with xarray to ensure consistency. |
This seems more relevant: pydata/xarray#1194 |
You should be able to set I bet it's being saved in |
snowman2
added
bug
Something isn't working
and removed
proposal
Idea for a new feature.
labels
Apr 20, 2021
3 tasks
Fix in #307 |
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It could be very nice to keep in memory the original data type (ie.
uint16
for landsat data oruint8
for classified data).Indeed, for now (unless I missed something), if we open a dataset with
masked=True
and the data is casted to float, we lose the information of the original datatype.So we always write the dataset on disk in float, even when it is not justified (when the nodata is replaced by its true value)
The text was updated successfully, but these errors were encountered: