Discussion:
[wsjt-devel] Azimuth/Elevation calculator in WSJT-X
Jay Hainline
2016-08-29 13:33:20 UTC
Permalink
Using WSJT-X v1.7.0-rc1 r7036 this morning on msk144.



Noticed that the az/el calculator will not work if I enter a DX grid square
that happens to be in my grid field EN. I am located in EN40. If I try and
work a station in an EN grid field, the AZ and miles show up as zero.



Jay Hainline KA9CFD

Colchester, IL EN40om
Jay Hainline
2016-08-29 13:45:00 UTC
Permalink
I am sorry, I meant to say Azimuth and distance calculator is not working
for Grids that happen to be in my field.



Jay KA9CFD



From: Jay Hainline [mailto:***@mtcnow.net]
Sent: August 29, 2016 13:33
To: 'wsjt-***@lists.sourceforge.net' <wsjt-***@lists.sourceforge.net>
Subject: Azimuth/Elevation calculator in WSJT-X



Using WSJT-X v1.7.0-rc1 r7036 this morning on msk144.



Noticed that the az/el calculator will not work if I enter a DX grid square
that happens to be in my grid field EN. I am located in EN40. If I try and
work a station in an EN grid field, the AZ and miles show up as zero.



Jay Hainline KA9CFD

Colchester, IL EN40om
Joe Taylor
2016-08-29 13:50:18 UTC
Permalink
Hi Jay,
Post by Jay Hainline
Using WSJT-X v1.7.0-rc1 r7036 this morning on msk144.
Noticed that the az/el calculator will not work if I enter a DX grid square
that happens to be in my grid field EN. I am located in EN40. If I try and
work a station in an EN grid field, the AZ and miles show up as zero.
What would you want the program to do? Its only information for
calculating distance and bearing is what you give it.

If you say you're in EN50 and DX Grid is set to EN50, it will
necessarily compute the distance as zero. (The azimuth is formally
undefined, but will be displayed as zero.)

If you use a 4-character locator, the program uses the center of that
locator, for example EN50mm.

If you want accurate distances and bearings, especially for short-haul
work, you must use 6-character locators.

-- 73, Joe, K1JT

------------------------------------------------------------------------------
Jay Hainline
2016-08-29 13:52:47 UTC
Permalink
No Joe, I am talking about other grids in the EN field. I am in EN40. If I
put EN00 grid in the dx grid field, it comes up zeros.

Jay KA9CFD

-----Original Message-----
From: Joe Taylor [mailto:***@princeton.edu]
Sent: August 29, 2016 13:50
To: WSJT software development <wsjt-***@lists.sourceforge.net>
Subject: Re: [wsjt-devel] Azimuth/Elevation calculator in WSJT-X

Hi Jay,
Post by Jay Hainline
Using WSJT-X v1.7.0-rc1 r7036 this morning on msk144.
Noticed that the az/el calculator will not work if I enter a DX grid
square that happens to be in my grid field EN. I am located in EN40.
If I try and work a station in an EN grid field, the AZ and miles show up
as zero.

What would you want the program to do? Its only information for calculating
distance and bearing is what you give it.

If you say you're in EN50 and DX Grid is set to EN50, it will necessarily
compute the distance as zero. (The azimuth is formally undefined, but will
be displayed as zero.)

If you use a 4-character locator, the program uses the center of that
locator, for example EN50mm.

If you want accurate distances and bearings, especially for short-haul work,
you must use 6-character locators.

-- 73, Joe, K1JT

----------------------------------------------------------------------------
--
_______________________________________________
wsjt-devel mailing list
wsjt-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel




------------------------------------------------------------------------------
Bill Somerville
2016-08-29 14:00:54 UTC
Permalink
Post by Jay Hainline
No Joe, I am talking about other grids in the EN field. I am in EN40. If I
put EN00 grid in the dx grid field, it comes up zeros.
Hi Joe & Jay,

I can confirm this defect, looks like the calculation is wrong if the
last digit is the same as the DE grid.

I'll have a look at it right now.

73
Bill
G4WJS.


------------------------------------------------------------------------------
Jay Hainline
2016-08-29 14:07:11 UTC
Permalink
Thank you Bill. I see what you mean by the last digit. No wonder I had not
noticed it before. :-)

Jay KA9CFD

-----Original Message-----
From: Bill Somerville [mailto:***@classdesign.com]
Sent: August 29, 2016 14:01
To: wsjt-***@lists.sourceforge.net
Subject: Re: [wsjt-devel] Azimuth/Elevation calculator in WSJT-X
Post by Jay Hainline
No Joe, I am talking about other grids in the EN field. I am in EN40.
If I put EN00 grid in the dx grid field, it comes up zeros.
Hi Joe & Jay,

I can confirm this defect, looks like the calculation is wrong if the last
digit is the same as the DE grid.

I'll have a look at it right now.

73
Bill
G4WJS.


----------------------------------------------------------------------------
--
_______________________________________________
wsjt-devel mailing list
wsjt-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel




------------------------------------------------------------------------------
Bill Somerville
2016-08-29 14:52:53 UTC
Permalink
Post by Jay Hainline
Thank you Bill. I see what you mean by the last digit. No wonder I had not
noticed it before.:-)
Hi Jay,

I have sent you a patched version of WSJT-X off list for you to test.

The problem was a minor typo that meant pairs of grids on the same
longitude would always show as zero Az/dist. I will check in the change
later as it is on the back of my commit queue while I await some user
testing on earlier changes.

73
Bill
G4WJS.


------------------------------------------------------------------------------
Black Michael
2016-08-29 16:59:07 UTC
Permalink
Actually the calculation for lat/lon was incorrect.
I rewrote the calculation to make it clearer and produce the correct answer....patch attached.
You should be able to test the old version and see a wrong lat/lon for your grid if you want.  Mine was showing positive longitude instead of negative and was off by 3 degrees for example.
de Mike W9MDB
From: Bill Somerville <***@classdesign.com>
To: wsjt-***@lists.sourceforge.net
Sent: Monday, August 29, 2016 9:52 AM
Subject: Re: [wsjt-devel] Azimuth/Elevation calculator in WSJT-X
Post by Jay Hainline
Thank you Bill. I see what you mean by the last digit. No wonder I had not
noticed it before.:-)
Hi Jay,

I have sent you a patched version of WSJT-X off list for you to test.

The problem was a minor typo that meant pairs of grids on the same
longitude would always show as zero Az/dist. I will check in the change
later as it is on the back of my commit queue while I await some user
testing on earlier changes.

73
Bill
G4WJS.


------------------------------------------------------------------------------
Bill Somerville
2016-08-29 17:25:58 UTC
Permalink
Post by Black Michael
Actually the calculation for lat/lon was incorrect.
I rewrote the calculation to make it clearer and produce the correct
answer....patch attached.
Hi Mike,

I'm not so sure your patch is more accurate. Joe's original version uses
the centre of the square as the origin whereas yours uses the corner. In
the big scheme of things I suppose it doesn't matter as it is all
relative to an arbitrary reference. There should be no difference
although your version does many unnecessary floating point operations so
rounding error accumulations are possible.

73
Bill
G4WJS.
Joe Taylor
2016-08-29 17:47:03 UTC
Permalink
Mike --
Post by Black Michael
Actually the calculation for lat/lon was incorrect.
No, there's nothing wrong with grid2deg.f90.

Your patch would be approximately OK, except that its longitudes have
the opposite sign convention to that used elsewhere in the program.

-- Joe, K1JT

------------------------------------------------------------------------------
Black Michael
2016-08-29 14:03:06 UTC
Permalink
Add the 2 char suffix to your grid, test, then remove it and test again.I was able to reproduce your problem.  I already had a 6-char grid and saw the same problem....removed the 2-chars and the problem went away.  Added the 2 chars back and no problem.
So I'm wondering if there's some subtle thing going on.  See what happens for you and I'll try and duplicate again.
de Mike W9MDB

From: Jay Hainline <***@mtcnow.net>
To: 'WSJT software development' <wsjt-***@lists.sourceforge.net>
Sent: Monday, August 29, 2016 8:52 AM
Subject: Re: [wsjt-devel] Azimuth/Elevation calculator in WSJT-X

No Joe, I am talking about other grids in the EN field. I am in EN40. If I
put EN00 grid in the dx grid field, it comes up zeros.

Jay KA9CFD

-----Original Message-----
From: Joe Taylor [mailto:***@princeton.edu]
Sent: August 29, 2016 13:50
To: WSJT software development <wsjt-***@lists.sourceforge.net>
Subject: Re: [wsjt-devel] Azimuth/Elevation calculator in WSJT-X

Hi Jay,
Post by Jay Hainline
Using WSJT-X v1.7.0-rc1 r7036 this morning on msk144.
Noticed that the az/el calculator will not work if I enter a DX grid
square that happens to be in my grid field EN. I am located in EN40.
If I try and work a station in an EN grid field, the AZ and miles show up
as zero.

What would you want the program to do?  Its only information for calculating
distance and bearing is what you give it.

If you say you're in EN50 and DX Grid is set to EN50, it will necessarily
compute the distance as zero.  (The azimuth is formally undefined, but will
be displayed as zero.)

If you use a 4-character locator, the program uses the center of that
locator, for example EN50mm.

If you want accurate distances and bearings, especially for short-haul work,
you must use 6-character locators.

    -- 73, Joe, K1JT

----------------------------------------------------------------------------
--
_______________________________________________
wsjt-devel mailing list
wsjt-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel




------------------------------------------------------------------------------
Jay Hainline
2016-08-29 14:14:35 UTC
Permalink
Mike. If I add my full grid EN40om to my My Grid, then enter EN00 to the DX Grid field, it still shows zeros for the AZ and miles. If I add 2 more characters to the DX Grid, example EN00aa, it will calculate out. HOWEVER, if I use EN00mm for the center of the grid, it shows zeros again. Changing My Grid back to EN40 makes no difference. EN00mm still shows zeros while any other 6 digit grid combination calculates out.



Jay KA9CFD







From: Black Michael [mailto:***@yahoo.com]
Sent: August 29, 2016 14:03
To: WSJT software development <wsjt-***@lists.sourceforge.net>
Subject: Re: [wsjt-devel] Azimuth/Elevation calculator in WSJT-X



Add the 2 char suffix to your grid, test, then remove it and test again.

I was able to reproduce your problem. I already had a 6-char grid and saw the same problem....removed the 2-chars and the problem went away. Added the 2 chars back and no problem.



So I'm wondering if there's some subtle thing going on. See what happens for you and I'll try and duplicate again.



de Mike W9MDB





_____

From: Jay Hainline <***@mtcnow.net <mailto:***@mtcnow.net> >
To: 'WSJT software development' <wsjt-***@lists.sourceforge.net <mailto:wsjt-***@lists.sourceforge.net> >
Sent: Monday, August 29, 2016 8:52 AM
Subject: Re: [wsjt-devel] Azimuth/Elevation calculator in WSJT-X


No Joe, I am talking about other grids in the EN field. I am in EN40. If I
put EN00 grid in the dx grid field, it comes up zeros.

Jay KA9CFD

-----Original Message-----
From: Joe Taylor [mailto:***@princeton.edu <mailto:***@princeton.edu> ]
Sent: August 29, 2016 13:50
To: WSJT software development <wsjt-***@lists.sourceforge.net <mailto:wsjt-***@lists.sourceforge.net> >
Subject: Re: [wsjt-devel] Azimuth/Elevation calculator in WSJT-X

Hi Jay,
Post by Jay Hainline
Using WSJT-X v1.7.0-rc1 r7036 this morning on msk144.
Noticed that the az/el calculator will not work if I enter a DX grid
square that happens to be in my grid field EN. I am located in EN40.
If I try and work a station in an EN grid field, the AZ and miles show up
as zero.

What would you want the program to do? Its only information for calculating
distance and bearing is what you give it.

If you say you're in EN50 and DX Grid is set to EN50, it will necessarily
compute the distance as zero. (The azimuth is formally undefined, but will
be displayed as zero.)

If you use a 4-character locator, the program uses the center of that
locator, for example EN50mm.

If you want accurate distances and bearings, especially for short-haul work,
you must use 6-character locators.

-- 73, Joe, K1JT

----------------------------------------------------------------------------
--
_______________________________________________
wsjt-devel mailing list
wsjt-***@lists.sourceforge.net <mailto:wsjt-***@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/wsjt-devel






------------------------------------------------------------------------------
Joe Taylor
2016-08-29 15:00:13 UTC
Permalink
Hi Jay,

OK, understood. I think Bill has already fixed the programming typo.

-- Joe, K1JT
Post by Jay Hainline
No Joe, I am talking about other grids in the EN field. I am in EN40. If I
put EN00 grid in the dx grid field, it comes up zeros.
Jay KA9CFD
-----Original Message-----
Sent: August 29, 2016 13:50
Subject: Re: [wsjt-devel] Azimuth/Elevation calculator in WSJT-X
Hi Jay,
Post by Jay Hainline
Using WSJT-X v1.7.0-rc1 r7036 this morning on msk144.
Noticed that the az/el calculator will not work if I enter a DX grid
square that happens to be in my grid field EN. I am located in EN40.
If I try and work a station in an EN grid field, the AZ and miles show up
as zero.
What would you want the program to do? Its only information for calculating
distance and bearing is what you give it.
If you say you're in EN50 and DX Grid is set to EN50, it will necessarily
compute the distance as zero. (The azimuth is formally undefined, but will
be displayed as zero.)
If you use a 4-character locator, the program uses the center of that
locator, for example EN50mm.
If you want accurate distances and bearings, especially for short-haul work,
you must use 6-character locators.
-- 73, Joe, K1JT
----------------------------------------------------------------------------
--
_______________________________________________
wsjt-devel mailing list
https://lists.sourceforge.net/lists/listinfo/wsjt-devel
------------------------------------------------------------------------------
_______________________________________________
wsjt-devel mailing list
https://lists.sourceforge.net/lists/listinfo/wsjt-devel
------------------------------------------------------------------------------
IK1WVQ Mauro
2016-08-29 15:17:19 UTC
Permalink
Hi to all,
plans for a MAP65 version including the new QRA mode ??
The funcube + MAP65 is a perfect match for me, listening_only (for now)..

73 to all de Mauro IK1WVQ


------------------------------------------------------------------------------
Loading...