[pycalcal] push by enrico.spinielli - added graph for coord transformation. on 2010-02-13 15:16 GMT

1 view
Skip to first unread message

pyca...@googlecode.com

unread,
Feb 13, 2010, 10:17:05 AM2/13/10
to pyca...@googlegroups.com
Revision: 0832d492bd
Author: Enrico Spinielli <enrico.s...@gmail.com>
Date: Sat Feb 13 07:16:26 2010
Log: added graph for coord transformation.
http://code.google.com/p/pycalcal/source/detail?r=0832d492bd

Added:
/fig_coord_transform.gv
/fig_coord_transform.png
Modified:
/pycalcal.nw

=======================================
--- /dev/null
+++ /fig_coord_transform.gv Sat Feb 13 07:16:26 2010
@@ -0,0 +1,12 @@
+digraph finite_state_machine {
+ ranksep=3;
+ ratio=auto;
+ node [shape = doublecircle]; equatorial;
+ node [shape = circle, fixedsize = true, width = 1.5];
+ equatorial -> galactic [ labeldistance=3, headlabel = "1" ];
+ galactic -> equatorial [ labeldistance=3, headlabel = "2" ];
+ equatorial -> ecliptical [ labeldistance=3, headlabel = "3" ];
+ ecliptical -> equatorial [ labeldistance=3, headlabel = "4" ];
+ equatorial -> horizontal [ labeldistance=3, headlabel = "5" ];
+ horizontal -> equatorial [ labeldistance=3, headlabel = "6" ];
+}
=======================================
--- /dev/null
+++ /fig_coord_transform.png Sat Feb 13 07:16:26 2010
Binary file, no diff available.
=======================================
--- /pycalcal.nw Mon Feb 8 02:10:30 2010
+++ /pycalcal.nw Sat Feb 13 07:16:26 2010
@@ -3313,6 +3313,20 @@
\rule{\textwidth}{0.005in}
\end{figure}

+<<fig_coord_transform.gv>>=
+# genrate w/ twopi -Tpng fig_coord_transform.gv > fig_coord_transform.png
+digraph finite_state_machine {
+ ranksep=3;
+ ratio=auto;
+ node [shape = doublecircle]; equatorial;
+ node [shape = circle, fixedsize = true, width = 1.5];
+ equatorial -> galactic [ labeldistance=3, headlabel = "1" ];
+ galactic -> equatorial [ labeldistance=3, headlabel = "2" ];
+ equatorial -> ecliptical [ labeldistance=3, headlabel = "3" ];
+ ecliptical -> equatorial [ labeldistance=3, headlabel = "4" ];
+ equatorial -> horizontal [ labeldistance=3, headlabel = "5" ];
+ horizontal -> equatorial [ labeldistance=3, headlabel = "6" ];
+}

<<time and astronomy>>=
######################
@@ -8379,7 +8393,7 @@
@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
<<Makefile: suffixes>>=
.SUFFIXES:
-.SUFFIXES: .nw .tex .py .dvi .defs .html .pdf .mp .asy .mps
+.SUFFIXES: .nw .tex .py .dvi .defs .html .pdf .mp .asy .mps .gv .png

.nw.py:
$(NOTANGLE) -filter btdefn -R$*.py - $(CPIF) $*.py
@@ -8420,6 +8434,12 @@
.asy.pdf:
asy -tex pdflatex $*.asy

+.nw.gv:
+ $(NOTANGLE) -filter btdefn -R$*.gv - $(CPIF) $*.gv
+
+.gv.png:
+ dot -Tpng $*.gv > $*.png
+
@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
<<Makefile: targets>>=
# %.chk (this is a check for latex)
@@ -8447,8 +8467,8 @@
# extra dependency on premarkup)
pycalcal.py: premarkup

+# figures
.PHONY : figures
-
figures: fig_ra-dec.pdf fig_ecliptic.pdf fig_alt-az.pdf


Reply all
Reply to author
Forward
0 new messages