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

Home » Public Forums » archive » Re: day or night
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 or night [message #82639 is a reply to message #82638] Wed, 26 December 2012 22:21 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Gompie writes:

> I know the lat lon and time of a place on earth. How do I know if it is day or night.

Well, that's a good question. For which I don't have
a off-the-top-of-my-head answer, although I'm sure the
astronomers will and I'm reasonably sure the answer
is going to involve converting the time to a Julian time.

What does come immediately to mind, of course, is
my cgTerminatorMap program, which has to do something
reasonable similar.

http://www.idlcoyote.com/idldoc/cg/cgterminatormap.html

On about line 240 or so you see a number of calls to the "time"
functions of the Johns Hopkins University Applied Physics Lab.
I feel 100 percent certain that the answer to this question
is going to be found in the IDL routines that can be found
there:

http://fermi.jhuapl.edu/s1r/idl/s1rlib/local_idl.html

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: day or night
Next Topic: Fill value problem in MODIS Processing...

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

Current Time: Wed Oct 08 17:33:29 PDT 2025

Total time taken to generate the page: 0.00460 seconds