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

Home » Public Forums » archive » Map Projection Woes
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Map Projection Woes [message #48358] Thu, 13 April 2006 11:26
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Folks,

I took on this day/night terminator project to learn a
little more about map projections. I thought I would learn
something by doing it. I know better, and should be careful
what I wish for.

Here is my problem (I think), and you map projection
experts probably know the answer. My program calculates
a field of view, essentially, from the point of view
of the sun looking towards the Earth. You could think
of it as a circular polygon.

If the subsolar point on the Earth is inside this
polygon, that is the light part of the map. If it is
outside, that is the dark part of the map, with
respect to the day/night terminator.

But...I don't always get a reliable answer to my question:
"Is the subsolar point inside the polygon that describes
the terminator?" The problem comes (surprise, surprise)
when the polygon crosses the international date line
and there is a jump from 180 degrees of longitude to -180
degrees of longitude.

My question is how is this handled, normally? (If you
are an Aussie or a Kiwi this problem probably comes up
daily.)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Previous Topic: IDL routine to calculate slope and aspect from elevation grid?
Next Topic: Re: Debugging DLMs

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

Current Time: Fri Oct 10 07:15:19 PDT 2025

Total time taken to generate the page: 0.96013 seconds