[ncl-talk] Fwd: Make a plot
Mary Haley
haley at ucar.edu
Mon Jan 23 11:20:43 MST 2017
In order to change the labels on a labelbar plot, you need to provide a
label for every box using the "lbLabelStrings" resource. If there's a
particular box that you don't want a label for, use a blank string with "".
See the labelbar example page:
http://www.ncl.ucar.edu/Applications/labelbar.shtml
and use your browser search to find "lbLabelStrings".
Here's another good one:
http://www.ncl.ucar.edu/Applications/mask.shtml#ex4
On Mon, Jan 23, 2017 at 10:02 AM, Kwesi Quagraine <starskykwesi at gmail.com>
wrote:
> Hello Mary, thanks for the reply, I can make the plot as you have attached
> but the challenge was how to make the plot with dates on the label bar
> indicating the dates as attached.
>
> Kwesi
>
> On Mon, Jan 23, 2017 at 6:52 PM, Mary Haley <haley at ucar.edu> wrote:
>
>> Kwesi,
>>
>> If you are new to NCL, I suggest that you start by looking at this
>> tutorial:
>>
>> https://dl.dropboxusercontent.com/u/8357888/homepage/tutoria
>> is/ncl/NCL_Tutorial_V1.1.pdf
>>
>> It's a very nice step-by-step tutorial on how to create NCL graphics.
>> This tutorial starts off with simple examples and then gradually moves onto
>> more complex examples.
>>
>> To see some basic examples of plotting data over a map, go to our
>> examples page:
>>
>> "Plotting data on a map"
>> http://www.ncl.ucar.edu/Applications/plot_data_on_map.shtml
>>
>> This gives you an overview of how to understand your data so you know how
>> to plot it correctly. You have data on a rectilinear grid, which is
>> usually the easiest kind of data to plot, because the lat/lon arrays
>> associated with your data are actually attached to the variable when you
>> read the data in.
>>
>> Please see the attached script, which I started for you, based on
>> examples dataonamap_1.ncl and dataonamap_7.ncl.
>>
>> Hopefully you can take it from here, by reading the above tutorial, and
>> looking over some of the examples on our website:
>>
>> http://www.ncl.ucar.edu/Applications/
>>
>> You may also want to see our examples page that is specifically for
>> precipitation:
>>
>> http://www.ncl.ucar.edu/Applications/HiResPrc.shtml
>>
>> It says "high-res" on the page, but really, you can use this for low
>> resolution too.
>>
>> --Mary
>>
>>
>> On Mon, Jan 23, 2017 at 1:59 AM, Kwesi Quagraine <starskykwesi at gmail.com>
>> wrote:
>>
>>> Hello was wondering if anyone could help me with this? thanks
>>> ---------- Forwarded message ----------
>>> From: Kwesi Quagraine <starskykwesi at gmail.com>
>>> Date: Sun, Jan 22, 2017 at 1:45 PM
>>> Subject: Make a plot
>>> To: "ncl-talk at ucar.edu" <ncl-talk at ucar.edu>
>>>
>>>
>>> Hello NCLers, I want to make a plot similar to the one attached with the
>>> data attached as well. I will be grateful if someone can point me in a
>>> direction. Thanks in advance.
>>>
>>> Regards,
>>> Kwesi
>>>
>>>
>>> var summary;
>>> Variable: pr
>>> Type: float
>>> Total Size: 22296240 bytes
>>> 5574060 values
>>> Number of Dimensions: 3
>>> Dimensions and sizes: [time | 180] x [lat | 179] x [lon | 173]
>>> Coordinates:
>>> time: [15011.5..20455.5]
>>> lat: [-46.25..42.75]
>>> lon: [-25.25..60.75]
>>> Number Of Attributes: 5
>>> standard_name : precipitation_flux
>>> long_name : Precipitation
>>> units : kg m-2 s-1
>>> _FillValue : 1e+20
>>> cell_methods : time: mean
>>> (0) Precipitation (kg m-2 s-1) : min=0 max=0.00116586
>>>
>>> --
>>> Try not to become a man of success but rather a man of value-Albert
>>> Einstein
>>>
>>> University of Cape Coast|College of Agriculture and Natural Sciences|Department
>>> of Physics|
>>> Team Leader|Recycle Up! Ghana|Technology Without Borders|
>>> Other emails: kwesi.quagraine at ucc.edu.gh|kwesi.quagraine at teog.de|
>>> Mobile: +233266173582 <+233%2026%20617%203582>
>>> Skype: quagraine_cwasi
>>> Twitter: @Pkdilly
>>>
>>>
>>>
>>>
>>> --
>>> Try not to become a man of success but rather a man of value-Albert
>>> Einstein
>>>
>>> University of Cape Coast|College of Agriculture and Natural Sciences|Department
>>> of Physics|
>>> Team Leader|Recycle Up! Ghana|Technology Without Borders|
>>> Other emails: kwesi.quagraine at ucc.edu.gh|kwesi.quagraine at teog.de|
>>> Mobile: +233266173582 <+233%2026%20617%203582>
>>> Skype: quagraine_cwasi
>>> Twitter: @Pkdilly
>>>
>>>
>>> _______________________________________________
>>> ncl-talk mailing list
>>> ncl-talk at ucar.edu
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>
>>>
>>
>
>
> --
> Try not to become a man of success but rather a man of value-Albert
> Einstein
>
> University of Cape Coast|College of Agriculture and Natural Sciences|Department
> of Physics|
> Team Leader|Recycle Up! Ghana|Technology Without Borders|
> Other emails: kwesi.quagraine at ucc.edu.gh|kwesi.quagraine at teog.de|
> Mobile: +233266173582 <+233%2026%20617%203582>
> Skype: quagraine_cwasi
> Twitter: @Pkdilly
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170123/2a9edb22/attachment.html
More information about the ncl-talk
mailing list