Ian and Michael, thank you very much! Indeed it was Occam's razor all the time. (although I'm bit ashamed such a silly mistake escaped me!). I assumed the matrix should have been initialized as: float[][] data = new float[xSize][ySize] But it wasn't the case, in ASC format is about rows and columns, and first comes the columns and then the rows in the matrix declaration, as simple as that.
Thanks again for your time, best regards! Marcos Nino-Ruiz Computer and Systems engineer CRC for Spatial Information The University of Melbourne Victoria 3010 Australia On Sat, Jul 30, 2011 at 11:19 PM, Ian Turton <[email protected]> wrote: > Is it possible that you have X & Y the wrong way round? That is > usually what I've done when non square coverages get index out of > bounds errors. > > Ian > ------------------------------------------------------------------------------ Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
