docs: def save_pointings(self):
          """Print the currently defined FOVs"""
  
          import tkFileDialog
          f=tkFileDialog.asksaveasfile()
          i=0
          if self.pointing_format.get()=='CFHT PH':
  	    f.write("""<?xml version = "1.0"?>
  <!DOCTYPE ASTRO SYSTEM "http://vizier.u-strasbg.fr/xml/astrores.dtd">
  <ASTRO ID="v0.8" xmlns:ASTRO="http://vizier.u-strasbg.fr/doc/astrores.htx">
  <TABLE ID="Table">
  <NAME>Fixed Targets</NAME>
  <TITLE>Fixed Targets for CFHT QSO</TITLE>
  <!-- Definition of each field -->
  <FIELD name="NAME" datatype="A" width="20">
     <DESCRIPTION>Name of target</DESCRIPTION>
  </FIELD>
  <FIELD name="RA" ref="" datatype="A" width="11" unit="&quot;h:m:s&quot;">
     <DESCRIPTION>Right ascension of target</DESCRIPTION>
  </FIELD>     
  <FIELD name="DEC" ref="" datatype="A" width="11" unit="&quot;d:m:s&quot;">
     <DESCRIPTION>Declination of target</DESCRIPTION>
  </FIELD>     
  <FIELD name="EPOCH" datatype="F" width="6">
      <DESCRIPTION>Epoch of coordinates</DESCRIPTION>
  </FIELD>     
  <FIELD name="POINT" datatype="A" width="5">
  <DESCRIPTION>Pointing name</DESCRIPTION>
  </FIELD>     
  <!-- Data table --> 
  <DATA><CSV headlines="4" colsep="|"><![CDATA[
  NAME                |RA         |DEC        |EPOCH |POINT|
                      |hh:mm:ss.ss|+dd:mm:ss.s|      |     |
  12345678901234567890|12345678901|12345678901|123456|12345|
  --------------------|-----------|-----------|------|-----|\n""")	
          if self.pointing_format.get()=='Palomar':
  	    f.write("index\n")
          for pointing in self.pointings:
              i=i+1
              name=pointing["label"]["text"]
              (sra,sdec)=str(pointing["camera"]).split()
  	    ra=sra.split(":")
  	    dec=sdec.split(":")
  	    dec[0]=str(int(dec[0]))
  	    if int(dec[0])>=0:
  		    dec[0]='+'+dec[0]
  	    if self.pointing_format.get()=='Palomar':
  		    f.write( "%5d %16s %2s %2s %4s %3s %2s %4s 2000\n" % (i, name,
  									  ra[0].zfill(2),
  									  ra[1].zfill(2),
  									  ra[2].zfill(2),
  									  dec[0].zfill(3),
  									  dec[1].zfill(2),
  									  dec[2].zfill(2)))
  	    elif self.pointing_format.get()=='CFHT PH':
                  #f.write("%f %f\n" % (pointing["camera"].ra,pointing["camera"].dec))
                  f.write("%-20s|%11s|%11s|%6.1f|%-5d|\n" % (name,sra,sdec,2000.0,1))
              elif self.pointing_format.get()=='KPNO/CTIO':
                  str1 = sra.replace(":"," ")
  	        str2 = sdec.replace(":"," ")
                  f.write("%16s %16s %16s 2000\n" % ( name, str1, str2) )
              elif self.pointing_format.get()=='SSim':
                  ra = []
   		dec= []
                  for ccd in pointing["camera"].getGeometry():
  		    ra.append(ccd[0])
  		    ra.append(ccd[2])
  		    dec.append(ccd[1])
  		    dec.append(ccd[3])
    	        import math
   		dra=math.degrees(math.fabs(max(ra)-min(ra)))
   		ddec=math.degrees(math.fabs(max(dec)-min(dec)))
                  f.write("%f %f %16s %16s DATE 1.00 1.00 500 FILE\n" % (dra, ddec, sra, sdec ) ) 
          if self.pointing_format.get()=='CFHT PH':
  	    f.write("""]]</CSV></DATA>
  </TABLE>
  </ASTRO>
  """)
  	f.close()