Re: problem with plotting ECMWF data

From: BasitAli Khan <BasitAli.Khan_at_nyahnyahspammersnyahnyah>
Date: Wed Mar 13 2013 - 04:42:00 MDT

Hi Andrew,

Thanks for picking out this. You are right, i was getting this empty white space because there were no lat/lon data available. Although i know the data very well, but I took this blind assumption that gsn_csm_contour_map_ce will take care of this.

Thanks again for your help and a quick response.
Basit

----
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: basitali.khan@kaust.edu.sa<mailto:basitali.khan@kaust.edu.sa>
Skype name: basit.a.khan
From: Andrew Dawson <dawson@atm.ox.ac.uk<mailto:dawson@atm.ox.ac.uk>>
Date: Wed, 13 Mar 2013 09:07:41 +0000
To: KAUST <basitali.khan@kaust.edu.sa<mailto:basitali.khan@kaust.edu.sa>>
Cc: "ncl-talk@ucar.edu<mailto:ncl-talk@ucar.edu>" <ncl-talk@ucar.edu<mailto:ncl-talk@ucar.edu>>
Subject: Re: problem with plotting ECMWF data
Hi
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.
Andrew
On 13 March 2013 06:43, BasitAli Khan <BasitAli.Khan@kaust.edu.sa<mailto:BasitAli.Khan@kaust.edu.sa>> 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<tel:%2B966%280%292%20808%200276>,  Mobile: +966(0)5 0860 3617<tel:%2B966%280%295%200860%203617>
E-mail: basitali.khan@kaust.edu.sa<mailto:basitali.khan@kaust.edu.sa>
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:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Mar 13 02:42:19 2013

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