[gradsusr] NAM 12km vs. NAM Conus Nest Wind Direction
Sam Wilson
sam at surfline.com
Fri Mar 24 12:31:33 EDT 2017
Thanks Jeff and Dan for the quick responses!
I think I found the issue and it’s due to the version of wgrib2 I’m using – I tested the process with a newer version of wgrib2 and I’m getting different ctl files when running g2ctl with the new version.
When using the older version of wgrib2 in g2ctl, I was getting the following errors:
Use of uninitialized value $east in addition (+) at /home/sam.wilson/science-scripts/scripts/download/common/g2ctl.pl line 633.
Use of uninitialized value $west in addition (+) at /home/sam.wilson/science-scripts/scripts/download/common/g2ctl.pl line 633.
Use of uninitialized value $east in addition (+) at /home/sam.wilson/science-scripts/scripts/download/common/g2ctl.pl line 634.
Use of uninitialized value $west in addition (+) at /home/sam.wilson/science-scripts/scripts/download/common/g2ctl.pl line 634.
pdef 614 428 lccr 12.190000 -133.459 1 1 25.000000 25.000000 -95 12191.000000 12191.000000
Use of uninitialized value $west in subtraction (-) at /home/sam.wilson/science-scripts/scripts/download/common/g2ctl.pl line 649.
Use of uninitialized value $east in subtraction (-) at /home/sam.wilson/science-scripts/scripts/download/common/g2ctl.pl line 649.
Use of uninitialized value $west in numeric eq (==) at /home/sam.wilson/science-scripts/scripts/download/common/g2ctl.pl line 650.
Use of uninitialized value $west in concatenation (.) or string at /home/sam.wilson/science-scripts/scripts/download/common/g2ctl.pl line 653.
xdef 1 linear 0.113383763365335
Use of uninitialized value $south in subtraction (-) at /home/sam.wilson/science-scripts/scripts/download/common/g2ctl.pl line 654.
Use of uninitialized value $north in subtraction (-) at /home/sam.wilson/science-scripts/scripts/download/common/g2ctl.pl line 654.
Use of uninitialized value $south in concatenation (.) or string at /home/sam.wilson/science-scripts/scripts/download/common/g2ctl.pl line 655.
I don’t get the above with the newer version, so my guess is this should solve it. I’ll get back if I still run into issues after making the upgrade to wgrib2.
Thanks again for the help!
Cheers,
Sam
From: <gradsusr-bounces at gradsusr.org> on behalf of dan martin <sailmaui at gmail.com>
Reply-To: GrADS Users Forum <gradsusr at gradsusr.org>
Date: Thursday, March 23, 2017 at 8:52 PM
To: GrADS Users Forum <gradsusr at gradsusr.org>
Subject: Re: [gradsusr] NAM 12km vs. NAM Conus Nest Wind Direction
My ctl made made with g2ctl is different than what you have. I'm not having any issues with the winds.
pdef 1799 1059 lccr 21.138000 -122.72 1 1 38.500000 38.500000 -97.5 3000.000000 3000.000000
xdef 2503 linear -134.096127 0.0292401642786411
ydef 1155 linear 21.140671 0.0272727272727273
On Thu, Mar 23, 2017 at 5:05 AM, Sam Wilson <sam at surfline.com<mailto:sam at surfline.com>> wrote:
Hi all,
After the recent upgrade of the high resolution NAM conus nest, the wind direction in the wind plots I make appears to be wrong.
I also plot wind data from the NAM 12km data – below are the PDEF, XDEF, and YDEF lines from a NAM 12km ctl file and a NAM conus nest ctl file:
NAM 12km:
pdef 614 428 lccr 12.190000 226.541000 1 1 25.000000 25.000000 265.000000 12191 12191
xdef 614 linear -133.459 0.113383763365335
ydef 428 linear 12.190000 0.110827272727273
NAM conus nest:
pdef 1799 1059 lccr 21.138000 237.280000 1 1 38.500000 38.500000 262.500000 3000 3000
xdef 1799 linear -122.72 0.0292401642786411
ydef 1059 linear 21.138000 0.0272727272727273
The NAM conus nest wind directions appear to be about 90 degrees offset from those of the NAM 12km. I initially thought it may be an issue where one is using grid relative where another is using earth relative, but now I’m second guessing that – I ran wgrib2 on a single file from each with the -vector_dir option and both appear to show grid relative.. and as you can see above, both have “lccr” in the PDEF.
What I’m after is being able to plot wind barbs in the meteorological convention from both and I’m curious why I’m getting different results between the above two datasets when plotting the same way.
Many thanks!
Sam Wilson
The contents of this e-mail message and any attachments are confidential and are intended solely for addressee. The information may also be legally privileged. This message is sent in trust, for the sole purpose of delivery to the intended recipient. If you have received this message in error, any use, reproduction or dissemination of this message is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or phone and delete this message and its attachments, if any.
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr
The contents of this e-mail message and any attachments are confidential and are intended solely for addressee. The information may also be legally privileged. This message is sent in trust, for the sole purpose of delivery to the intended recipient. If you have received this message in error, any use, reproduction or dissemination of this message is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or phone and delete this message and its attachments, if any.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20170324/713429ba/attachment-0001.html
More information about the gradsusr
mailing list