Re: wmbarb not working with Lambert Conformal projection

From: <antti.pessi_at_nyahnyahspammersnyahnyah>
Date: Fri Apr 08 2011 - 11:38:12 MDT

Dennis,

I uploaded a simplified script (wmbarb_APessi.ncl) and data
(110972300.gr2) to the incoming directory.

$ ncl -V
5.2.1

$ uname -a
Linux caerus.local 2.6.18-164.6.1.el5 #1 SMP Tue Nov 3 16:12:36 EST 2009
x86_64 x86_64 x86_64 GNU/Linux

Thanks,
Antti

-----Original Message-----
From: Dennis Shea [mailto:shea@ucar.edu]
Sent: Friday, April 08, 2011 7:05 AM
To: Pessi Antti ANPE
Cc: ncl-talk@ucar.edu
Subject: Re: wmbarb not working with Lambert Conformal
projection

Can you supply a clean script and the data?

ftp ftp.cgd.ucar.edu
anonymous
email
cd incoming
put .. script ..
put .. data ..
quit

Send email to ncl-talk (you must subscribe first) with the following
information:

     * The names of the files after you have successfully completed the
transfer.
       We cannot look at the ftp/incoming directory for security
reasons.
     * The version of NCL you are running (ncl -V).
     * The type of system you are on (uname -a).

THX

On 4/7/11 5:52 PM, antti.pessi@vaisala.com wrote:
> I tried to remove res1@tfDoNDCOverlay = True, but it didn't work
either.
> The map just looked messed up and it still didn't print any wmbarb
> observations.
>
> I just want to point out that everything else, for example gridded
wind
> barbs, contoured fields etc., work just fine with that configuration.
> Just not the observations plotted with wmbarb.
>
> Thanks,
> Antti
>
> -----Original Message-----
> From: Dennis Shea [mailto:shea@ucar.edu]
> Sent: Thursday, April 07, 2011 9:00 AM
> To: Rick Brownrigg
> Cc: Pessi Antti ANPE; ncl-talk@ucar.edu
> Subject: Re: wmbarb not working with Lambert Conformal
> projection
>
> Try removing the
> res1@tfDoNDCOverlay = True
>
> On 4/7/11 8:57 AM, Rick Brownrigg wrote:
>> Hmmm...I don't know what to suggest then. You've printed all the
>> following values, and they look as what you expect?
>>
>>> res1@mpProjection = "LambertConformal"
>>> res1@mpLambertParallel1F = lat2d@Latin1
>>> res1@mpLambertParallel2F = lat2d@Latin2
>>> res1@mpLambertMeridianF = lat2d@Lov
>>> res1@mpLimitMode = "Corners"
>>> res1@mpLeftCornerLatF = lat2d@corners(0)
>>> res1@mpLeftCornerLonF = lon2d@corners(0)
>>> res1@mpRightCornerLatF = lat2d@corners(2)
>>> res1@mpRightCornerLonF = lon2d@corners(2)
>>
>>
>> On Apr 6, 2011, at 5:55 PM, antti.pessi@vaisala.com
>> <mailto:antti.pessi@vaisala.com> wrote:
>>
>>> Rick,
>>> Good catch, but I checked the "Lov" values and they are the same in
>>> both variables lat2d and lon2d. So the problem is still there...
>>> Antti
>>>
>
------------------------------------------------------------------------
>>> *From:*Rick Brownrigg [mailto:brownrig@ucar.edu]
>>> *Sent:*Tuesday, April 05, 2011 1:47 PM
>>> *To:*Pessi Antti ANPE
>>> *Cc:*ncl-talk@ucar.edu<mailto:ncl-talk@ucar.edu>
>>> *Subject:*Re: [ncl-talk] wmbarb not working with Lambert Conformal
>>> projection
>>> Hi,
>>> A central meridian in the Lambert projection is a line of constant
>>> *longitude*. The assignment below suggests its being set to a value
> of
>>> latitude -- is this perhaps the issue?
>>> Rick
>>> On Apr 5, 2011, at 11:51 AM,antti.pessi@vaisala.com
>>> <mailto:antti.pessi@vaisala.com>wrote:
>>>
>>>
>>> Hello,
>>> I'm trying to plot observed wind barbs using wmbarb on a gridded
> model
>>> map. My map resources are following:
>>> res1@mpProjection = "LambertConformal"
>>> res1@mpLambertParallel1F = lat2d@Latin1
>>> res1@mpLambertParallel2F = lat2d@Latin2
>>> res1@mpLambertMeridianF = lat2d@Lov
>>> res1@mpLimitMode = "Corners"
>>> res1@mpLeftCornerLatF = lat2d@corners(0)
>>> res1@mpLeftCornerLonF = lon2d@corners(0)
>>> res1@mpRightCornerLatF = lat2d@corners(2)
>>> res1@mpRightCornerLonF = lon2d@corners(2)
>>> res1@tfDoNDCOverlay = True
>>> If I comment out the first four lines, the wmbarb works just fine
and
>>> plots the barbs correctly. However, that way I get a distorted map
>>> with straight latitude and longitude lines. If I run the code as
>>> above, wmbarb doesn't plot anything. I tried wmbarbmap as well but
>>> that didn't work either.
>>> Are there some settings that would make the wmbarb to work with
>>> Lambert projection?
>>> Thanks,
>>> Antti Pessi
>>> _______________________________________________
>>> 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
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sat Apr 9 03:38:24 2011

This archive was generated by hypermail 2.1.8 : Tue Apr 19 2011 - 18:32:03 MDT