TiagoOlivoto / plimanshiny

A shinyapp for the pliman package
Other
17 stars 4 forks source link

PNG driver doesn't support many bands #11

Closed volpatoo closed 7 months ago

volpatoo commented 8 months ago

When the user clicks on the botton "Download index" using the extension .PNG, an error shows up. The idea to condense all the extracted VIs into only one image (.png or .tif) is ok, however, most of the time user want to analyze individual bands. The current way, users will need to perform some code to isolate a specific band. So, maybe an update can be done to user download a unique band as the same as it is on "Index to sync with basemap".

Warning: PNG driver doesn't support 33 bands.  Must be 1 (grey),
2 (grey+alpha), 3 (rgb) or 4 (rgba) bands.
 (GDAL error 6)
Warning: Error in : [writeRaster] mem copy create failed for PNG
  3: runApp
  2: print.shiny.appobj
  1: <Anonymous>