[mapserver-users] WMS services from a NetCDF file layer

2015-06-15 Thread William Hudspeth

Hello,

I am using mapserver to provide WCS and WMS services from individual 
layers (and their constituent bands) contained in a CF-formatted NetCDF 
file. I have successfully implemented WCS services, but am continuing to 
have problems with WMS services. While calls to return a single raster 
grid (derived from a NetCDF layer) as a WMS request returns a correctly 
projected image, the image is entirely white, and does not seem to 
correctly reinterpret original data values into a range of pixel color 
values. I would appreciate any information on what I might be missing.


Thanks!

--

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] WMS services from a NetCDF file layer

2015-06-15 Thread Fabian Schindler
This is probably due to the fact that your raster values are beyond 255.
Mapserver truncates this to 255 which interpreted as white on a
greyscale. To correctly scale the values you can use band processing
options:

  PROCESSING "SCALE=:"

You can also use "AUTO" but that might result in strangely "tiled" images.

See:
http://mapserver.org/input/raster.html#special-processing-directives

Regards,
Fabian

On 15.06.15 16:04, William Hudspeth wrote:
> Hello,
> 
> I am using mapserver to provide WCS and WMS services from individual
> layers (and their constituent bands) contained in a CF-formatted NetCDF
> file. I have successfully implemented WCS services, but am continuing to
> have problems with WMS services. While calls to return a single raster
> grid (derived from a NetCDF layer) as a WMS request returns a correctly
> projected image, the image is entirely white, and does not seem to
> correctly reinterpret original data values into a range of pixel color
> values. I would appreciate any information on what I might be missing.
> 
> Thanks!
> 
> 
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users