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

Bill Hudspeth bhudspeth at edac.unm.edu
Tue Jun 16 09:01:43 PDT 2015


Thanks for your suggestion Fabian,


I have tried both:
PROCESSING "SCALE=<low>:<high>"
PROCESSING "SCALE=AUTO"

but with no change....with outputformat set to jpeg, I get a white image, with outputformat set to PNG, I get a very light grey image....but that is all!

Thanks, Bill


----- Original Message -----
From: "Fabian Schindler" <fabian.schindler at eox.at>
To: mapserver-users at lists.osgeo.org
Sent: Monday, June 15, 2015 8:47:34 AM
Subject: Re: [mapserver-users] WMS services from a NetCDF file layer

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=<low>:<high>"

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 at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


More information about the mapserver-users mailing list