[ncl-talk] plot landuse of RegCM4

Mary Haley haley at ucar.edu
Mon Jun 22 20:25:56 MDT 2015


To add to Alan's email, you can look at the examples on this page, for an
example how to reproduce the labelbar that you showed:

http://www.ncl.ucar.edu/Applications/classification.shtml

I believe most of these plots are done with cnFillMode set to RasterFill,
as Alan suggested.

--Mary


On Wed, Jun 17, 2015 at 4:53 PM, Alan Brammer <abrammer at albany.edu> wrote:

> Not sure if anyone replied to this.
> I'm not really sure what the question is, the script seems to be doing 99%
> of what you want from it.
> The edits I would make to better represent the categorical nature are
> based on the examples here:
> https://www.ncl.ucar.edu/Applications/classification.shtml
>
> I'd change the fill type res at cnFillMode to either "RasterFill" or
> "CellFill" so that the land types are not interpolated and smoothed over.
>
> I'd also either chose a more distinct colourtable though that may be
> difficult so copying from an example on the above link you amy be better to
> name each colour.  Make sure the number of name colours matching the number
> of levels/categories of the data you want to plot though.
> .e.g
>
> colorscheme = (/"cadetblue1", "darkgreen", "chartreuse", "olivedrab3","palegreen",\
> 		"darkseagreen","mediumpurple1","mistyrose","burlywood3","gold",\
> 		"tan1","royalblue","lightgoldenrod1","red","lightgoldenrod4","white",\
> 		"lightsteelblue","grey90"/)
>
>  res at cnFillPalette    = colorscheme
>
>
> You can see further examples on the above link about setting up some type of legend or color bar.
>
>
> On Sat, Jun 13, 2015 at 7:13 AM, saeed bayat <saeedbayat7276 at gmail.com>
> wrote:
>
>> Dear NCL users
>> I want to plot landuse of RegCM4 data. I attached the script, output plot
>> and the target plot that I want. The problem is, I am pretty new in NCL and
>> do not have any idea how to catch the solution. Also attached the output of
>> ncl_filedump to understand the structure of data.
>>
>> Best Regards
>>
>> --
>> Abdolhalim Bayat
>> Ph.D Candidate of Synoptic Climatology
>> University of Tehran (Iran)
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150622/0111d53b/attachment.html 


More information about the ncl-talk mailing list