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

Home » Public Forums » archive » Day/Night Terminator on Map Projection
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Day/Night Terminator on Map Projection [message #48366 is a reply to message #48311] Wed, 12 April 2006 23:00 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> Does anyone have IDL code for calculating the day/night
> terminator on a map projection? Or perhaps an example of
> a map in which you have done this?

Thanks to Kelly Dean and Andrew Cool for suppling me
with a few (slightly buggy!) examples of how to do this. :-)

After spending most of the day scratching my head and
pondering yet again the shear beauty of Ray Sterner's
JHUAPL code, I finally came up with something I like.

Rather than just drawing the day/night terminator, I wanted
to see it in living color. So I used the AVHRR data set that
comes in the IDL demo directory for this purpose. It makes
a very pretty map, if I do say so myself!

You can see the code I came up with and a nice picture
here:

http://www.dfanning.com/map_tips/terminator.html

To run the code, you will need to have both the Coyote
Library and the JHUAPL Library on your IDL path.

I'll probably spend some time tomorrow making a little
stand-alone application out of this with widgets so you
can change the time interactively. It's more interesting
than I would have thought to change the time and watch
the sun and shadows move though the day and year. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Finding a value in a array efficiently
Next Topic: Re: Possible problem with GDL environment variables under Fedora 5

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

Current Time: Sun Oct 12 02:34:12 PDT 2025

Total time taken to generate the page: 1.68131 seconds