Hi Frank<br>  <br> Thank you for your help , I tried to use the color  ramp but i get exactly the same result, MapServer did not give any  error but the result was the same. <br>  <br>  LAYER<br>  NAME 'result' <br>  DATA 'blue.tif'<br>  TYPE RASTER<br>  STATUS ON<br>  PROCESSING 'SCALE=0,455'<br>  CLASS <br>  STYLE<br>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLORRANGE 0 0 0&nbsp;&nbsp; 255 0 0<br>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DATARANGE 0 100<br>  &nbsp;&nbsp;&nbsp;&nbsp; END<br>  &nbsp;&nbsp;&nbsp;&nbsp; <br>  &nbsp;&nbsp;&nbsp;&nbsp; STYLE<br>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLORRANGE 0 0 0&nbsp;&nbsp; 0 255 0<br>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DATARANGE 101 300<br>  &nbsp;&nbsp;&nbsp;&nbsp; END<br>  &nbsp;&nbsp;&nbsp;&nbsp; STYLE<br>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLORRANGE 0 0 0&nbsp;&nbsp; 0 0 255<br>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DATARANGE 301 455<br>  &nbsp;&nbsp;&nbsp;&nbsp; END&nbsp;&nbsp; <br>  END<br>  END<br>  <br>Thanks in
 advance<br><b><i><br>  Frank Warmerdam &lt;warmerdam@pobox.com&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">  salah jubeh wrote:<br>&gt; Hi guys,<br>&gt; I have a problem such that i have 1 band images and these images is <br>&gt; unsigned 16, when MapServer create PNG images for viewing , these images <br>&gt; are very dark. How can i  enhance there appearance or how can i <br>&gt; apply RGB templates on them.<br><br>Salah,<br><br>You can control how 16bit imagery is scaled to 8bit with the SCALE<br>PROCESSING options.  The raster data access howto should touch on these.<br>But for instance if your data has values from 0 to 4000 but the vast<br>majority of the pixels are in the range 0 to 500 then you might use something<br>like:<br><br>  PROCESSING "SCALE=0,550"<br><br>This would stretch input value 0 to black, 550 to white and any values over<br>550 to white.<br><br>However, if you
 have no scaling options it is likely that that a dark image<br>indicates a dynamic range mostly well below 255 to start with. In this case<br>just adding<br>   PROCESSING "SCALE=AUTO"<br>may help a lot.<br><br>If you want to use a color ramp (rather than just greyscale output) then you<br>might look into the color range options.  For instance:<br><br>LAYER<br>   NAME grid1<br>   TYPE raster<br>   STATUS default<br>   DATA data/float.tif<br>   PROCESSING "SCALE=-10,28"<br>   CLASS<br>     STYLE<br>       COLORRANGE 0 0 0   255 0 0<br>       DATARANGE -10 28<br>     END<br>   END<br>END<br><br>Best regards,<br>-- <br>---------------------------------------+--------------------------------------<br>I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com<br>light and sound - activate the windows | http://pobox.com/~warmerdam<br>and watch the world go round - Rush    | President OSGF, http://osgeo.org<br><br></blockquote><br><p>
                <hr size=1>Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. <a href="http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://beta.messenger.yahoo.com"> Great rates starting at 1&cent;/min.