| 1 |
\documentclass{article} |
|---|
| 2 |
\usepackage[T1]{fontenc} |
|---|
| 3 |
\usepackage[latin1]{inputenc} |
|---|
| 4 |
\usepackage[a4paper,margin=2cm]{geometry} |
|---|
| 5 |
\usepackage{pstricks-add,pst-map3d} |
|---|
| 6 |
\pagestyle{empty} |
|---|
| 7 |
\definecolor{BlueDark}{cmyk}{1,1,0,0.5} |
|---|
| 8 |
\newpsstyle{Globe}{circles=true,gridmap=true,daynight=false} |
|---|
| 9 |
\newpsstyle{ShadowGlobe}{fillstyle=solid,fillcolor=black,linecolor=black,opacity=0.8} |
|---|
| 10 |
|
|---|
| 11 |
\makeatletter |
|---|
| 12 |
|
|---|
| 13 |
\newdimen\pssizeStar |
|---|
| 14 |
\def\psset@sizeStar#1{\pssetlength\pssizeStar{#1}} |
|---|
| 15 |
\psset@sizeStar{1.5pt} |
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
\def\psRandomStar{\pst@object{psRandomStar}} |
|---|
| 20 |
\def\psRandomStar@i{\@ifnextchar({\psRandomStar@ii}{\psRandomStar@iii(0,0)(1,1)}} |
|---|
| 21 |
\def\psRandomStar@ii(#1){\@ifnextchar({\psRandomStar@iii(#1)}{\psRandomStar@iii(0,0)(#1)}} |
|---|
| 22 |
\def\psRandomStar@iii(#1)(#2)#3{ |
|---|
| 23 |
\def\pst@tempA{#3} |
|---|
| 24 |
\ifx\pst@tempA\pst@empty\psclip{\psframe(#2)}\else\psclip{#3}\fi |
|---|
| 25 |
\pst@getcoor{#1}\pst@tempA |
|---|
| 26 |
\pst@getcoor{#2}\pst@tempB |
|---|
| 27 |
\begin@SpecialObj |
|---|
| 28 |
\addto@pscode{ |
|---|
| 29 |
\pst@tempA\space /yMin exch def |
|---|
| 30 |
/xMin exch def |
|---|
| 31 |
\pst@tempB\space /yMax exch def |
|---|
| 32 |
/xMax exch def |
|---|
| 33 |
/dy yMax yMin sub def |
|---|
| 34 |
/dx xMax xMin sub def |
|---|
| 35 |
rrand srand |
|---|
| 36 |
/getRandReal { rand 2147483647 div } def |
|---|
| 37 |
\psk@randomPoints { |
|---|
| 38 |
/DS \pst@number\pssizeStar\space getRandReal mul def |
|---|
| 39 |
\@nameuse{psds@\psk@dotstyle} |
|---|
| 40 |
\ifPst@color getRandReal 1 1 sethsbcolor \fi |
|---|
| 41 |
getRandReal dx mul xMin add |
|---|
| 42 |
getRandReal dy mul yMin add |
|---|
| 43 |
Dot |
|---|
| 44 |
\ifx\psk@fillstyle\psfs@solid fill \fi stroke |
|---|
| 45 |
} repeat |
|---|
| 46 |
} |
|---|
| 47 |
\end@SpecialObj |
|---|
| 48 |
\endpsclip |
|---|
| 49 |
\ignorespaces |
|---|
| 50 |
} |
|---|
| 51 |
\makeatother |
|---|
| 52 |
|
|---|
| 53 |
\begin{document} |
|---|
| 54 |
\psset{Radius=5,Decran=100,Dobs=100,unit=0.5} |
|---|
| 55 |
Le jour du solstice d'hiver, il est alors 12 heures UTC à Paris, au même moment dans d'autres villes : |
|---|
| 56 |
\begin{center} |
|---|
| 57 |
\begin{pspicture}(-7,-8)(7,6) |
|---|
| 58 |
\psframe(-7,-8)(7,6) |
|---|
| 59 |
\psline(-10;48.85)(8;48.85) |
|---|
| 60 |
\rput(-10;48.85){\psline(3,0)\psarc{->}(0,0){2}{0}{48.85}\uput[24.4](2;24.4){48.85}} |
|---|
| 61 |
\psGlobeTellure[hour=12,Day=22,Month=12,Year=2008](2.32,48.85000){Paris} |
|---|
| 62 |
\end{pspicture} |
|---|
| 63 |
\hfill |
|---|
| 64 |
\begin{pspicture}(-7,-8)(7,6) |
|---|
| 65 |
\psframe(-7,-8)(7,6) |
|---|
| 66 |
\psline(-10;40.75)(8;40.75) |
|---|
| 67 |
\rput(-10;40.75){\psline(3,0)\psarc{->}(0,0){2}{0}{40.75}\uput[20.37](2;20.37){40.75}} |
|---|
| 68 |
\psGlobeTellure[hour=7,Day=22,Month=12,Year=2008](-74.0,40.75){New York} |
|---|
| 69 |
\end{pspicture} |
|---|
| 70 |
\end{center} |
|---|
| 71 |
|
|---|
| 72 |
\begin{center} |
|---|
| 73 |
\begin{pspicture}(-7,-8)(7,6) |
|---|
| 74 |
\psframe(-7,-8)(7,6) |
|---|
| 75 |
\psline(-10;37.78333)(8;37.78333) |
|---|
| 76 |
\rput(-10;37.78333){\psline(3,0)\psarc{->}(0,0){2}{0}{37.7833}\uput[19](2;19){37.78}} |
|---|
| 77 |
\psGlobeTellure[hour=4,Day=22,Month=12,Year=2008](-122.416666667,37.7833333333){San Francisco} |
|---|
| 78 |
\end{pspicture} |
|---|
| 79 |
\hfill |
|---|
| 80 |
\begin{pspicture}(-7,-8)(7,6) |
|---|
| 81 |
\psframe(-7,-8)(7,6) |
|---|
| 82 |
\psline(-10;10.63)(8;10.63) |
|---|
| 83 |
\rput(-10;10.63){\psline(3,0)\psarc{->}(0,0){2}{0}{10.63}\uput[5.8](2;10.63){10.63}} |
|---|
| 84 |
\psGlobeTellure[hour=8,Day=22,Month=12,Year=2008](-61.5,10.63){Port of Spain} |
|---|
| 85 |
\end{pspicture} |
|---|
| 86 |
\end{center} |
|---|
| 87 |
|
|---|
| 88 |
\begin{center} |
|---|
| 89 |
\begin{pspicture}(-7,-8)(7,6) |
|---|
| 90 |
\psframe(-7,-8)(7,6) |
|---|
| 91 |
\psline(-9;39.93)(8;39.93) |
|---|
| 92 |
\rput(-9;39.93){\psline(3,0)\psarc{->}(0,0){2}{0}{39.93}\uput[20](2;20){39.93}} |
|---|
| 93 |
\psGlobeTellure[hour=20,Day=22,Month=12,Year=2008](116.4,39.9333333333){Beijing} |
|---|
| 94 |
\end{pspicture} |
|---|
| 95 |
\hfill |
|---|
| 96 |
\begin{pspicture}(-7,-8)(7,6) |
|---|
| 97 |
\psframe(-7,-8)(7,6) |
|---|
| 98 |
\psline(-9;67.82)(8;67.82) |
|---|
| 99 |
\rput(-9;67.82){\psline(3,0)\psarc{->}(0,0){2}{0}{67.82}\uput[34](1;34){67.82}} |
|---|
| 100 |
\psGlobeTellure[hour=24,Day=22,Month=12,Year=2008](175.83,67.82){Vankarem} |
|---|
| 101 |
\end{pspicture} |
|---|
| 102 |
\end{center} |
|---|
| 103 |
|
|---|
| 104 |
\end{document} |
|---|
| 105 |
|
|---|
| 106 |
|
|---|