“Raster to other format” tool fails to convert ecw rasters of 4 bands to jpg,
I’m not sure if there is a tool that can convert ecw rasters of 4 bands to jpg.
Thank you
Jamal
Jamal,
Check Supported raster dataset file formats—Help | ArcGIS for Desktop - JPG only supports 1 or 3 bands. You could try JPEG 2000 or TIFF
If the issue persists, try to convert the ECW to a TIFF then convert the TIFF to a JPEG 2000. If I remember correctly, depending upon the ECW version, not all color maps are supported in direct ECW to JPEG 2000 conversion.
Also, make sure you are using 8-bit unsigned integer as your data type.
Thank you Lance Cole for the input.
Unfortunately, jpg2000 of 4 bands can’t be converted to jpg
Correct, JPG only supports 1 or 3 bands as noted in my original post. It does not support 4 bands. If you need to support 4 bands, you will need to work with TIFF or JPEG 2000 or convert using only 3 bands to use JPG.
Thanks Lance.
Then how to convert the ecw of 4 bands to jpg (that only supports 3 bands)?
By the way, does converting a raster of 4 bands to 3 bands affect the visual context? Is visually a raster of 4 bands clearer than the one of 3 bands?
Good Morning Jamal,
You should be able to use the Composite Bands Tool (Data Management) to create a raster dataset containing subset of the original raster bands. I am currently working from a mobile platform so cannot create a walk through for you.
Most applications, such as ArcGIS, only display 3 of the 4 bands at any one time with multi-band imagery. Normally the 4 bands are based upon light wavelength of red, green, blue, and near Infrared or Infrared. If you look at Landsat imagery there are typically 7 bands or hyperspectral image can have many more bands in discrete wavelength groups. The default is to display RGB, typically bands 3, 2 & 1 but you can change this in your image settings depending upon what you are doing with your imagery. For example, if you replace your red band with the near IR band, the image will look nearly the same but bodies of water will be very dark and easy to identify. Here is a listing of Landsat band combinations just for reference.
Lance
Because if you read the help topic you will see it is a fumction not a tool
Extract Band function—ArcGIS Pro | Documentation
More information
Raster functions—ArcGIS Pro | Documentation
and it will make a folder so it is best if your project is in a folder
I couldn’t figure out where the output of the “extract band” raster function is saved
You missed this in the help... first line
Raster functions are operations that apply processing directly to the pixels of imagery and raster datasets, as opposed to geoprocessing tools, which write out a new raster to disk.
There is no clue where the result is saved.
The “Extract Bands_MOLG_2018_ITM_36_14.ecw” doesn’t appear in the folder that contains “MOLG_2018_ITM_36_14.ecw”.
The original “MOLG_2018_ITM_36_14.ecw” still has 4 bands
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.