[mapserver-users] WMS services from a NetCDF file layer
Bill Hudspeth
bhudspeth at edac.unm.edu
Wed Jun 17 07:16:49 PDT 2015
After determining the data value range (min/max) with gdalinfo -stats for a specific layer, I have now tried both with no satisfactory results...
PROCESSING "SCALE=AUTO"
PROCESSING "SCALE=313.72549438477:425.49020385742"
----- Original Message -----
From: "Fabian Schindler" <fabian.schindler at eox.at>
To: "bhudspeth" <bhudspeth at edac.unm.edu>
Cc: mapserver-users at lists.osgeo.org
Sent: Tuesday, June 16, 2015 11:50:46 AM
Subject: Re: [mapserver-users] WMS services from a NetCDF file layer
For the PROCESSING "SCALE=<low>:<high>" option you have to replace the
<low> and <high> with the respective values (you can use gdalinfo -stats
to see what the minimum and maximum values of the image are).
Perhaps, you could transform your image on the command line using
gdal_translate with the respective "-scale" option and see what the
output is there.
Regards,
Fabian
On 16.06.15 18:01, Bill Hudspeth wrote:
> 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