Thanks Chris, On Nov 10, 2011, at 3:09 PM, Chris Marshall wrote:
> Maybe this img2tif utility is relevant? > http://home.gdal.org/projects/imagine/hfa_index.html I am already using gdal to directly read the .img files, so that is not an issue. The reason I want to read those files in PDL is so I can do query and analysis more than what gdal can do. For example, gdal can query the value at a location (a specific x,y location), but I'd like to query an area (a polygon), and create summary stats for that area. I thinking PDL can give me more flexibility. > > Otherwise, you can cook up a way to read the files from > the file format information (if it is available). Another possibility > is to use another program to convert the files to something that > is already directly readable in PDL. I'd rather not. In other words, I already have ERDAS files, and can read them directly with gdal without further manipulation. I'd rather not inject an extra step in between. Besides the burden of an extra step, I would probably lose information when converting it from Imagine to something like tiff. > > --Chris > > On Thu, Nov 10, 2011 at 3:36 PM, Puneet Kishor <[email protected]> wrote: >> Is there a way I can read in .img files from ERDAS using PDL? >> >> -- >> Puneet Kishor >> >> _______________________________________________ >> Perldl mailing list >> [email protected] >> http://mailman.jach.hawaii.edu/mailman/listinfo/perldl >> _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
