September 28, 2015
For TerrSet users, GdalIdrisi has been revamped to make it much easier to use, especially if you need to import SubDatasets. Starting with TerrSet patch 18.0.10, released 9/21/15, there is a new interface for Gdalidrisi that makes it easy to select SubDatasets. You won't need to manually type in the subdataset name & you can import all of the bands in a particular subdataset at one time. If you have TerrSet and you need to use Gdalidrisi, update!
This post was updated on May 25, 2012
November 13, 2013 UPDATE: see the later thread from Clark Labs on November 13, 2013 below for updated installation instructions.
September 2015. For TerrSet users this post no longer applies. With version 18.10, the GDAL interface has been revised.
The IDRISI Selva and IDRISI Taiga software packages support the use the Third-Party importing utility GDAL through the module GDALIDRISI. To setup this module you will need to follow the steps outlined below:
First, the binary files must be downloaded and installed from OSGeo. These are the instructions for completing this:
- Download the OSGeo4W Installer from this website: http://trac.osgeo.org/osgeo4w/
- Double-Click on the installer file, named osgeo4w-setup.exe.
- Select Express Desktop Install. Click Next.
- Check only the box next to GDAL (uncheck all other boxes). Click Next.
- The GDAL binaries will now be downloaded from the internet and installed.
- Once installation is finished, locate the installed files, you will need them in the next step.
- On Windows 7 and XP machines the file should be named OSGeo4W
- On Windows Vista machines the file should be named OSGeo
To get GDAL up and running with the files that were installed in the above steps:
- Open IDRISI Taiga/Selva.
- Open the GDALIDRISI module (File > Import > GDALIDRISI).
- Select the Configure Tab.
- Set the GDAL bin parameter to the OSGeo4W\bin folder (or OSGeo\bin folder on Windows Vista machines).
- Set the GDAL data parameter to the OSGeo4W\share folder (or OSGeo\share folder on Windows Vista machines).
- For the GDAL plugin path folder, select the IDRISI Taiga or IDRISI Selva folder (usually located under C:\Program Files, or C:\Program Files (x86)).
- Check Debug Messages checkbox.
- Set the Maximum memory cache to 100.
Now that you have the GDALIDRISI module set up, you can begin to import your data. Below are two examples of how to import raster files into IDRISI using the GDALIDRISI module.
Importing GeoTIFF Files with GDALIDRISI
- Input dataset: browse to the tiff file and select it.
- Output dataset browse to the output folder and give the output name with the extension for example: outputimage1.rst
- Select output format: RST: IDRISI Raster A.1
- Output data type (optional): Byte or other format
- Select bands: 1
- Change 1 to 2 and 3 and 4… and so on to get all bands- must change output file name each time you import a new band for example outputimage1_band1.rst, outputimage1_band2.rst, outputimage1_band3.rst
- Other inputs are optional
Importing NetCDF Files with GDALIDRISI
Identifing subdatasets within the main NetCDF file:
- Select the gdalinfo Tab.
- For the Input dataset, navigate to your NetCDF file and select it.
- Click Run.
- The information on subdatasets and data contained within the NetCDF file should appear in the GDALIDRISI window.
Importing a subdataset of a NetCDF file:
- In the gdalinfo Tab, choose the subdataset that you wish to import.
- Copy the entire path to the subdataset, including the “NETCDF:” portion. It should include something like NETCDF:"C:\Files_To_Import\ct2007_fluxes_2000_2005.nc":fossil_flux
- Notice that the “SUBDATASET_x_NAME=” is not included.
- Select the gdal_translate Tab.
- Paste the subdataset path into the Input dataset box.
- In the Output dataset box, navigate to the directory where you wish to save your file and give it a name. Make sure to include the .rst extension on the end of your input file.
- In Output format, select RST: Idrisi Raster A.1
- (OPTIONAL) If your subdataset contains multiple image files, in the Selected bands box, you can enter the number of the image file that you wish to import.
- Click Run.
- You should see the progress of your import in the GDALIDRISI window. Once it is finished the imported file will be located in the directory where you told it to save.
Thank you for that wonderful explanation on how to import using OSGeo, it was very helpful and educational. Taking this process one step further, is there any way to preform batch imports of NetCDF files using GDAL? Thank you kindly,
This is really helpful, thank you!
Update: Clark Labs compiles GDAL drivers for use with IDRISI. The latest version can be downloaded from our website at: http://clarklabs.org/downloads/gdal. We recommend the use of these drivers instead of OSGEO or other installations on the GDAL website.
Once downloaded and unzipped, reconfigure the GDAL configure tab to the new bin and data folders. Beginning with GDAL version 1.10, the plugin folder is no longer required when using the GDAL download from the Clark Labs website.
After downloading and unzipping the GDAL from the Clark Labs website, follow the steps below to configure the GDALIDRISI interface:
Now that you have the GDALIDRISI module set up, you can begin to import your data. Below is an example of importing GeoTIFF files using the GDALIDRISI module.
Note: You should not unzip to the existing GDAL folder in the IDRISI installation folder, unless you completely remove the subfolders under the GDAL folder.
With the latest version of GDAL 1.10 available from our website, GDALIDRISI now supports all the formats listed in this GDAL document: http://www.gdal.org/formats_list.html. All formats listed with a "yes" in the "Compiled by default" column of this document are now supported withing GDALIDRISI, inlcuding HDF5 and netCDf.