I need to convert approximately 3500 jpeg2000 4-band NAIP images to GeoTiff format without mosaicing. I have access to ENVI, ERDAS and Arc 10--is there an efficient way to batch convert these files to GeoTIFF while maintaining quality and band integrity?
3 Answers
I think that all of listed by you software allow to execute batch converting in some way.
ArcGIS
I can explain how is it possible to perform in ArcGIS.
- Converting of one raster JPEG2000 -> GeoTiff can be done using tool Raster To Other Format (Conversion). Don't forget to setup appropriate raster storage settings in Environment variables when running this tool.
- Running this tool in a batch mode can be done using ArcGIS batch processing function. Again don't forget about environment settings in order to get desirable results.
Erdas
I remember that in Erdas it is also possible to execute commands in batch mode. But it was some time ago and right now I don't have access to this software. Take a look at this document if you prefer to use Erdas.
Open-source solution
Also can recommend trying to use opensource solution: GDAL. Which can be executed in a batch mode by OS tools (in Win - bat, powershell for example).
Take a look at command gdal_translate - this one you need for your task.
Example:
gdal_translate -of GTiff -co COMPRESS=JPEG -co TILED=YES input.jp2 result.tif
Set correct (for your case) creation options in -co parameter.
How to run it in a batch mode you can figure from this and this available topics.
- 1My GDAL install (1.11 on Ubuntu) doesn't include JP2, what's your recommendation? There is quite a bit of choice, not sure which is the best and easiest to install.Thomas– Thomas2015-12-14 12:03:25 +00:00Commented Dec 14, 2015 at 12:03
- 1@Thomas I upgraded to GDAL 2 that supports JP2. I installed it with homebrewgkiko– gkiko2017-10-08 22:03:30 +00:00Commented Oct 8, 2017 at 22:03
Use LizardTech's (free) GeoViewer's Tools->Export. It is an order of magnitude faster than gdal_dtranslate. Although this is not a batch process, I did find dlls in the directory where the .exe is located that may enable writing your own export utility.
This answer may be a bit tardy, given the age of the question, but I'll share a process that worked well for me.
I used the USGS free conversion tools described at this site: https://viewer.nationalmap.gov/tools/rasterconversion/Convert_JP2_Data_to_GeoTIFF_with_GDAL.html
The tricky part was recognizing that I needed to install GDAL, and sorting out the right version for my antique WinVista box was a bit challenging - but once I got GDAL installed, the USGS scripts worked fine as a drag and drop approach from within the Windows Explorer interface.