[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[THREDDS #RDT-808100]: Color Palette

Hi Tim,

> Can you explain how the WMS .pal files are defined? For example, what
> do the values mean that are listed?  I know that they are RGB values
> but how do I set it to show fill values as black? Some of the data I am
> using is oceanographic data and the land mask values are set extremely
> low in the dataset and it throws off my color range.

I believe the palette files are just a list of colors upon which the range of 
data values are mapped. They don't specify how fill or missing values are 

Instead, by specify missing and fill values and maybe the valid range, you can 
change how the code determines the range of data values. This can be done in a 
few ways. First, if your data is stored in netCDF files (and you can modify 
your data files), you can set some combination of "missing_value", 
"_FillValue", "valid_min", and "valid_max" attributes. If your data is not 
netCDF or you can't modify them, you can add this information in the TDS 
configuration catalogs.

Here's the netCDF page that describes these attributes:


Here's a TDS page on using NcML in the TDS configuration files:


Let us know if you have any more questions.


Ticket Details
Ticket ID: RDT-808100
Department: Support THREDDS
Priority: Normal
Status: Closed

NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.