You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RGB images obtained from the above command is not same as supplied by EuroSAT.
Can you let me know what is the procedure that you have used to covert EuroSAT GEOTIFF to JPEG ?
The text was updated successfully, but these errors were encountered:
To get RGB image with the same scale as the EuroSAT rgb data from
downloaded Sentinel images you have to clip your original Sentinel-2
data. The maintainer of the EuroSAT data told me, that they clipped the
original data from range 0 to 2750 to the range 1 to 255, leaving 0 for
nodata values:
gdal_translate --config GDAL_PAM_ENABLED NO -of JPEG -co QUALITY=100
-ot Byte -a_nodata 0 -scale 0 2750 1 255 -b 4 -b 3 -b 2 -of JPEG
inputimage.tif outputfile.jpeg ```
(additional option '-co
PHOTOMETRIC=RGB' if using GeoTIFF as output)
I am using the following command to get RGB images:
gdal_translate -b 4 -b 3 -b 2 -of JPEG -scale inputimage.tif outputfile.jpeg
RGB images obtained from the above command is not same as supplied by EuroSAT.
Can you let me know what is the procedure that you have used to covert EuroSAT GEOTIFF to JPEG ?
The text was updated successfully, but these errors were encountered: