Yes, I guess it's possible to argue convincingly for each one of those alternatives.
My personal preference for a default would be the second I think, but that is mostly based on its similarity to the behaviour of software I've used in the past. I tend not to like the first option as much because (to me) it seems to make more sense to have a default that indicates that something has happened to the data. I feel cautious about the third option because it seems unlikely that a default could be crafted that is likely to conform to the user's intentions most of the time. Michael 2008/7/14 Martin Desruisseaux <[EMAIL PROTECTED]>: > > Probably, but there is an open question that I have not yet resolved (which > is why I have not implemented to full range of JAI operations). Maybe you > have an idea about that? > > My issue is: what should we do with the color model, if we take the point of > view of a GridCoverage as a matrix of geophysics data? Example: lets suppose > that we implemented the "Multiply" operation. Lets suppose that we have one > raster of Sea Surface Temperature (SST) with values in the range [-2 .. > 40]°C (declared in SampleDimension), and we have an other raster of > "somestuff" with values in the range [0 .. 10]. If we multiply the two > rasters, what should be the default SampleDimension of the resulting images? > Choices are: > > * Uses the first one unchanged ([-2 .. 40] in our example) > * Computes the widest possible range ([-20 .. 400] in our example). > * Creates dynamically the range by looking at the computed values > (expansive)? > * Other reasonable default I'm not seeing? > > Of course the user should be able to specify an explicit target > SampleDimension, but I'm looking for what a reasonable default should be. It > is not a problem if the actual values goes outside the SampleDimension range > - it is just that the color model will be calibrated for that range, and > values out of range will have no contrast. > > Martin > ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel