Re: gridfill

From: David Brown (dbrown AT XXXXXX)
Date: Wed Feb 25 2004 - 15:30:08 MST


Actually I have implemented a new "CellFill" method that fills the
cells of a grid individually.
Unlike the raster mode it draws the actually shape of a cell as
projected rather than giving a pixelated
approximation, and allows transparency for unfilled areas. It also has
options for drawing lines around the cell boundaries. It will
hopefully be available in the next version of NCL.

I attached some example gifs to a note earlier today but it has been
held back apparently because of limitations on the size of messages
posted to ncl-talk.
  -dave

On Feb 25, 2004, at 1:55 PM, Dennis Shea wrote:

> Umm, I did not know what "gxfill" (sic) meant. From the figure this is
> equivalent to NCL's "raster" mode.
>
> http://www.cgd.ucar.edu/csm/support/CSM_Graphics/raster.shtml
>
> Basically,
>
> wks = gsn_open_wks("ps","raster") ; open a ps/pdf/ncgm/x11
> file
> gsn_define_colormap(wks,"uniform") ; choose colormap
> res = True ; plot mods desired
> res@cnFillOn = True ; color Fill
> res@cnRasterModeOn = True ; Raster Mode
> res@cnLinesOn = False ; Turn off contour lines
>
> Predefined color maps are at: http://ngwww.ucar.edu/ncl/coltable.html
>
> D
>
>> By coincidence I am working with grfill today. It is one colored box
>> per grid point. There is no contouring or interpolation; it is a raw
>> display of data, colored on the current color bar. Each box is face
>> centered on its data point. For example:
>>
>> http://www.cdc.noaa.gov/~dallured/plots/grfill.sample.gif
>>
>> --Dave
>>
>> Sylvia Murphy wrote:
>>> K,
>>>
>>> most of us here are unfamiliar with grads. can you be more specific?
>>> Are
>>> you referring to raster type plots?
>>>
>>> if so, res@cnRasterModeOn = True will change from a color fill to a
>>> raster
>>> fill.
>>>
>>> sm
>>>
>>>
>>> On 25 Feb 2004, Kavirajan Rajendran wrote:
>>>
>>>
>>>> Hi,
>>>> Is there any utility available for producing grid box filled maps
>>>> (similar to gxfill in grads).
>>>> thanks
>>>> Rajendran
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk@ucar.edu
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk@ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
ncl-talk@ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk



This archive was generated by hypermail 2b29 : Wed Feb 25 2004 - 22:01:06 MST