googling for "ERDAS imagine file format" yields all sorts of information about the file format---interestingly enough, it is at the gdal web site.
--Chris On Thu, Nov 10, 2011 at 4:25 PM, Chris Marshall <[email protected]> wrote: > If composing your own PDL IO routines for ERDAS Imagine > format data files is not possible then I don't think you'll find > another PDL solution. FWIW, when I've had to implement IO > for an external format the combination of perl pack/unpack and > PDL flexraw IO usually worked pretty well (that and the fact > that for many applications one doesn't need a full implementation > of a format to get the job done). > > Good luck, > Chris > > On Thu, Nov 10, 2011 at 4:15 PM, Puneet Kishor <[email protected]> wrote: >> 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
