Re: Limb Darkening

"Eduardo A. Suárez" <[email protected]>
Newsgroups gmane.comp.gis.gmt.user
Message-ID <[email protected]>
Hi Martin,

while playing with solar eclipse paths I found NREL's SPA algorithm  
which gives Sun position and other values. Then you can to use Sun's  
elevation to know day/night.

http://www.nrel.gov/midc/sampa/

Eduardo.-

Quoting Martin Connors <[email protected]>:

> Hi all,
>  looks like we are heading to a nice 2014 with GMT 5 out and good   
> discussions. A few months ago I was trying to do "scientific   
> illustration" with an Earth with night and daysides, so sort of what  
>  is asked for here. See my script fragment below and note some   
> symbols are undefined in this fragment, but I think you can figure   
> them out.
>
>  In attachment is the code for illumination. As noted in Eduardo   
> Suarez' posting, it is hard to find a "nice decay rate". For   
> testing, my code can be uncommented to have a rather sharp day/night  
>  boundary. The illumination is then overlaid with transparency, and   
> to see it you have to make a PDF file.
>
> Enjoy...Martin
>
> paltb=gray
> makecpt -C$paltb -T0/1/0.01 > illum.cpt
>
> # center of projection
> lonp=280.34
> lonp=320
> latp=75
>
> projection="JG$lonp/$latp/$D1"
> region="Rg"
>
> ./illumination $geonoon | surface -Rg -I1/0.1 -T0 -Gillum.grd
>
> pscoast -$region -Dc -A10000 -$projection -B30g30/15g15 -W1 -X$xoff   
> -Y$yoff -Sblue -Ggreen $orient -K > illum.ps
>
> # grdimage with transparency -t% from 0 (opaque) to 100 (transparent)
> trans=10
> grdimage illum.grd -$region -Cillum.cpt -$projection -K -O -t$trans   
> >> illum.ps
>
> ps2pdf illum.ps
>
> --
>     This communication is intended for the use of the recipient to whom it
>     is addressed, and may contain confidential, personal, and or privileged
>     information. Please contact us immediately if you are not the intended
>     recipient of this communication, and do not copy, distribute, or take
>     action relying on it. Any communications received in error, or
>     subsequent reply, should be deleted or destroyed.
> ---
>
> To unsubscribe, send the message "signoff gmt-help" to   
> [email protected]
>



-- 
Eduardo A. Suarez
Facultad de Ciencias Astronómicas y Geofísicas - UNLP
FCAG: (0221)-4236593 int. 172/Cel: (0221)-15-4557542/Casa: (0221)-4526589


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

To unsubscribe, send the message "signoff gmt-help" to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.