comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » 6-1-75-6 W5M --> LOCAL GRID
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
6-1-75-6 W5M --> LOCAL GRID [message #24280] Sun, 25 March 2001 20:23 Go to next message
Mark Chan is currently offline  Mark Chan
Messages: 24
Registered: November 2000
Junior Member
GIVEN:
Point A @ 6-1-75-6 W5M (Take this to be the origin. Some where in Canada).
Point B @ 1-1-75-6 W5M
Point C @ 16-1-75-6 W5M

QUESTIONS TO BE ANSWERED:
What is the distance between A and B?
Ans: B is 5 miles east of A.

What is the distance between A and C?
Ans: sqrt(5^2+5^2). C is NE of A.

Etc. calculation like these.

QUESTION FOR IDL EXPERTS:
Is there a public domain IDL routine to do the conversion between the land
system above to local coordinate?

Thanks in advance,
Mark Chan
Re: 6-1-75-6 W5M --> LOCAL GRID [message #24325 is a reply to message #24280] Tue, 27 March 2001 21:23 Go to previous messageGo to next message
Mark Chan is currently offline  Mark Chan
Messages: 24
Registered: November 2000
Junior Member
Ben,

Could you point me to the site where I may find out more about the
conversion porgram that you mention?

As per Martin Trobec's posted reply, there seems to be a program one can
buy. However, I will like to see if the conversion program you mention will
do the job or not.

Thanks,
MC


"Ben Tupper" <btupper@bigelow.org> wrote in message
news:3AC09909.5241880A@bigelow.org...
> Hi Mark,
>
> I have not heard of such a system of conversions,... but, it's not clear
> to me what the 'land' coordinates of points A, B and C mean. There is
> code to convert between Lon/Lat in decimal degrees to UTM coords in
> meters. From the UTM coordinate system you can then get relative
> range/azimuth values between the points. You might even be able to
> translate the UTM coords to the Canadian equivalent of the US State
> Plane coordinate systems.
>
> Perhaps you could provide more details about these coordinate systems.
>
> Ben
>
> Mark Chan wrote:
>>
>> GIVEN:
>> Point A @ 6-1-75-6 W5M (Take this to be the origin. Some where in
Canada).
>> Point B @ 1-1-75-6 W5M
>> Point C @ 16-1-75-6 W5M
>>
>> QUESTIONS TO BE ANSWERED:
>> What is the distance between A and B?
>> Ans: B is 5 miles east of A.
>>
>> What is the distance between A and C?
>> Ans: sqrt(5^2+5^2). C is NE of A.
>>
>> Etc. calculation like these.
>>
>> QUESTION FOR IDL EXPERTS:
>> Is there a public domain IDL routine to do the conversion between the
land
>> system above to local coordinate?
>>
>> Thanks in advance,
>> Mark Chan
>
> --
> Ben Tupper
> Bigelow Laboratory for Ocean Sciences
> 180 McKown Point Rd.
> W. Boothbay Harbor, ME 04575
> btupper@bigelow.org
Re: 6-1-75-6 W5M --> LOCAL GRID [message #24330 is a reply to message #24280] Tue, 27 March 2001 13:10 Go to previous messageGo to next message
Martin Trobec is currently offline  Martin Trobec
Messages: 5
Registered: November 2000
Junior Member
Hi Mark

You can convert well uwi to utm (northing-metres, easting-metres) using
D. W. Lepard and K. N. Nairn TOWNSHIP UTILITIES program (1996) available
at the University of Calgary bookstore for about $20. The program will
output utm coordinates from a input Canadian uwi well list, or output
utm coordinates from a input lat/long list for all the western Canadian
provinces (including the BC land system). The default projection is
NAD27 but you have a few other choices.

Once you have the utm well file you can use IDL to calculate distances
from point to point (like your euclid example calculation).

Lepard's program will also create a vector file to plot section and
township maps for overlaying your utm well locations (NAD27 projection).

If you purchased ENVI with your IDL program, you can use ENVI to convert
the map to about 38 different projections.

Martin Trobec


Mark Chan wrote:
>
> GIVEN:
> Point A @ 6-1-75-6 W5M (Take this to be the origin. Some where in Canada).
> Point B @ 1-1-75-6 W5M
> Point C @ 16-1-75-6 W5M
>
> QUESTIONS TO BE ANSWERED:
> What is the distance between A and B?
> Ans: B is 5 miles east of A.
>
> What is the distance between A and C?
> Ans: sqrt(5^2+5^2). C is NE of A.
>
> Etc. calculation like these.
>
> QUESTION FOR IDL EXPERTS:
> Is there a public domain IDL routine to do the conversion between the land
> system above to local coordinate?
>
> Thanks in advance,
> Mark Chan
Re: 6-1-75-6 W5M --> LOCAL GRID [message #24343 is a reply to message #24280] Tue, 27 March 2001 05:43 Go to previous messageGo to next message
btt is currently offline  btt
Messages: 345
Registered: December 2000
Senior Member
Hi Mark,

I have not heard of such a system of conversions,... but, it's not clear
to me what the 'land' coordinates of points A, B and C mean. There is
code to convert between Lon/Lat in decimal degrees to UTM coords in
meters. From the UTM coordinate system you can then get relative
range/azimuth values between the points. You might even be able to
translate the UTM coords to the Canadian equivalent of the US State
Plane coordinate systems.

Perhaps you could provide more details about these coordinate systems.

Ben

Mark Chan wrote:
>
> GIVEN:
> Point A @ 6-1-75-6 W5M (Take this to be the origin. Some where in Canada).
> Point B @ 1-1-75-6 W5M
> Point C @ 16-1-75-6 W5M
>
> QUESTIONS TO BE ANSWERED:
> What is the distance between A and B?
> Ans: B is 5 miles east of A.
>
> What is the distance between A and C?
> Ans: sqrt(5^2+5^2). C is NE of A.
>
> Etc. calculation like these.
>
> QUESTION FOR IDL EXPERTS:
> Is there a public domain IDL routine to do the conversion between the land
> system above to local coordinate?
>
> Thanks in advance,
> Mark Chan

--
Ben Tupper
Bigelow Laboratory for Ocean Sciences
180 McKown Point Rd.
W. Boothbay Harbor, ME 04575
btupper@bigelow.org
Re: 6-1-75-6 W5M --> LOCAL GRID [message #24468 is a reply to message #24325] Wed, 28 March 2001 05:36 Go to previous message
btt is currently offline  btt
Messages: 345
Registered: December 2000
Senior Member
Hi Mark,

I wrote the LL to UTM transformation code (and the reverse) using the
methods outlined in the following reference:

; REFERENCE:
; J.P. Snyder, "Map projections - A working manual',1987,
; U.S.G.S. Professional Paper 1395, Supt. of Docs No: I 19.16:1395,
; U.S. Govt Printing Office,Washington, DC 20402.

I don't have that code handy here, but will send it to you.

Ben

Mark Chan wrote:
>
> Ben,
>
> Could you point me to the site where I may find out more about the
> conversion porgram that you mention?
>
> As per Martin Trobec's posted reply, there seems to be a program one can
> buy. However, I will like to see if the conversion program you mention will
> do the job or not.
>
> Thanks,
> MC
>
> "Ben Tupper" <btupper@bigelow.org> wrote in message
> news:3AC09909.5241880A@bigelow.org...
>> Hi Mark,
>>
>> I have not heard of such a system of conversions,... but, it's not clear
>> to me what the 'land' coordinates of points A, B and C mean. There is
>> code to convert between Lon/Lat in decimal degrees to UTM coords in
>> meters. From the UTM coordinate system you can then get relative
>> range/azimuth values between the points. You might even be able to
>> translate the UTM coords to the Canadian equivalent of the US State
>> Plane coordinate systems.
>>
>> Perhaps you could provide more details about these coordinate systems.
>>
>> Ben
>>
>> Mark Chan wrote:
>>>
>>> GIVEN:
>>> Point A @ 6-1-75-6 W5M (Take this to be the origin. Some where in
> Canada).
>>> Point B @ 1-1-75-6 W5M
>>> Point C @ 16-1-75-6 W5M
>>>
>>> QUESTIONS TO BE ANSWERED:
>>> What is the distance between A and B?
>>> Ans: B is 5 miles east of A.
>>>
>>> What is the distance between A and C?
>>> Ans: sqrt(5^2+5^2). C is NE of A.
>>>
>>> Etc. calculation like these.
>>>
>>> QUESTION FOR IDL EXPERTS:
>>> Is there a public domain IDL routine to do the conversion between the
> land
>>> system above to local coordinate?
>>>
>>> Thanks in advance,
>>> Mark Chan
>>
>> --
>> Ben Tupper
>> Bigelow Laboratory for Ocean Sciences
>> 180 McKown Point Rd.
>> W. Boothbay Harbor, ME 04575
>> btupper@bigelow.org

--
Ben Tupper
Bigelow Laboratory for Ocean Sciences
180 McKown Point Rd.
W. Boothbay Harbor, ME 04575
btupper@bigelow.org
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Truncated save file?
Next Topic: Help setting up an array

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 14:01:12 PDT 2025

Total time taken to generate the page: 0.00524 seconds