Make png from true_color #727
Unanswered
MaxDragonheart
asked this question in
Q&A
Replies: 1 comment 1 reply
-
If we look at the sample output you have provided:
You can see that "nan" values are returned. If we now we consider the error your program has returned we can see that it requires rgb values between 0.0 and 1.0. "nan" is not between 0 and 1 so will cause an error to be thrown by the program. That would be my bet guess. Let me know how you get on! 😄 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would make a png from a DataArray maked with
true_color
fromxrspatial.multispectral
. Below the function used to build the DataArray:Below the output from one scene(I've 111 scenes from Landsat LC2):
I'm be able to save as GeoTIFF all scenes using the code below:
Problem comes when I try to save the DataArray as png
From Jupyther Notebook I see the error below:
I don't understand why I can save easealy my DataArray as GeoTIFF but I've problem with a simple png.
Beta Was this translation helpful? Give feedback.
All reactions