[gradsusr] xy2gr bug?
Ryglicki, Dr. David
david.ryglicki at nrlmry.navy.mil
Wed Jul 5 13:32:08 EDT 2017
Hi, Jennifer.
I've attached the control file. The XDEF and YDEF entries specifically are:
xdef 361 linear -6480.0 36.0
ydef 191 linear -3420.0 36.0
As an extra data point, I can replicate this in both the newest version of GrADS (2.1.1.b0) and OpenGrADS 2.1.0.oga.1. WordPad added the extra .txt extension. It’s a ctl file on the Linux side.
~Dave
-----Original Message-----
From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Jennifer M Adams
Sent: Wednesday, July 5, 2017 8:43 AM
To: GrADS Users Forum
Subject: Re: [gradsusr] xy2gr bug?
Hi, Dave —
1. What are the XDEF and YDEF entries in your descriptor file?
2. What were the commands you issued (including the dimension environment) when you drew a plot before issuing the ‘q xy2gr’ command? Did you set mprog off?
—Jennifer
> On Jun 19, 2017, at 12:35 PM, Ryglicki, Dr. David < <mailto:david.ryglicki at nrlmry.navy.mil> david.ryglicki at nrlmry.navy.mil> wrote:
>
> Hey, GrADS list.
>
> I’m getting an error with xy2gr – it’s duplicating the results of xy2w but only under specific circumstances. I’m using a Cartesian domain that’s not georeferenced (km from the origin as opposed to lat/lon on the planet). The two functions give similar results up to a point. To wit:
>
> Position = 5.15564 2.55131 1 0
>
> ga-> q xy2gr 5.15564 2.55131
> Xdim = 288.285 Ydim = -1179.48
>
> ga-> q xy2w 5.15564 2.55131
> Lon = 3862.26 Lat = -1179.48
>
> ga-> q xy2gr 5.15564 1.55131
> Xdim = 288.285 Ydim = -1579.48
>
> ga-> q xy2gr 5.15564 3.55131
> Xdim = 288.285 Ydim = 74.3479
>
> ga-> q xy2gr 5.15564 2.55131
> Xdim = 288.285 Ydim = -1179.48
>
> ga-> q xy2gr 5.15564 2.65131
> Xdim = 288.285 Ydim = -1139.48
>
> ga-> q xy2gr 5.15564 2.75131
> Xdim = 288.285 Ydim = -1099.48
>
> ga-> q xy2gr 5.15564 2.85131
> Xdim = 288.285 Ydim = -1059.48
>
> ga-> q xy2gr 5.15564 2.95131
> Xdim = 288.285 Ydim = -1019.48
>
> ga-> q xy2gr 5.15564 3.05131
> Xdim = 288.285 Ydim = 68.7923
>
> ga-> q xy2gr 5.15564 3
> Xdim = 288.285 Ydim = -1000
>
> ga-> q xy2gr 5.15564 3.01
> Xdim = 288.285 Ydim = 68.3333
>
> ga-> q xy2w 5.15564 3.01
> Lon = 3862.26 Lat = -996
>
> ga-> q xy2w 5.15564 3.00
> Lon = 3862.26 Lat = -1000
>
>
> The takeaway here is that when the position moves above -1000 “latitude,” then xy2gr is giving me the y-position grid index. Below that, then it’s the “world” coordinate. I don’t think the 3 means anything, here (just a guess).
>
> Operator-error goof or bug?
>
> ~Dave
> _______________________________________________
> gradsusr mailing list
> <mailto:gradsusr at gradsusr.org> gradsusr at gradsusr.org
> <http://gradsusr.org/mailman/listinfo/gradsusr> http://gradsusr.org/mailman/listinfo/gradsusr
--
Jennifer Miletta Adams
Center for Ocean-Land-Atmosphere Studies (COLA) George Mason University
_______________________________________________
gradsusr mailing list
<mailto:gradsusr at gradsusr.org> gradsusr at gradsusr.org
<http://gradsusr.org/mailman/listinfo/gradsusr> http://gradsusr.org/mailman/listinfo/gradsusr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20170705/49ae6a47/attachment.html
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cotc.Patricia.grid_1-mod.ctl.txt
Url: http://gradsusr.org/pipermail/gradsusr/attachments/20170705/49ae6a47/attachment.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5386 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20170705/49ae6a47/attachment.bin
More information about the gradsusr
mailing list