Re: problem with plotting ECMWF data

From: Andrew Dawson <dawson_at_nyahnyahspammersnyahnyah>
Date: Wed Mar 13 2013 - 03:07:41 MDT


You need to look at and understand your data bfore you plot it. From the
filename I can see your data is on a 0.75x0.75 degree grid. This means it
does not have a latitude point at 19 or 25 degrees north, since these are
not multiples of 0.75. When you ask NCL to take latitudes 19:25 it won't
take values outside that range, so you end up with the real range
19.5-24.75, does that make sense. If not, just print your latitude values
to see what I mean.

You can try just taking a larger area from your variable when you plot it,
or since you have already read it into memory you could omit the subsetting
altogether, setting the map region should be enough to constrain the plot
to the desired area.


On 13 March 2013 06:43, BasitAli Khan <> wrote:

> Hi Adam,
> Sorry, i just missed your first response. Anyway, the lat/lon are 1D
> arrays and the map projection is Cylindrical Equidistant. By the way i
> also tried gsn_csm_contour_map_ce function to plot the given variable but
> it did not make any difference. I am using ncl 6.1.2 and not getting any
> warning or error related to this. The only warning message that i get is
> "Fontconfig error: Cannot load default config file" but it is something
> that i get for every plot since i started using ncl 6.1.2. Since it does
> not do any harm to my plots, i really don't much care about it.
> I tried to attached and copy the png figure with my last email. It
> appears the attachment was removed before putting it to the forum. Could
> you please also advise as how should i send the plot if i really want to?
> Thanks and best regards,
> ----
> Basit A. Khan, Ph.D.
> Postdoctoral Research Fellow
> Division of Physical Sciences & Engineering
> Office# 3204, Level 3, Building 1,
> King Abdullah University of Science & Technology
> 4700 King Abdullah Blvd, Box 2753, Thuwal 23955 6900,
> Kingdom of Saudi Arabia.
> Office: +966(0)2 808 0276, Mobile: +966(0)5 0860 3617
> E-mail:
> Skype name: basit.a.khan
> ------------------------------
> This message and its contents including attachments are intended solely
> for the original recipient. If you are not the intended recipient or have
> received this message in error, please notify me immediately and delete
> this message from your computer system. Any unauthorized use or
> distribution is prohibited. Please consider the environment before printing
> this email.
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Wed Mar 13 01:07:56 2013

This archive was generated by hypermail 2.1.8 : Wed Mar 13 2013 - 14:19:38 MDT