Write the current object catalog to FITS file.

        Parameters:
        -----------
        filename : the FITS file to write.
        clobber  : remove existing file
        kwargs   : passed to fitsio.write

        Returns:
        --------
        None

def write(self, outfile, clobber=True, **kwargs):
        """
        Write the current object catalog to FITS file.

        Parameters:
        -----------
        filename : the FITS file to write.
        clobber  : remove existing file
        kwargs   : passed to fitsio.write

        Returns:
        --------
        None
        """
        fitsio.write(outfile,self.data,clobber=True,**kwargs)