Hi Joe,
The Thredds team has given thought to what you are describing regarding
letting ncWMS figure out color ranges automatically in the past. We've
concluded that there tends to be too much variability within data sets
to set up a working system for automatic color scale determination. For
instance, if you consider a "simple" variable such as temperature, you
can imagine that surface air temperatures are very different from air
temperatures from higher in the atmosphere. Allowing automatic
determination of the color scale would either smear too large of a range
together, or perhaps require figuring out a color scale for each
individual layer. Another issue emerges when considering time series of
data or model output. If a color scale is established based on the
first iteration in the time series, and the values subsequently travel
out of the range of the initial iteration, there is a problem.
So, we don't have a good solution at this point for what you are asking.
Regards,
Lansing Madry
Unidata
Boulder, Colorado
On 10/24/2013 9:42 AM, H. Joe Lee wrote:
Hi,
Is there way to let ncWMS figure out the color scale range
automatically by reading the variables from files directly instead of
specifying one by one through "overrides" tag in wmsConfig.xml?
I don't want to specify and override color range per-file and
per-variable basis manually [1] because I have too many variables in
too many files. I hope there is a way to either
1) harvest all color ranges in advance and cache them in wmsConfig.xml
or
2) calculate it on demand when GetMap request comes in by either
looking at valid_min/max attribute or calculating min/max from the
variable excluding _FillValue.
Regards,
[1]
http://www.resc.reading.ac.uk/trac/myocean-tools/wiki/WmsDetailedConfiguration
--
HDF: Software that Powers Science
_______________________________________________
thredds mailing list
thredds@xxxxxxxxxxxxxxxx
For list information or to unsubscribe, visit:
http://www.unidata.ucar.edu/mailing_lists/