Nice call Ian :) Marcos, if any ideas come to you about how that class could be improved please post them here. I'd more or less forgotten about it but it would be nice to get it into good enough shape to either add to the library or, more likely, add to the GeoTools docs as a tutorial and starting point for other users.
Good to see you can still work on climate change in Victoria. I'm in Sydney and, since the last state election, climate change is not something we do any more, at least not with public funding. All the best, Michael On 31 July 2011 12:03, Marcos Nino-Ruiz <[email protected]> wrote: > 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
