From: Simone G. <sim...@ge...> - 2009-01-20 16:29:31
|
Ciao Greg, if you are trying to read simple binary matrices float or double data I would suggest to have a look at both the GTOPO 30 reader and the Imageio RawImageReader which can be used to do most of what you need. In the end you should create a simple GCE GridCoverageReader, following gtopo30 example, which internally uses the Imageio RawImageReader. We could even fuse the two fo them later on. Of course reading the whole matrix in memory and creating a GridCoverage2D is much easier to accomplish but then you loose all the fancy stuff about decimation-on-reading, deferred loading and so on. Simone. ------------------------------------------------------- Ing. Simone Giannecchini GeoSolutions S.A.S. Owner - Software Engineer Via Carignoni 51 55041 Camaiore (LU) Italy phone: +39 0584983027 fax: +39 0584983027 mob: +39 333 8128928 http://www.geo-solutions.it http://simboss.blogspot.com/ http://www.linkedin.com/in/simonegiannecchini ------------------------------------------------------- On Sat, Jan 17, 2009 at 8:47 PM, Greg Ederer <gr...@er...> wrote: > Hi, > > I was handed a bunch of binary raster files that are just slabs of 32 > bit floats, along with the following documentation: > > 1) content: > rain == 10 day precipitation analysis by merging > GTS gauge observations and 3 kinds of satellite > estimates > (GPI,SSM/I, and AMSU) > 2) coverage: > -40.00S -- 40.00N Northward; > 20.00W -- 55.00E Eastward > 751 grid points in east - west direction > 801 grid points in south - north direction > > 3) resolution: > 0.1 deg lat x 0.1 deg lon > dekad 4) missing values > -999.0 > > It doesn't appear to me that any of the existing > AbstractGridCoverage2DReader subclasses will read these files. Please > correct me if I am mistaken (this is a case in which I would love to > be mistaken!) > > This leaves me with the task of creating a new reader. The > documentation here: > > http://docs.codehaus.org/display/GEOTDOC/02+Create+a+GridCoverage > > suggests creating a javax.imageio.ImageReader subclass. But, I have > noticed that AbstractGridCoverage2DReader and its subclasses do not > extend ImageReader. What is the correct approach? > > Thanks! > > Greg > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Geotools-gt2-users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > |