> Hamish wrote: > > the problem is the data is 90% done by 0.4, but the colr/ rules > > are only written out on integer values
Glynn: > Ah. Does the attached patch fix the problem? yes, it does. thanks. There are still slight differences (white spots), G63> r.info -r A20023352002365.L3m_MO_CHLO_4.chlor_A min=0.010000 max=64.565418 G63> r.colors A20023352002365.L3m_MO_CHLO_4.chlor_A col=bcyr -g G63> cat colr/A20023352002365.L3m_MO_CHLO_4.chlor_A % 0.010000000000000003677613769071 64.565417527653337970150460023433 nv:255 *:255 0.010000000000000003677613769071:0:0:255 0.0109169168:0:7:255 0.0109169168:0:7:255 0.0119179072:0:15:255 0.0119179072:0:15:255 0.0130106801:0:22:255 0.0130106801:0:22:255 0.0142036512:0:30:255 0.0142036512:0:30:255 0.0155060078:0:38:255 0.0155060078:0:38:255 0.0169277797:0:45:255 0.0169277797:0:45:255 0.0184799162:0:53:255 .... 49.6249366001:255:23:0 54.1751303026:255:16:0 54.1751303026:255:16:0 59.1425389006:255:8:0 59.1425389006:255:8:0 64.565417527653337970150460023433:255:0:0 the lowest values are less than the first color rule so they display as white. As do the max cell values which are slightly bigger than the color rule number with excessive number of decimal digits. replace r.colors/rules.c "%.25f" with %.15g or %.16g ? http://article.gmane.org/gmane.comp.gis.grass.devel/25291 Hamish ____________________________________________________________________________________ You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. http://tc.deals.yahoo.com/tc/blockbuster/text5.com _______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
