Index: /trunk/doc/design/Makefile
===================================================================
--- /trunk/doc/design/Makefile	(revision 6008)
+++ /trunk/doc/design/Makefile	(revision 6009)
@@ -1,8 +1,16 @@
-# $Id: Makefile,v 1.11 2005-04-22 22:35:10 price Exp $
+# $Id: Makefile,v 1.12 2006-01-16 01:11:39 eugene Exp $
 
 PDFLATEX = env TEXINPUTS=../../latex/inputs:$(TEXINPUTS):.: pdflatex
 PSLATEX  = env TEXINPUTS=../../latex/inputs:$(TEXINPUTS):.: latex
 
-all : ippSRS.pdf ippSDRS.pdf hardware.pdf ippSCDps1.pdf
+help:
+	@echo "USAGE: make (target)"
+	@echo "  targets: srs ssdd scd all"
+
+srs: ippSRS.pdf
+ssdd: ippSSDD.pdf
+scd: ippSCDps1.pdf
+
+all : srs ssdd scd
 
 ippSRS.pdf : ippSRS.tex
@@ -11,8 +19,12 @@
 	$(PSLATEX) ippSRSout.tex 
 	dvips -z -t letter -o ippSRSout.ps ippSRSout.dvi
+	ps2pdf $ippSRSout.ps $ippSRSout.pdf
+	thumbpdf --modes=dvips $ippSRSout.pdf
+	$(PSLATEX) ippSRSout.tex 
+	dvips -z -t letter -o ippSRSout.ps ippSRSout.dvi
 	ps2pdf ippSRSout.ps ippSRSout.pdf
 	mv ippSRSout.pdf ippSRS.pdf
 	@rm -f ippSRSout.ps ippSRSout.dvi ippSRSout.aux ippSRSout.log body.tmp head.tmp
-	@rm -f ippSRSout.tbr ippSRSout.tbd ippSRSout.ent ippSRSout.lof ippSRSout.loc
+	@rm -f ippSRSout.tbr ippSRSout.tbd ippSRSout.ent ippSRSout.lof ippSRSout.loc ippSRSout.tpm
 
 %.pdf: %.tex
@@ -21,8 +33,15 @@
 	dvips -z -t letter -o $*.ps $*.dvi
 	ps2pdf $*.ps $*.pdf
-	@rm -f $*.ps $*.dvi $*.aux $*.log $*.tbr $*.tbd $*.lof $*.toc body.tmp head.tmp
+	thumbpdf --modes=dvips $*.pdf
+	$(PSLATEX) $*.tex 
+	dvips -z -t letter -o $*.ps $*.dvi
+	ps2pdf $*.ps $*.pdf
+	@rm -f $*.ps $*.dvi $*.aux $*.log $*.tbr $*.tbd $*.lof $*.toc $*.tpm body.tmp head.tmp
 
 clean :
-	$(RM) *.log *.dvi *.aux *.toc *.tbd *.tbr *.lof *.out *~ core body.tmp head.tmp
+	$(RM) *.log *.dvi *.aux *.toc *.tbd *.tbr *.lof *.out *.tpm *~ core body.tmp head.tmp
+
+dist : clean
+	$(RM) *.pdf
 
 empty : clean
Index: unk/doc/design/haleakala_wireless.tex
===================================================================
--- /trunk/doc/design/haleakala_wireless.tex	(revision 6008)
+++ 	(revision )
@@ -1,104 +1,0 @@
-\documentclass[panstarrs]{panstarrs}
-
-%\documentclass[panstarrs,spec]{panstarrs}
-%\documentclass[panstarrs,psreport,12pt]{panstarrs}
-
-% basic document variables
-\title{An Inexpensive and Secure Network for the Pan-STARRS Prototype}
-\subtitle{Wireless Gigabit Ethernet on Haleakala}
-\author{Joshua Hoblitt}
-\audience{Pan-STARRS Management}
-%\shorttitle{IPP System Design}
-%\group{Pan-STARRS Algorithm Group}
-\project{Pan-STARRS Image Processing Pipeline}
-\organization{Institute for Astronomy}
-\version{00}
-\docnumber{PSDC-xxx-xxx}
-% note the use of the docnumber & version number:
-% the complete PSDC document number is given by
-% \thedocnumber-\theversion
-
-\begin{document}
-\maketitle
-
-% -- Revision History --
-\RevisionsStart
-% version   Date         Description
-00        & 2004.09.15 & First draft \\
-\hline
-%02        & 2003.03.05 & Second draft \\
-\RevisionsEnd
-
-% -- TBD / TBR Listing --
-%\TBDsStart
-% section % page Date        Description
-%1.2.3.4   & 2    & xxx-xxx & missing a dingle on a dangle \\
-%\TBDsEnd
-
-\pagebreak
-\tableofcontents
-
-%\pagebreak 
-%\listoffigures
-
-\pagebreak
-\pagenumbering{arabic}
-
-\section{The Challenge}
-
-The Pan-STARRS prototype system (PS1) will generate 2 Gigabytes (2,013,265,920
-bytes) of data for each exposure.  With a planned cadence of one integration
-every 40 seconds the network carrying data from PS1 to MHPCC for processing
-must have a throughput of at least 402 Mbit/s (402,653,184 bits).  That
-estimate does not including transport over head, overclocked pixels, metadata,
-or control messages.
-
-The PS1 data rate is almost a factor of 3 greater then the theoretical capacity
-of the OC-3c being provided to the summit of Haleakala by MSSS.
-
-\section{The Conventional Solution}
-
-An OC-12c (622 Mbit/s) leased from Verizon would meet the PS1 data rate
-requirements.  With a commitment to a 3-year contract the monthly charges would
-be\$16,970 or \$610,920 over the operational lifetime of PS1.  OC-12c interface
-cards would be required for the Cisco 65xx series switches that are planned for
-deployment at the PS1 site and MHPCC.  These cards carry a list price of
-\$60,000 but Cisco typical offers a 30\% academic discount, limiting the
-equipment investment to \$84,000.  Verizon will also charge an NRC
-(non-reoccurring charge) for setting up the link.  The exact cost of the NRC is
-difficult to determine but as a reference point the NRC for the existing OC-3c
-on Haleakala was \$400,000.
-
-It is reasonable to assume that the minimum cost of a leased line would have a
-total cost of ownership (TCO) of \$619,320 and has a normalized value of
-\$331.90 per Mbit/s per year.
-
-\section{The Wireless Solution}
-
-The Loea Corporation manufactures and sells millimeter-wavelength radios that
-are capable of 1.25Gbit/s at distances up to 10Km.  While this equipment
-doesn't have the range to link directly from the summit of Haleakala to MHPCC.
-it is capable of spanning the distance from the summit to the existing IFA site
-in Waiakoa and again the distance from the IFA site to MHPCC.  This relayed
-configuration requires two pairs of radio and antennas and integration at three
-sites.  The preliminary quotation for the equipment and labor is \$202,400.  The
-annual maintenance costs for this equipment is \$10,000 or \$30,000 over the
-lifetime of PS1.  This configuration will also require some support
-infrastructure at the IFA Waiakoa site.  The support equipment would include a
-small enclosure, a switch, network management equipment, and a small UPS.  This
-should total less then \$15,000.
-
-The TCO of this solution over 3 years would be approximately \$247,400 and a
-normalized value of \$65.97 per Mbit/s per year.  This offers a TCO 2.5 times
-lower then a leased OC-12c at 5 times the relative value per Mbit/s.
-
-\appendix
-
-\section{Map of Maui}
-
-\includegraphics[width=20cm]{pics/haleakala_wireless_map.ps}
-
-%\bibliographystyle{plain}
-%\bibliography{panstarrs}
-
-\end{document}
Index: /trunk/doc/modules/Makefile
===================================================================
--- /trunk/doc/modules/Makefile	(revision 6008)
+++ /trunk/doc/modules/Makefile	(revision 6009)
@@ -1,3 +1,3 @@
-# $Id: Makefile,v 1.8 2006-01-16 00:38:10 eugene Exp $
+# $Id: Makefile,v 1.9 2006-01-16 01:11:40 eugene Exp $
 
 PDFLATEX = env TEXINPUTS=../../latex/inputs:$(TEXINPUTS):.: pdflatex
@@ -8,5 +8,5 @@
 	@echo "  targets: sdrs all sdrs-tag"
 
-all : ModulesSDRS.pdf
+all : sdrs
 sdrs : ModulesSDRS.pdf
 
@@ -35,5 +35,8 @@
 
 clean :
-	$(RM) *.log *.dvi *.aux *.toc *.tbd *.tbr *.lof *.out *~ core body.tmp head.tmp
+	$(RM) *.log *.dvi *.aux *.toc *.tbd *.tbr *.tpm *.lof *.out *~ core body.tmp head.tmp
+
+dist : clean
+	$(RM) *.pdf
 
 empty : clean
Index: /trunk/doc/modules/ModulesSDRS.tex
===================================================================
--- /trunk/doc/modules/ModulesSDRS.tex	(revision 6008)
+++ /trunk/doc/modules/ModulesSDRS.tex	(revision 6009)
@@ -1,3 +1,3 @@
-%%% $Id: ModulesSDRS.tex,v 1.70 2006-01-16 00:26:17 eugene Exp $
+%%% $Id: ModulesSDRS.tex,v 1.71 2006-01-16 01:11:40 eugene Exp $
 \documentclass[panstarrs,spec]{panstarrs}
 
@@ -13,6 +13,4 @@
 \version{10}
 \docnumber{PSDC-430-012}
-
-\usepackage[ps2pdf]{thumbpdf}
 
 \begin{document}
Index: /trunk/doc/pslib/Makefile
===================================================================
--- /trunk/doc/pslib/Makefile	(revision 6008)
+++ /trunk/doc/pslib/Makefile	(revision 6009)
@@ -1,3 +1,3 @@
-# $Id: Makefile,v 1.15 2005-09-13 21:28:03 eugene Exp $
+# $Id: Makefile,v 1.16 2006-01-16 01:11:40 eugene Exp $
 
 PDFLATEX = env TEXINPUTS=.:LaTeX:$(TEXINPUTS): pdflatex
@@ -10,5 +10,5 @@
 sdrs: psLibSDRS.pdf 
 add: psLibADD.pdf
-all : psLibSDRS.pdf psLibADD.pdf
+all : sdrs add
 
 SDRS = psLibSDRS.tex \
@@ -16,12 +16,12 @@
        configFileTests.tex \
        timeTests.tex \
-       Metadata.ps \
-       earthrot.ps
+       pics/Metadata.ps \
+       pics/earthrot.ps
 
 ADD =  psLibADD.tex \
        ChangeLogADD.tex \
        raymodel.f \
-       rotations.ps \
-       earthrot.ps
+       pics/rotations.ps \
+       pics/earthrot.ps
 
 psLibSDRS.pdf: $(SDRS)
@@ -40,8 +40,15 @@
 	dvips -z -t letter -o $*.ps $*.dvi
 	ps2pdf $*.ps $*.pdf
-	@rm -f $*.ps $*.dvi $*.aux $*.log $*.tbr $*.tbd $*.lof body.tmp head.tmp
+	thumbpdf --modes=dvips $*.pdf
+	$(PSLATEX) $*.tex 
+	dvips -z -t letter -o $*.ps $*.dvi
+	ps2pdf $*.ps $*.pdf
+	@rm -f $*.ps $*.dvi $*.aux $*.log $*.tbr $*.tbd $*.toc $*.tpm $*.lof body.tmp head.tmp
 
 clean :
-	$(RM) *.log *.dvi *.aux *.toc *.tbd *.tbr *.lof *.out *~ core body.tmp head.tmp
+	$(RM) *.log *.dvi *.aux *.toc *.tbd *.tbr *.tpm *.lof *.out *~ core body.tmp head.tmp
+
+dist : clean
+	$(RM) *.pdf
 
 empty: clean
Index: unk/doc/pslib/coordinateConv.fig
===================================================================
--- /trunk/doc/pslib/coordinateConv.fig	(revision 6008)
+++ 	(revision )
@@ -1,68 +1,0 @@
-#FIG 3.2
-Landscape
-Center
-Inches
-Letter  
-100.00
-Single
--2
-1200 2
-5 1 0 1 0 7 50 0 -1 0.000 0 0 1 0 5662.500 5400.000 5850 4950 6150 5400 5850 5850
-	2 1 1.00 60.00 120.00
-5 1 0 1 0 7 50 0 -1 0.000 0 0 1 0 5737.500 6600.000 5925 6150 6225 6600 5925 7050
-	2 1 1.00 60.00 120.00
-5 1 0 1 0 7 50 0 -1 0.000 0 0 1 0 5437.500 4200.000 5625 3750 5925 4200 5625 4650
-	2 1 1.00 60.00 120.00
-5 1 0 1 0 7 50 0 -1 0.000 0 0 1 0 4762.500 1800.000 4950 1350 5250 1800 4950 2250
-	2 1 1.00 60.00 120.00
-5 1 0 1 0 7 50 0 -1 0.000 0 0 1 0 4912.500 3000.000 5100 2550 5400 3000 5100 3450
-	2 1 1.00 60.00 120.00
-5 1 0 1 0 7 50 0 -1 0.000 0 0 1 0 3787.000 6600.000 3600 7050 3300 6600 3600 6150
-	2 1 1.00 60.00 120.00
-5 1 0 1 0 7 50 0 -1 0.000 0 0 1 0 3787.000 5400.000 3600 5850 3300 5400 3600 4950
-	2 1 1.00 60.00 120.00
-5 1 0 1 0 7 50 0 -1 0.000 0 0 1 0 3787.000 4200.000 3600 4650 3300 4200 3600 3750
-	2 1 1.00 60.00 120.00
-5 1 0 1 0 7 50 0 -1 0.000 0 0 1 0 3787.000 3000.000 3600 3450 3300 3000 3600 2550
-	2 1 1.00 60.00 120.00
-5 1 0 1 0 7 50 0 -1 0.000 0 0 1 0 3787.000 1800.000 3600 2250 3300 1800 3600 1350
-	2 1 1.00 60.00 120.00
-5 1 0 1 0 7 50 0 -1 0.000 0 1 0 1 8282.143 3675.000 7575 4875 9675 3675 7575 2475
-	2 1 1.00 60.00 120.00
-5 1 0 1 0 7 50 0 -1 0.000 0 1 1 1 8990.878 4800.000 8775 7350 11550 4800 8775 2250
-	2 1 1.00 60.00 120.00
-	2 1 1.00 60.00 120.00
-6 1425 1575 3150 2025
-4 0 0 50 0 0 14 0.0000 4 195 1695 1425 1725 x -= myFrame->x0;\001
-4 0 0 50 0 0 14 0.0000 4 195 1695 1425 1980 y -= myFrame->y0;\001
--6
-6 5550 1575 7350 2025
-4 0 0 50 0 0 14 0.0000 4 195 1740 5550 1725 x += myFrame->x0;\001
-4 0 0 50 0 0 14 0.0000 4 195 1740 5550 1980 y += myFrame->y0;\001
--6
-6 1200 3975 3075 4425
-4 0 0 50 0 0 14 0.0000 4 195 1335 1200 4125 psChipInFPA()\001
-4 0 0 50 0 0 14 0.0000 4 195 1860 1200 4380 psCoordFPAtoChip()\001
--6
-6 1200 2700 3075 3225
-4 0 0 50 0 0 14 0.0000 4 195 1275 1200 2865 psCellInChip()\001
-4 0 0 50 0 0 14 0.0000 4 195 1875 1200 3120 psCoordChipToCell()\001
--6
-6 8925 5475 11250 6225
-4 0 0 50 0 0 14 0.0000 4 195 1800 8925 5625 psCoordCellToSky()\001
-4 0 0 50 0 0 14 0.0000 4 195 2310 8925 5880 psCoordCellToSkyQuick()\001
-4 0 0 50 0 0 14 0.0000 4 195 1800 8925 6135 psCoordSkyToCell()\001
--6
-4 0 0 50 0 0 14 0.0000 4 150 570 3900 1350 Frame\001
-4 0 0 50 0 0 14 0.0000 4 195 795 3900 2550 Cell (x,y)\001
-4 0 0 50 0 0 14 0.0000 4 195 930 3900 3750 Chip (X,Y)\001
-4 0 0 50 0 0 14 0.0000 4 195 1455 3900 4950 Focal Plane (p,q)\001
-4 0 0 50 0 0 14 0.0000 4 195 1695 3900 6150 Tangent Plane (l,m)\001
-4 0 0 50 0 0 14 0.0000 4 195 1230 3900 7350 Sky (RA,Dec)\001
-4 0 0 50 0 0 14 0.0000 4 195 1875 5775 3000 psCoordCellToChip()\001
-4 0 0 50 0 0 14 0.0000 4 195 1875 6150 4200 psCoordCellToFPA()\001
-4 0 0 50 0 0 14 0.0000 4 195 1710 6375 5400 psCoordFPAtoTP()\001
-4 0 0 50 0 0 14 0.0000 4 195 1635 6450 6600 psCoordTPtoSky()\001
-4 0 0 50 0 0 14 0.0000 4 195 1710 1275 5475 psCoordTPtoFPA()\001
-4 0 0 50 0 0 14 0.0000 4 195 1710 1275 6600 psCoordSkyToTP()\001
-4 0 0 50 0 0 14 0.0000 4 195 1875 7725 3675 psCoordCellToFPA()\001
Index: unk/doc/pslib/coordinateFrames.fig
===================================================================
--- /trunk/doc/pslib/coordinateFrames.fig	(revision 6008)
+++ 	(revision )
@@ -1,58 +1,0 @@
-#FIG 3.2
-Landscape
-Center
-Inches
-Letter  
-100.00
-Single
--2
-1200 2
-5 1 0 1 0 7 50 0 -1 0.000 0 0 1 1 5062.500 1800.000 5250 1350 5550 1800 5250 2250
-	2 1 1.00 60.00 120.00
-	2 1 1.00 60.00 120.00
-5 1 0 1 0 7 50 0 -1 0.000 0 0 1 1 5137.500 3000.000 5325 2550 5625 3000 5325 3450
-	2 1 1.00 60.00 120.00
-	2 1 1.00 60.00 120.00
-5 1 0 1 0 7 50 0 -1 0.000 0 0 1 1 5737.500 4200.000 5925 3750 6225 4200 5925 4650
-	2 1 1.00 60.00 120.00
-	2 1 1.00 60.00 120.00
-5 1 0 1 0 7 50 0 -1 0.000 0 0 1 1 5962.500 5400.000 6150 4950 6450 5400 6150 5850
-	2 1 1.00 60.00 120.00
-	2 1 1.00 60.00 120.00
-5 1 0 1 0 7 50 0 -1 0.000 0 0 1 1 6037.500 6600.000 6225 6150 6525 6600 6225 7050
-	2 1 1.00 60.00 120.00
-	2 1 1.00 60.00 120.00
-5 1 0 1 0 7 50 0 -1 0.000 0 1 1 0 2883.750 4800.000 3300 2250 300 4800 3300 7350
-	2 1 1.00 60.00 120.00
-5 1 0 1 0 7 50 0 -1 0.000 0 1 1 0 5587.500 3600.000 3900 2550 3600 3600 3900 4650
-	2 1 1.00 60.00 120.00
-6 1650 3075 3525 4275
-4 0 0 50 0 0 14 0.0000 4 195 1755 1650 3225 myCell->cellToFPA\001
-4 0 0 50 0 0 14 0.0000 4 195 1815 1650 3480 combines cellToChip\001
-4 0 0 50 0 0 14 0.0000 4 195 1725 1650 3735 and chipToFPA into\001
-4 0 0 50 0 0 14 0.0000 4 195 1545 1650 3990 a single low-order\001
-4 0 0 50 0 0 14 0.0000 4 150 1260 1650 4245 transformation\001
--6
-6 6675 4950 11100 5925
-4 0 0 50 0 0 14 0.0000 4 195 4260 6675 5100 myFPA->FPtoTP and myFPA->TPtoFP specifies\001
-4 0 0 50 0 0 14 0.0000 4 195 3990 6675 5355 high-order transformation to correct for optical\001
-4 0 0 50 0 0 14 0.0000 4 180 4410 6675 5610 distortion in the camera, and chromatic effects from\001
-4 0 0 50 0 0 14 0.0000 4 195 1335 6675 5865 the atmosphere\001
--6
-6 6750 6375 10500 6825
-4 0 0 50 0 0 14 0.0000 4 150 2790 6750 6780 SLALib to do the transformation\001
-4 0 0 50 0 0 14 0.0000 4 195 3735 6750 6525 myFPA->exp contains information allowing\001
--6
-4 0 0 50 0 0 14 0.0000 4 150 570 4200 1350 Frame\001
-4 0 0 50 0 0 14 0.0000 4 195 795 4200 2550 Cell (x,y)\001
-4 0 0 50 0 0 14 0.0000 4 195 930 4200 3750 Chip (X,Y)\001
-4 0 0 50 0 0 14 0.0000 4 195 1455 4200 4950 Focal Plane (p,q)\001
-4 0 0 50 0 0 14 0.0000 4 195 1695 4200 6150 Tangent Plane (l,m)\001
-4 0 0 50 0 0 14 0.0000 4 195 1230 4200 7350 Sky (RA,Dec)\001
-4 0 0 50 0 0 14 0.0000 4 195 3150 5850 1875 x0, y0 specifies offset from cell origin\001
-4 0 0 50 0 0 14 0.0000 4 195 4875 6450 4275 myChip->chipToFPA specifies low-order transformation\001
-4 0 0 50 0 0 14 0.0000 4 195 4665 5775 3075 myCell->cellToChip specifies low-order tranformation\001
-4 0 0 50 0 0 14 0.0000 4 195 2190 525 4980 provides a quick and dirty\001
-4 0 0 50 0 0 14 0.0000 4 150 2160 525 5235 low-order transformation\001
-4 0 0 50 0 0 14 0.0000 4 195 1770 525 5490 from a cell to the sky\001
-4 0 0 50 0 0 14 0.0000 4 195 1680 525 4725 myCell->cellToSky\001
Index: /trunk/doc/pslib/pics/coordinateConv.fig
===================================================================
--- /trunk/doc/pslib/pics/coordinateConv.fig	(revision 6009)
+++ /trunk/doc/pslib/pics/coordinateConv.fig	(revision 6009)
@@ -0,0 +1,68 @@
+#FIG 3.2
+Landscape
+Center
+Inches
+Letter  
+100.00
+Single
+-2
+1200 2
+5 1 0 1 0 7 50 0 -1 0.000 0 0 1 0 5662.500 5400.000 5850 4950 6150 5400 5850 5850
+	2 1 1.00 60.00 120.00
+5 1 0 1 0 7 50 0 -1 0.000 0 0 1 0 5737.500 6600.000 5925 6150 6225 6600 5925 7050
+	2 1 1.00 60.00 120.00
+5 1 0 1 0 7 50 0 -1 0.000 0 0 1 0 5437.500 4200.000 5625 3750 5925 4200 5625 4650
+	2 1 1.00 60.00 120.00
+5 1 0 1 0 7 50 0 -1 0.000 0 0 1 0 4762.500 1800.000 4950 1350 5250 1800 4950 2250
+	2 1 1.00 60.00 120.00
+5 1 0 1 0 7 50 0 -1 0.000 0 0 1 0 4912.500 3000.000 5100 2550 5400 3000 5100 3450
+	2 1 1.00 60.00 120.00
+5 1 0 1 0 7 50 0 -1 0.000 0 0 1 0 3787.000 6600.000 3600 7050 3300 6600 3600 6150
+	2 1 1.00 60.00 120.00
+5 1 0 1 0 7 50 0 -1 0.000 0 0 1 0 3787.000 5400.000 3600 5850 3300 5400 3600 4950
+	2 1 1.00 60.00 120.00
+5 1 0 1 0 7 50 0 -1 0.000 0 0 1 0 3787.000 4200.000 3600 4650 3300 4200 3600 3750
+	2 1 1.00 60.00 120.00
+5 1 0 1 0 7 50 0 -1 0.000 0 0 1 0 3787.000 3000.000 3600 3450 3300 3000 3600 2550
+	2 1 1.00 60.00 120.00
+5 1 0 1 0 7 50 0 -1 0.000 0 0 1 0 3787.000 1800.000 3600 2250 3300 1800 3600 1350
+	2 1 1.00 60.00 120.00
+5 1 0 1 0 7 50 0 -1 0.000 0 1 0 1 8282.143 3675.000 7575 4875 9675 3675 7575 2475
+	2 1 1.00 60.00 120.00
+5 1 0 1 0 7 50 0 -1 0.000 0 1 1 1 8990.878 4800.000 8775 7350 11550 4800 8775 2250
+	2 1 1.00 60.00 120.00
+	2 1 1.00 60.00 120.00
+6 1425 1575 3150 2025
+4 0 0 50 0 0 14 0.0000 4 195 1695 1425 1725 x -= myFrame->x0;\001
+4 0 0 50 0 0 14 0.0000 4 195 1695 1425 1980 y -= myFrame->y0;\001
+-6
+6 5550 1575 7350 2025
+4 0 0 50 0 0 14 0.0000 4 195 1740 5550 1725 x += myFrame->x0;\001
+4 0 0 50 0 0 14 0.0000 4 195 1740 5550 1980 y += myFrame->y0;\001
+-6
+6 1200 3975 3075 4425
+4 0 0 50 0 0 14 0.0000 4 195 1335 1200 4125 psChipInFPA()\001
+4 0 0 50 0 0 14 0.0000 4 195 1860 1200 4380 psCoordFPAtoChip()\001
+-6
+6 1200 2700 3075 3225
+4 0 0 50 0 0 14 0.0000 4 195 1275 1200 2865 psCellInChip()\001
+4 0 0 50 0 0 14 0.0000 4 195 1875 1200 3120 psCoordChipToCell()\001
+-6
+6 8925 5475 11250 6225
+4 0 0 50 0 0 14 0.0000 4 195 1800 8925 5625 psCoordCellToSky()\001
+4 0 0 50 0 0 14 0.0000 4 195 2310 8925 5880 psCoordCellToSkyQuick()\001
+4 0 0 50 0 0 14 0.0000 4 195 1800 8925 6135 psCoordSkyToCell()\001
+-6
+4 0 0 50 0 0 14 0.0000 4 150 570 3900 1350 Frame\001
+4 0 0 50 0 0 14 0.0000 4 195 795 3900 2550 Cell (x,y)\001
+4 0 0 50 0 0 14 0.0000 4 195 930 3900 3750 Chip (X,Y)\001
+4 0 0 50 0 0 14 0.0000 4 195 1455 3900 4950 Focal Plane (p,q)\001
+4 0 0 50 0 0 14 0.0000 4 195 1695 3900 6150 Tangent Plane (l,m)\001
+4 0 0 50 0 0 14 0.0000 4 195 1230 3900 7350 Sky (RA,Dec)\001
+4 0 0 50 0 0 14 0.0000 4 195 1875 5775 3000 psCoordCellToChip()\001
+4 0 0 50 0 0 14 0.0000 4 195 1875 6150 4200 psCoordCellToFPA()\001
+4 0 0 50 0 0 14 0.0000 4 195 1710 6375 5400 psCoordFPAtoTP()\001
+4 0 0 50 0 0 14 0.0000 4 195 1635 6450 6600 psCoordTPtoSky()\001
+4 0 0 50 0 0 14 0.0000 4 195 1710 1275 5475 psCoordTPtoFPA()\001
+4 0 0 50 0 0 14 0.0000 4 195 1710 1275 6600 psCoordSkyToTP()\001
+4 0 0 50 0 0 14 0.0000 4 195 1875 7725 3675 psCoordCellToFPA()\001
Index: /trunk/doc/pslib/pics/coordinateFrames.fig
===================================================================
--- /trunk/doc/pslib/pics/coordinateFrames.fig	(revision 6009)
+++ /trunk/doc/pslib/pics/coordinateFrames.fig	(revision 6009)
@@ -0,0 +1,58 @@
+#FIG 3.2
+Landscape
+Center
+Inches
+Letter  
+100.00
+Single
+-2
+1200 2
+5 1 0 1 0 7 50 0 -1 0.000 0 0 1 1 5062.500 1800.000 5250 1350 5550 1800 5250 2250
+	2 1 1.00 60.00 120.00
+	2 1 1.00 60.00 120.00
+5 1 0 1 0 7 50 0 -1 0.000 0 0 1 1 5137.500 3000.000 5325 2550 5625 3000 5325 3450
+	2 1 1.00 60.00 120.00
+	2 1 1.00 60.00 120.00
+5 1 0 1 0 7 50 0 -1 0.000 0 0 1 1 5737.500 4200.000 5925 3750 6225 4200 5925 4650
+	2 1 1.00 60.00 120.00
+	2 1 1.00 60.00 120.00
+5 1 0 1 0 7 50 0 -1 0.000 0 0 1 1 5962.500 5400.000 6150 4950 6450 5400 6150 5850
+	2 1 1.00 60.00 120.00
+	2 1 1.00 60.00 120.00
+5 1 0 1 0 7 50 0 -1 0.000 0 0 1 1 6037.500 6600.000 6225 6150 6525 6600 6225 7050
+	2 1 1.00 60.00 120.00
+	2 1 1.00 60.00 120.00
+5 1 0 1 0 7 50 0 -1 0.000 0 1 1 0 2883.750 4800.000 3300 2250 300 4800 3300 7350
+	2 1 1.00 60.00 120.00
+5 1 0 1 0 7 50 0 -1 0.000 0 1 1 0 5587.500 3600.000 3900 2550 3600 3600 3900 4650
+	2 1 1.00 60.00 120.00
+6 1650 3075 3525 4275
+4 0 0 50 0 0 14 0.0000 4 195 1755 1650 3225 myCell->cellToFPA\001
+4 0 0 50 0 0 14 0.0000 4 195 1815 1650 3480 combines cellToChip\001
+4 0 0 50 0 0 14 0.0000 4 195 1725 1650 3735 and chipToFPA into\001
+4 0 0 50 0 0 14 0.0000 4 195 1545 1650 3990 a single low-order\001
+4 0 0 50 0 0 14 0.0000 4 150 1260 1650 4245 transformation\001
+-6
+6 6675 4950 11100 5925
+4 0 0 50 0 0 14 0.0000 4 195 4260 6675 5100 myFPA->FPtoTP and myFPA->TPtoFP specifies\001
+4 0 0 50 0 0 14 0.0000 4 195 3990 6675 5355 high-order transformation to correct for optical\001
+4 0 0 50 0 0 14 0.0000 4 180 4410 6675 5610 distortion in the camera, and chromatic effects from\001
+4 0 0 50 0 0 14 0.0000 4 195 1335 6675 5865 the atmosphere\001
+-6
+6 6750 6375 10500 6825
+4 0 0 50 0 0 14 0.0000 4 150 2790 6750 6780 SLALib to do the transformation\001
+4 0 0 50 0 0 14 0.0000 4 195 3735 6750 6525 myFPA->exp contains information allowing\001
+-6
+4 0 0 50 0 0 14 0.0000 4 150 570 4200 1350 Frame\001
+4 0 0 50 0 0 14 0.0000 4 195 795 4200 2550 Cell (x,y)\001
+4 0 0 50 0 0 14 0.0000 4 195 930 4200 3750 Chip (X,Y)\001
+4 0 0 50 0 0 14 0.0000 4 195 1455 4200 4950 Focal Plane (p,q)\001
+4 0 0 50 0 0 14 0.0000 4 195 1695 4200 6150 Tangent Plane (l,m)\001
+4 0 0 50 0 0 14 0.0000 4 195 1230 4200 7350 Sky (RA,Dec)\001
+4 0 0 50 0 0 14 0.0000 4 195 3150 5850 1875 x0, y0 specifies offset from cell origin\001
+4 0 0 50 0 0 14 0.0000 4 195 4875 6450 4275 myChip->chipToFPA specifies low-order transformation\001
+4 0 0 50 0 0 14 0.0000 4 195 4665 5775 3075 myCell->cellToChip specifies low-order tranformation\001
+4 0 0 50 0 0 14 0.0000 4 195 2190 525 4980 provides a quick and dirty\001
+4 0 0 50 0 0 14 0.0000 4 150 2160 525 5235 low-order transformation\001
+4 0 0 50 0 0 14 0.0000 4 195 1770 525 5490 from a cell to the sky\001
+4 0 0 50 0 0 14 0.0000 4 195 1680 525 4725 myCell->cellToSky\001
Index: /trunk/doc/pslib/psLibADD.tex
===================================================================
--- /trunk/doc/pslib/psLibADD.tex	(revision 6008)
+++ /trunk/doc/pslib/psLibADD.tex	(revision 6009)
@@ -1,3 +1,3 @@
-%%% $Id: psLibADD.tex,v 1.92 2006-01-06 22:35:54 price Exp $
+%%% $Id: psLibADD.tex,v 1.93 2006-01-16 01:11:40 eugene Exp $
 \documentclass[panstarrs]{panstarrs}
 
@@ -1540,5 +1540,5 @@
 \begin{figure}
 \begin{center}
-\psfig{file=rotations.ps}
+\psfig{file=pics/rotations}
 \caption{Definition of the rotation angles\label{rotations}.  Three
 rotations are performed in series: first, a rotation of $\alpha_p$ is
@@ -1873,5 +1873,5 @@
 \begin{figure}
 \begin{center}
-\psfig{file=earthrot.ps}
+\psfig{file=pics/earthrot.ps}
 \caption{Coordinates systems and the transformations between them\label{earthrot}}
 \end{center}
Index: /trunk/doc/pslib/psLibSDRS.tex
===================================================================
--- /trunk/doc/pslib/psLibSDRS.tex	(revision 6008)
+++ /trunk/doc/pslib/psLibSDRS.tex	(revision 6009)
@@ -1,3 +1,3 @@
-%%% $Id: psLibSDRS.tex,v 1.374 2006-01-11 21:15:20 price Exp $
+%%% $Id: psLibSDRS.tex,v 1.375 2006-01-16 01:11:40 eugene Exp $
 \documentclass[panstarrs,spec]{panstarrs}
 
@@ -2534,5 +2534,5 @@
 
 \begin{figure}
-\psfig{file=Metadata,width=6.5in}
+\psfig{file=pics/Metadata,width=6.5in}
 \caption{Metadata Structures\label{fig:metadata}}
 \end{figure}
@@ -6797,5 +6797,5 @@
 \begin{figure}
 \begin{center}
-\psfig{file=earthrot.ps,height=4in}
+\psfig{file=pics/earthrot,height=4in}
 \caption{Earth Orientation Coordinate Frames\label{CoordinateSystems}}
 \end{center}
Index: /trunk/doc/psphot/.cvsignore
===================================================================
--- /trunk/doc/psphot/.cvsignore	(revision 6009)
+++ /trunk/doc/psphot/.cvsignore	(revision 6009)
@@ -0,0 +1,2 @@
+*.log *.dvi *.aux *.toc *.log *.out *.lof *.tbr *.tbd
+psphot.pdf
Index: /trunk/doc/psphot/Makefile
===================================================================
--- /trunk/doc/psphot/Makefile	(revision 6009)
+++ /trunk/doc/psphot/Makefile	(revision 6009)
@@ -0,0 +1,29 @@
+
+PDFLATEX = env TEXINPUTS=.:LaTeX:$(TEXINPUTS): pdflatex
+PSLATEX  = env TEXINPUTS=.:LaTeX:$(TEXINPUTS): latex
+
+help:
+	@echo "USAGE: make (target)"
+	@echo "  targets:  psphot add"
+
+psphot: psphot.pdf 
+all : psphot
+
+%.pdf: %.tex
+	$(PSLATEX) $*.tex 
+	$(PSLATEX) $*.tex 
+	dvips -z -t letter -o $*.ps $*.dvi
+	ps2pdf $*.ps $*.pdf
+	thumbpdf --modes=dvips $*.pdf
+	$(PSLATEX) $*.tex 
+	dvips -z -t letter -o $*.ps $*.dvi
+	ps2pdf $*.ps $*.pdf
+	@rm -f $*.ps $*.dvi $*.aux $*.log $*.tbr $*.tbd $*.toc $*.tpm $*.lof body.tmp head.tmp
+
+clean :
+	$(RM) *.log *.dvi *.aux *.toc *.tbd *.tbr *.tpm *.lof *.out *~ core body.tmp head.tmp
+
+dist : clean
+	$(RM) *.pdf
+
+empty: clean
Index: /trunk/doc/psphot/psphot.tex
===================================================================
--- /trunk/doc/psphot/psphot.tex	(revision 6008)
+++ /trunk/doc/psphot/psphot.tex	(revision 6009)
@@ -1264,4 +1264,5 @@
 \item additional options for image background
 \item image background should return a background image
+\end{itemize}
 
 \end{document}
