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 #82636] Thu, 27 December 2012 08:06 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Gompie writes:

> I have more than 62000 points that are spread over different seasons and lat lons ,on which I have to apply the day/night test.
>
> Is it possible to map the lat lon onto the image coordinates of the image output of cgterminator or sunclock and get a number telling me if it is day or night at that point.
>
> PS:
> sunclock routine in the link you gave ( http://fermi.jhuapl.edu/s1r/idl/s1rlib/local_idl.html) looks promising if takes care of seasonal variations.
>
> If I use cgterminator, due to its problem with flip, I have visually inspect each of the 62000 points so practically not possible unless you give a way out.

Well, if there is a way out, you aren't going to get it
from me. I'm spending the day with the family celebrating
a late Christmas. I'm just say that IF there is an
answer, it will probably be found among the JHUAPL
time routines.

It is certainly possible to map lat/lon positions to
image coordinates. I find Value_Locate, used in conjunction
with projected XY values, to be invaluable for this purpose.

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 15:19:16 PDT 2025

Total time taken to generate the page: 0.00231 seconds